diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue index da51bf7a..ed2e997e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue @@ -152,12 +152,21 @@ export default { type: "warning", }) .then(() => { - let data = new FormData(); - data.append("eventId", this.dialogData.id); - postCompleteEvent(data).then((result) => { - console.log('--------', result) - if (result.code != 200) return []; - this.$message.success("成功"); + // let data = new FormData(); + // data.append("eventId", this.dialogData.id); + // postCompleteEvent(data).then((result) => { + // console.log('--------', result) + // if (result.code != 200) return []; + // this.$message.success("成功"); + // this.$emit('traffic-relieve', this.data); + // }); + request({ + url: `dc/system/event/${this.dialogData.eventType}/${this.dialogData.id}`, + method: "delete", + }).then((result) => { + if (result.code == 200) Message.success("成功!"); + else Message.error(result?.msg); + this.$emit('traffic-relieve', this.data); }); })