[update] 修改bug79086

This commit is contained in:
lideqin
2023-12-06 10:40:31 +08:00
parent 5ad5b9a328
commit 7b4fb448c3
@@ -151,6 +151,10 @@ export default {
}, },
// 删除 // 删除
handleDelete (id) { handleDelete (id) {
this.$confirm({
title: this.$t('confirmDeletion'),
content: this.$t('areYouSure'),
onOk: () => {
deleteSearchHistoryById({ id: id }).then(res => { deleteSearchHistoryById({ id: id }).then(res => {
if (res.success) { if (res.success) {
this.$message.success(res.message) this.$message.success(res.message)
@@ -167,9 +171,15 @@ export default {
this.$message.warning(res.message) this.$message.warning(res.message)
} }
}) })
}
})
}, },
// 批量删除 // 批量删除
handleBatchDel () { handleBatchDel () {
this.$confirm({
title: this.$t('confirmDeletion'),
content: this.$t('areYouSure'),
onOk: () => {
batchDeleteSearchHistory({ id: this.checkedArr.join(',') }).then(res => { batchDeleteSearchHistory({ id: this.checkedArr.join(',') }).then(res => {
if (res.success) { if (res.success) {
this.$message.success(res.message) this.$message.success(res.message)
@@ -183,6 +193,8 @@ export default {
this.$message.warning(res.message) this.$message.warning(res.message)
} }
}) })
}
})
}, },
// 取消 // 取消
handleCancel () { handleCancel () {