From d326732a769186dfeff4c52725256c2e4f08e39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=92=A6?= <360013221@qq.com> Date: Tue, 28 May 2024 17:50:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/main.js | 1 + .../components/RoadStateCard/index.vue | 2 - .../Home/components/RoadAndEvents/index.vue | 22 +- .../Cards/DeviceControl/index.vue | 20 +- .../DisposalProcess/DialogProcess/index.vue | 575 ++++-------- .../Cards/DisposalProcess/index.vue | 2 - .../Cards/ReleaseInformation/index.vue | 2 +- .../control/event/commandDispatch/index.vue | 2 +- .../event/event/EventDetailDialog/data.js | 2 +- .../event/event/EventDetailDialog/index.vue | 4 - .../event/event/FormEvent/PresetFormItems.js | 28 +- .../pages/control/event/event/index.vue | 4 +- .../StatsDialogVisible/index.vue | 3 +- .../pages/datav/roadNet/index.vue | 847 ++++++++++++------ .../smart/manage/index.vue | 71 +- .../topology/{ => img}/left-bg-action.png | Bin .../smart/topology/{ => img}/left-bg.png | Bin .../smart/topology/{ => img}/switch0.png | Bin .../smart/topology/{ => img}/switch1.png | Bin .../smart/topology/{ => img}/t01-1.svg | 0 .../smart/topology/{ => img}/t01-2.svg | 0 .../smart/topology/{ => img}/t01-4.svg | 0 .../smart/topology/{ => img}/t01-5.svg | 0 .../smart/topology/{ => img}/t010.svg | 0 .../smart/topology/{ => img}/t011.svg | 0 .../smart/topology/{ => img}/t012.svg | 0 .../smart/topology/{ => img}/t013.svg | 0 .../smart/topology/{ => img}/t014.svg | 0 .../smart/topology/{ => img}/t015.svg | 0 .../smart/topology/{ => img}/t02-1.svg | 0 .../smart/topology/{ => img}/t03.svg | 0 .../smart/topology/{ => img}/t05.svg | 0 .../smart/topology/{ => img}/t06.svg | 0 .../smart/topology/{ => img}/t07.svg | 0 .../smart/topology/{ => img}/t08.svg | 0 .../smart/topology/{ => img}/t11-1.svg | 0 .../smart/topology/{ => img}/t11-2.svg | 0 .../smart/topology/{ => img}/t11-4.svg | 0 .../smart/topology/{ => img}/t11-5.svg | 0 .../smart/topology/{ => img}/t110.svg | 0 .../smart/topology/{ => img}/t111.svg | 0 .../smart/topology/{ => img}/t112.svg | 0 .../smart/topology/{ => img}/t113.svg | 0 .../smart/topology/{ => img}/t114.svg | 0 .../smart/topology/{ => img}/t115.svg | 0 .../smart/topology/{ => img}/t12-1.svg | 0 .../smart/topology/{ => img}/t13.svg | 0 .../smart/topology/{ => img}/t15.svg | 0 .../smart/topology/{ => img}/t16.svg | 0 .../smart/topology/{ => img}/t17.svg | 0 .../smart/topology/{ => img}/t18.svg | 0 .../smart/topology/index.vue | 133 ++- .../smart/topology/xscroll.vue | 74 ++ .../pages/service/board/index.vue | 1 - .../utils/enum_event/PresetFormItems.js | 4 +- .../JiHeExpressway/utils/enum_event/data.js | 122 +-- ruoyi-ui/src/views/websocket.vue | 2 +- ruoyi-ui/vue.config.js | 4 +- 58 files changed, 1151 insertions(+), 774 deletions(-) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/left-bg-action.png (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/left-bg.png (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/switch0.png (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/switch1.png (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t01-1.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t01-2.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t01-4.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t01-5.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t010.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t011.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t012.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t013.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t014.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t015.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t02-1.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t03.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t05.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t06.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t07.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t08.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t11-1.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t11-2.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t11-4.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t11-5.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t110.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t111.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t112.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t113.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t114.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t115.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t12-1.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t13.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t15.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t16.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t17.svg (100%) rename ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/{ => img}/t18.svg (100%) create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/topology/xscroll.vue diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 71ba395a..9c4d9936 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -107,6 +107,7 @@ Vue.prototype.socket = Socket; Vue.prototype.numberMul = numberMul; Vue.prototype.emitter = emitter; +// 挂载全局事件变更ws响应 Vue.prototype.EventBus = new Vue(); // gis Vue.prototype.$GlobalConfig = config.GlobalConfig; diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue index 6a77ffe0..f14cbdb4 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue @@ -2,8 +2,6 @@
- -
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue index 12a41953..4f7f30e0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue @@ -18,9 +18,9 @@
-
@@ -195,6 +195,14 @@ export default { getMinMapLayers(); this.$root.$on('delete-event', this.handleRefresh); + //启动监听事件 + this.EventBus.$on("deviceState", deviceList => { + this.updateEventState(deviceList) + }); + + }, + destroyed(){ + this.EventBus.$off("deviceState"); }, beforeDestroy() { this.emitter.off("selectedCompleted", this.selectedCompletedHandle); @@ -270,6 +278,16 @@ export default { handleDevice: debounce(async function (item) { await this.handleDeviceImmediate(item); }, 360), + //更新设备状态 + async updateEventState(eventList){ + markerClusterIns.data.forEach(e => { + const device = _.find(eventList,{iotDeviceId: e.extData.iotDeviceId}) + if(device){ + e.extData.deviceState = device.deviceState; + } + }); + markerClusterIns.setData() + }, async handleRefresh(){ const tab = _.filter(this.tabContentData,{status:'_active'}) try{ diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue index ed52ec15..08b1bca0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue @@ -59,16 +59,24 @@ export default { return { planId: "", tableData: [], + subclass:"" }; }, - watch: {}, - mounted() {}, - methods: { - detailChange(eventId) { - if(this.tableData.length === 0){ - this.initData(this.detailData); + watch: { + "provideData.detail"(newValue, oldValue) { + if(this.subclass !== newValue.subclass){ + this.initData(newValue) } + }, + }, + mounted() {}, + methods: { + // detailChange(eventId) { + // if(this.tableData.length === 0){ + // this.initData(this.detailData); + // } + // }, initData(eventInfo) { request({ url: `business/plans/list/event/type`, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue index c97d4145..fc022912 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue @@ -1,33 +1,19 @@