From dce40dba3f2f01e353dbfb3e0a09035cf8d260ae Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 14 Oct 2024 16:30:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=8B=E4=BB=B6=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=88=B0=E6=B4=BE=E4=BB=B6=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/shequzhili/Delivery/index.vue | 23 ++++++++++++++++++- .../shequzhili/eventHandling/index.vue | 23 +------------------ 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/views/modules/shequzhili/Delivery/index.vue b/src/views/modules/shequzhili/Delivery/index.vue index 3746a07ab..71eef5f04 100644 --- a/src/views/modules/shequzhili/Delivery/index.vue +++ b/src/views/modules/shequzhili/Delivery/index.vue @@ -171,6 +171,7 @@ v-if="scope.row.status =='unassigned'||scope.row.status =='processing'||scope.row.operationType =='13'">派件 审核 + 删除 @@ -360,7 +361,27 @@ export default { this.getCateOptions(); }, methods: { - + async handleDel(rowData) { + let message = "确认删除?"; + this.$confirm(message, "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }).then(() => { + this.delEvent(rowData.icEventId); + }).catch((err) => { }); + }, + async delEvent(eventId) { + let parm = { + eventId:eventId + } + let url = '/governance/icEvent/deleteIcEventAndReply' + let {code} = await requestPost(url,parm) + if(code === 0){ + this.$message.success('已删除') + this.getTableData(); + } + }, handleSelectionChange(val) { this.multipleSelection = []; val.forEach((element) => { diff --git a/src/views/modules/shequzhili/eventHandling/index.vue b/src/views/modules/shequzhili/eventHandling/index.vue index 8566152ca..53be7b676 100644 --- a/src/views/modules/shequzhili/eventHandling/index.vue +++ b/src/views/modules/shequzhili/eventHandling/index.vue @@ -147,7 +147,7 @@ 退件 --> 办理 退件 - 删除 + @@ -624,27 +624,6 @@ export default { this.getTableData(); }, - async handleDel(rowData) { - let message = "确认删除?"; - this.$confirm(message, "提示", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - }).then(() => { - this.delEvent(rowData.icEventId); - }).catch((err) => { }); - }, - async delEvent(eventId) { - let parm = { - eventId:eventId - } - let url = '/governance/icEvent/deleteIcEventAndReply' - let {code} = await requestPost(url,parm) - if(code === 0){ - this.$message.success('已删除') - this.getTableData(); - } - }, async getTableData() { const url = "/governance/icEvent/manageList"; if (this.eventTypeCheck) {