优化
This commit is contained in:
parent
9143738641
commit
5488b5949a
@ -469,6 +469,11 @@ export default {
|
||||
return Number((_process * 100).toFixed(2))
|
||||
},
|
||||
async handleDetele (id) {
|
||||
this.$confirm('此操作不可撤回, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
let res = await apiDeleteTask({ taskId: id })
|
||||
if (res.code !== 200) {
|
||||
this.$message.error(res.msg)
|
||||
@ -480,6 +485,12 @@ export default {
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消删除'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 更新进度
|
||||
handleUpdateProcess (i, type = false) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user