Browse Source

0509BUG修复

wangqin
王钦 7 months ago
parent
commit
a87ecd590e
  1. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue
  2. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue
  3. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue
  4. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/sensors.vue

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

@ -164,8 +164,8 @@ export default {
url: `dc/system/event/${this.dialogData.id}`,
method: "delete",
}).then((result) => {
if (result.code == 200) Message.success("成功!");
else Message.error(result?.msg);
if (result.code == 200) this.$message.success("成功!");
else this.$message.error(result?.msg);
this.$emit('traffic-relieve', this.data);
});

10
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue

@ -18,6 +18,10 @@
</div>
<div class="bottom">
<!-- <div class="cleared-btn" @click="handleRefresh">
<img src="@screen/images/clearLayer.svg" />
<span>更新图层</span>
</div> -->
<div class="cleared-btn" @click="handleCleared">
<img src="@screen/images/clearLayer.svg" />
<span>清空图层</span>
@ -258,6 +262,12 @@ export default {
handleDevice: debounce(async function (item) {
await this.handleDeviceImmediate(item);
}, 360),
handleRefresh(){
//
const { mapIns } = this.getMap();
console.log(mapIns.getLayers(),'-----')
mapIns.getLayers().forEach((layer, index) => index > this.minLayers && mapIns.remove(layer))
},
handleCleared() {
const { mapIns } = this.getMap();

5
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue

@ -87,7 +87,7 @@ export default {
delete gridArea.TrafficControl;
if (["设备设施隐患", "非法上路"].includes(result.data.eventName)) {
//
gridArea["RealTimeVideo"] = "1 / 3 / span 17 / 3";
gridArea["RealTimeVideo"] = "1 / 3 / span 16 / 3";
delete gridArea.ReleaseInformation;
}
@ -97,6 +97,7 @@ export default {
.catch((err) => {});
},
handleFullHeight(key, opacityKey) {
//
if (this.gridAreaMap[key] !== originGridArea[key]) {
this.gridAreaMap[key] = originGridArea[key];
if (this.$refs[opacityKey]?.[0]) {
@ -109,7 +110,6 @@ export default {
this.$refs[opacityKey][0].$el.style.opacity = 0;
this.$refs[opacityKey][0].$el.style.pointerEvents = "none";
}
this.gridAreaMap[key] = originGridArea[key].replace(
/[0-9]+/g,
(num) => {
@ -121,6 +121,7 @@ export default {
}
}
);
this.gridAreaMap["DisposalProcess"] = "1 / 2 / span 33 / 2";
}
},
},

4
ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/sensors.vue

@ -194,7 +194,7 @@ export default {
})
let subItems = [
"可变新消息标志",
"可变息标志",
"气象检测器",
"一类交通量调查站",
"枪机",
@ -216,7 +216,7 @@ export default {
// const sub01 = createSub(0, 0, '')
// const sub02 = createSub(0, 100, '')
// const sub03 = createSub(0, 200, '')
// const sub03 = createSub(0, 200, '')
// link(main, sub02, [
// {

Loading…
Cancel
Save