Commit 3cef33c7 by 王刘锁

点位管理设备类型

parent c6f9a114
...@@ -237,15 +237,23 @@ export default { ...@@ -237,15 +237,23 @@ export default {
const can = { const can = {
id: row.id id: row.id
} }
this.TaskChainList.setdeleteById(can).then(({ data }) => { this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
await this.TaskChainList.setdeleteById(can).then(({ data }) => {
if (data.code === 200) { if (data.code === 200) {
this.$set(row) this.$set(row)
this.$message({ this.$message({
type: 'success', type: 'success',
message: data.msg message: '删除成功'
}); });
this.getTaskListPage()
} }
}) })
}).catch(() => {
});
}, },
}, },
created () { created () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment