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