From d09b92ef6d35601129658045d4beaeef8357c20c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Fri, 29 Dec 2023 17:00:05 +0800 Subject: [PATCH] fix 80139 --- src/common/lang/en-us.js | 1 + src/common/lang/zh-cn.js | 1 + .../StandardConsultationProcess.vue | 17 ++++++++++++----- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index e197ba9c..e0ba0d9b 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -174,6 +174,7 @@ module.exports = { pleaseCompleteTableInfo: '请完善表格信息', pleaseEnterAPositiveInteger: '请输入正整数', pleaseSelectStandard: '请选择标准', + successfullyDelete: '删除成功', // 树右键 treeRight: { addFolder: 'Create New Folder', diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index 237a2039..dd81e14f 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -182,6 +182,7 @@ module.exports = { pleaseEnterAPositiveInteger: '请输入正整数', implementationNeedGreaterThan: '实施日期需要至少比发布日期大15天', pleaseSelectStandard: '请选择标准', + successfullyDelete: '删除成功', // 树右键 treeRight: { addFolder: '新增文件夹', diff --git a/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue b/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue index eccad55c..b19b22d2 100644 --- a/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue +++ b/src/views/workCenter/standardConsultationProcess/StandardConsultationProcess.vue @@ -931,12 +931,19 @@ export default { this.$message.warning(this.$t('selectLeastOne')) return } - const tableData = JSON.parse(JSON.stringify(this.dataSource)) - this.selectedRowKeys.forEach(index => { - tableData[index] = null + this.$confirm({ + title: this.$t('confirmBatchDeletion'), + content: this.$t('deleteAData'), + onOk: () => { + const tableData = JSON.parse(JSON.stringify(this.dataSource)) + this.selectedRowKeys.forEach(index => { + tableData[index] = null + }) + this.dataSource = tableData.filter(tt => !!tt) + this.selectedRowKeys = [] + this.$message.success(this.$t('successfullyDelete')) + } }) - this.dataSource = tableData.filter(tt => !!tt) - this.selectedRowKeys = [] }, onSelectChange (selectedRowKeys) { console.log(selectedRowKeys)