fix:链接管理 删除链接二次弹框

This commit is contained in:
zqx0221
2021-07-27 15:37:40 +08:00
parent 818b620c20
commit 9c27738b08
@@ -163,6 +163,12 @@
}, },
//表格中操作列删除操作弹窗 //表格中操作列删除操作弹窗
deleteLink (row) { deleteLink (row) {
this.$confirm('此操作将删除该链接, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http.delete('sarUrl/tsUrl/delete', { this.$http.delete('sarUrl/tsUrl/delete', {
id: row.id id: row.id
}, { }, {
@@ -190,6 +196,13 @@
this.$message.warning(res.message) this.$message.warning(res.message)
} }
}) })
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
}, },
//头部删除按钮 //头部删除按钮
deleteAllLink() { deleteAllLink() {
@@ -202,6 +215,11 @@
this.$message.warning('请选择要删除的链接') this.$message.warning('请选择要删除的链接')
} else { } else {
this.modalRole = true this.modalRole = true
this.$confirm('此操作将删除链接, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$http.delete('sarUrl/tsUrl/deleteBatch', { this.$http.delete('sarUrl/tsUrl/deleteBatch', {
ids: this.ids ids: this.ids
}, {}, res => { }, {}, res => {
@@ -224,6 +242,12 @@
this.$message.warning(res.message) this.$message.warning(res.message)
} }
}) })
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
} }
}, },
//弹窗关闭操作 //弹窗关闭操作