From 2bf3ce2e2a81d4d6d0f90e3e5201844aed8eba46 Mon Sep 17 00:00:00 2001 From: fan Date: Sun, 9 Oct 2022 10:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/terminals/index.vue | 3 ++- .../newMap/display/terminals/trafficTerminalWork.vue | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/newMap/display/terminals/index.vue b/src/views/newMap/display/terminals/index.vue index cbedff1ef..b3bc8595e 100644 --- a/src/views/newMap/display/terminals/index.vue +++ b/src/views/newMap/display/terminals/index.vue @@ -6,7 +6,7 @@ - + @@ -126,6 +126,7 @@ export default { } }, pictureChange(val) { + console.log(val, '--------------0'); this.picture = val; }, popupTerminalShow(val) { diff --git a/src/views/newMap/display/terminals/trafficTerminalWork.vue b/src/views/newMap/display/terminals/trafficTerminalWork.vue index a97e91e8d..6b4c50472 100644 --- a/src/views/newMap/display/terminals/trafficTerminalWork.vue +++ b/src/views/newMap/display/terminals/trafficTerminalWork.vue @@ -17,7 +17,7 @@ export default { centralizedStationMap:{ type: Object, default() { - return []; + return {}; } } }, @@ -53,14 +53,17 @@ export default { } }, '$store.state.map.initJlmapLoadedCount': function (val) { - this.handleLocalWorkData(); + this.handleTrafficTerminalWorkData(); } }, + mounted() { + console.log('trafficTerminalWork'); + }, methods: { setSelected(val) { this.selected = val; }, - handleLocalWorkData() { + handleTrafficTerminalWorkData() { const logicData = {routeData:this.$store.state.map.routeData, autoReentryData: this.$store.state.map.autoReentryData}; const repaint = this.$store.state.map.initJlmapLoadedCount === 1; this.$jlmap.setMap(this.mapData, this.mapDevice, logicData, repaint);