From 1e8555b6ec196b14545d6f2f295ff1dd913269d4 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 18 Dec 2023 17:21:28 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=BC=BA=E5=88=B6=E6=92=A4=E5=9B=9E?= =?UTF-8?q?=E5=8A=A0=E4=BA=8C=E6=AC=A1=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/zh-cn.js | 1 + .../processCenter/table/MonitorList.vue | 22 ++++++++++++------- .../processCenter/table/SentList.vue | 22 ++++++++++++------- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index 0cf50fd8..6b1b97b9 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -154,6 +154,7 @@ module.exports = { rangeOfApplication: '适用范围', transact: '办理', compulsoryWithdrawal: '强制撤回', + sureCompulsoryWithdrawal: '确认强制撤回吗?', finishDate: '完成日期', projectStatement: '立项说明', pleaseFillInAtLeastOneItem: '请至少填写一项', diff --git a/src/views/workCenter/processCenter/table/MonitorList.vue b/src/views/workCenter/processCenter/table/MonitorList.vue index 7326aedb..a5ce1f8a 100644 --- a/src/views/workCenter/processCenter/table/MonitorList.vue +++ b/src/views/workCenter/processCenter/table/MonitorList.vue @@ -264,14 +264,20 @@ export default { }, // 强制撤回 handleWithdrawal (record) { - const params = {} - params.processInstanceId = record.processInstanceId - compulsoryWithdrawal(params).then(res => { - if (res.success) { - this.$message.success(res.message) - this.loadData() - } else { - this.$message.warning(res.message) + this.$confirm({ + title: this.$t('compulsoryWithdrawal'), + content: this.$t('sureCompulsoryWithdrawal'), + onOk: () => { + const params = {} + params.processInstanceId = record.processInstanceId + compulsoryWithdrawal(params).then(res => { + if (res.success) { + this.$message.success(res.message) + this.loadData() + } else { + this.$message.warning(res.message) + } + }) } }) } diff --git a/src/views/workCenter/processCenter/table/SentList.vue b/src/views/workCenter/processCenter/table/SentList.vue index 5f802189..994f7247 100644 --- a/src/views/workCenter/processCenter/table/SentList.vue +++ b/src/views/workCenter/processCenter/table/SentList.vue @@ -273,14 +273,20 @@ export default { }, // 强制撤回 handleWithdrawal (record) { - const params = {} - params.processInstanceId = record.processInstanceId - compulsoryWithdrawal(params).then(res => { - if (res.success) { - this.$message.success(res.message) - this.loadData() - } else { - this.$message.warning(res.message) + this.$confirm({ + title: this.$t('compulsoryWithdrawal'), + content: this.$t('sureCompulsoryWithdrawal'), + onOk: () => { + const params = {} + params.processInstanceId = record.processInstanceId + compulsoryWithdrawal(params).then(res => { + if (res.success) { + this.$message.success(res.message) + this.loadData() + } else { + this.$message.warning(res.message) + } + }) } }) }