This commit is contained in:
xiongchengqiang 2020-12-14 17:35:41 +08:00
parent 9143738641
commit 5488b5949a

View File

@ -469,6 +469,11 @@ export default {
return Number((_process * 100).toFixed(2)) return Number((_process * 100).toFixed(2))
}, },
async handleDetele (id) { async handleDetele (id) {
this.$confirm('此操作不可撤回, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
let res = await apiDeleteTask({ taskId: id }) let res = await apiDeleteTask({ taskId: id })
if (res.code !== 200) { if (res.code !== 200) {
this.$message.error(res.msg) this.$message.error(res.msg)
@ -480,6 +485,12 @@ export default {
message: res.msg, message: res.msg,
type: 'success' type: 'success'
}) })
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
}, },
// //
handleUpdateProcess (i, type = false) { handleUpdateProcess (i, type = false) {