优化
This commit is contained in:
parent
2d72f07b73
commit
9143738641
@ -85,7 +85,7 @@ export function handleInput (form) {
|
||||
}
|
||||
|
||||
export function handleBlur (form) {
|
||||
this[form.split('.')[0]][form.split('.')[1]] = this[form.split('.')[0]][form.split('.')[1]] || '0'
|
||||
this[form.split('.')[0]][form.split('.')[1]] = Number(this[form.split('.')[0]][form.split('.')[1]]) || '0'
|
||||
}
|
||||
|
||||
export function messageSuccess (params) {
|
||||
|
||||
@ -286,6 +286,11 @@ export default {
|
||||
methods: {
|
||||
// 删除任务
|
||||
handleDeleteTask (parent, item) {
|
||||
this.$confirm('此操作不可撤回, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
if (item.id) {
|
||||
parent.taskDtos.map(i => {
|
||||
if (i === item) {
|
||||
@ -296,6 +301,12 @@ export default {
|
||||
parent.taskDtos = parent.taskDtos.filter(i => i !== item)
|
||||
}
|
||||
this.$forceUpdate()
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消删除'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 取消添加任务
|
||||
handleCancelTask () {
|
||||
@ -524,6 +535,11 @@ export default {
|
||||
this.showIndicators = true
|
||||
},
|
||||
handleDelateWeidu (item, index, type) {
|
||||
this.$confirm('此操作不可撤回, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
if (item.id) {
|
||||
item.isDelete = 1
|
||||
this.$forceUpdate()
|
||||
@ -531,6 +547,12 @@ export default {
|
||||
}
|
||||
this.obj.recortModelDtos[type].detailDtos = this.obj.recortModelDtos[type].detailDtos.filter(i => i !== item)
|
||||
this.$forceUpdate()
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消删除'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
async handleGetTbale (id = this.$route.query.id) {
|
||||
@ -644,7 +666,7 @@ export default {
|
||||
}
|
||||
}
|
||||
&-bottom {
|
||||
font-size: 12px;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
color:#999999;
|
||||
align-items: center;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user