From 917e17ec6ca981cbdc09b94f535d6a98b9c471de Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Thu, 11 Apr 2024 16:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BF=E7=AD=96=E5=BE=81=E6=B1=82=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E6=B5=81=E7=A8=8B=20=E5=BE=81=E6=B1=82=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E5=88=97=E8=A1=A8=20=E6=8E=A5=E5=8F=A3=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/solicitationList.vue | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue index 9803bb484..a79fe3a16 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue @@ -334,9 +334,10 @@ export default { this.getData() this.resetSelect() } else { + this.$message.warning(res.message) } }).catch(() => { - }); + }) }).catch(() => { // 取消删除,清空选择 this.$refs.selection.clearSelection(); @@ -365,11 +366,15 @@ export default { type: 'warning', roundButton: false }).then(() => { - if (row.id) { - this.deleteList.push(row.id) - } - this.histortData.splice(num, 1) - this.histortData = [ ...this.histortData ] + this.$http.delete('lawss/activiti/deletePolicitOpinionEOList', { ids: row.id }).then(res => { + if (res.ok) { + this.getData() + this.resetSelect() + } else { + this.$message.warning(res.message) + } + }).catch(() => { + }) }).catch(() => { // 取消删除,清空选择 // this.$refs.multipleTable.clearSelection() @@ -377,7 +382,7 @@ export default { }, addModelForm (row) { if (this.addOrEdit == 'add') { - this.$http.postData('lawss/activiti/insertPolicitOpinionEOList', { row }, { _this: this }, res => { + this.$http.postData('lawss/activiti/insertPolicitOpinionEOList', { ...row, prcId: this.$route.query.prcId, userId: this.$store.getters.userInfo.userId }, { _this: this }, res => { if (res.ok) { this.$message.success('操作成功') }else { @@ -386,7 +391,7 @@ export default { }, e => { }) } else if (this.addOrEdit == 'edit') { - this.$http.postData('lawss/activiti/updatePolicitOpinionEOList', { row }, { _this: this }, res => { + this.$http.postData('lawss/activiti/updatePolicitOpinionEOList', { ...row, prcId: this.$route.query.prcId, userId: this.$store.getters.userInfo.userId }, { _this: this }, res => { if (res.ok) { this.$message.success('操作成功') }else {