Browse Source

Merge branch 'develop' of http://39.106.31.193:9211/mengff/jihe-hs into develop

wangqin
zhangzhang 7 months ago
parent
commit
3add87889d
  1. 28
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue

28
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue

@ -8,8 +8,8 @@
<Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" column="7" /> <Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" column="7" />
</div> </div>
<div class="foote"> <div class="foote">
<Button @click.native="handleEventRelieve" style="width: 100px;"> <Button @click.native="handleEventRelieve" style="width: 100px;" v-if="data.eventState == '0'">
事件解除 误报
</Button> </Button>
<Button @click.native="goDispatch" style="width: 100px;"> <Button @click.native="goDispatch" style="width: 100px;">
设备管控 设备管控
@ -146,18 +146,27 @@ export default {
}, },
handleEventRelieve() { handleEventRelieve() {
this.$confirm("确定解除事件吗?", "提示", { this.$confirm("确定事件误报吗?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
let data = new FormData(); // let data = new FormData();
data.append("eventId", this.dialogData.id); // data.append("eventId", this.dialogData.id);
postCompleteEvent(data).then((result) => { // postCompleteEvent(data).then((result) => {
console.log('--------',result) // console.log('--------', result)
if (result.code != 200) return []; // if (result.code != 200) return [];
this.$message.success("事件解除成功"); // this.$message.success("");
// this.$emit('traffic-relieve', this.data);
// });
request({
url: `dc/system/event/${this.data.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); this.$emit('traffic-relieve', this.data);
}); });
}) })
@ -217,6 +226,7 @@ export default {
} }
} }
} }
.foote { .foote {
display: flex; display: flex;
align-items: center; align-items: center;

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue

@ -153,7 +153,7 @@ export default {
}, },
watch: { watch: {
dataRecord(e) { dataRecord(e) {
console.log(e) this.bindRecord()
}, },
}, },
data() { data() {

Loading…
Cancel
Save