Browse Source

事件误报接口

wangqin
zhoule 7 months ago
parent
commit
ac4408cef4
  1. 21
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue

21
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);
});
})

Loading…
Cancel
Save