diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue index 80265e13..7e50ced6 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue @@ -4,7 +4,7 @@
- + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue index 2af67d2d..ba1d80d4 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue @@ -3,7 +3,7 @@
- + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue index 32b3599f..9ef9e2b3 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue @@ -171,16 +171,28 @@ export default { // this.modelVisible = false; // this.$emit('queryData', true); // return; - request({ - url: `/business/warning/delete`, - method: "post", - data: { id: this.formData.id } - }).then(result => { - if (result.code == 200) Message.success('成功!'); - else Message.error(result?.msg); - this.modelVisible = false; - this.$emit('queryData', true); - }) + if (this.activeName == '-1') { + request({ + url: `/business/warning/delete`, + method: 'post', + data: { id: this.formData.id } + }).then(result => { + if (result.code == 200) Message.success('成功!'); + else Message.error(result?.msg); + this.modelVisible = false; + this.$emit('queryData', true); + }) + } else { + request({ + url: `dc/system/event/${this.formData.eventType}/${this.formData.id}`, + method: 'delete', + }).then(result => { + if (result.code == 200) Message.success('成功!'); + else Message.error(result?.msg); + this.modelVisible = false; + this.$emit('queryData', true); + }) + } }) }