From 1bdfe3362305b05b0afad40bebee11ba540c5d3b Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 8 Jul 2022 17:16:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E8=B7=AF=E5=BA=8F=E5=88=97=E3=80=81?= =?UTF-8?q?=E8=82=A1=E9=81=93=E8=A7=86=E5=9B=BE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/datie_02/menus/bottomTable.vue | 9 +++++++++ src/views/newMap/displayCity/lineBoard.vue | 18 +++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/theme/datie_02/menus/bottomTable.vue b/src/jmapNew/theme/datie_02/menus/bottomTable.vue index e5687c866..951aa37af 100644 --- a/src/jmapNew/theme/datie_02/menus/bottomTable.vue +++ b/src/jmapNew/theme/datie_02/menus/bottomTable.vue @@ -157,6 +157,10 @@ export default { const offset = val ? 162 : 0; EventBus.$emit('setMenuButtonPosition', offset); }, + '$store.state.socket.simulationReset': function (val) { + this.sequenceMap = {}; + this.sequenceList = []; + }, '$store.state.socket.railCtcStatusMsg': function (val) { if (val && val.length) { val.forEach(item => { @@ -169,6 +173,11 @@ export default { } }); } + if (item && item.routeSequence && item.routeSequence.deletedLineIds && item.routeSequence.deletedLineIds.length) { + item.routeSequence.deletedLineIds.forEach(elem => { + delete this.sequenceMap[elem]; + }); + } }); this.sequenceList = []; for (const key in this.sequenceMap) { diff --git a/src/views/newMap/displayCity/lineBoard.vue b/src/views/newMap/displayCity/lineBoard.vue index 3bec22354..7a4c8cf2e 100644 --- a/src/views/newMap/displayCity/lineBoard.vue +++ b/src/views/newMap/displayCity/lineBoard.vue @@ -331,7 +331,6 @@ export default { {label: '发车报点', value: 'DEPARTURE'}, {label: '流程终止', value: 'FINISH'} ], - stationDataMap: {}, sequenceMap: {}, sequenceList: [], readOnlyMap: {}, @@ -346,6 +345,13 @@ export default { ]) }, watch: { + '$store.state.socket.simulationReset': function (val) { + this.sequenceMap = {}; + this.sequenceList = []; + this.readOnlyMap = {}; + this.standTrackSectionMap = {}; + this.trackList = []; + }, '$store.state.socket.railCtcStatusMsg': function (val) { if (val && val.length) { val.forEach(item => { @@ -375,6 +381,16 @@ export default { } } } + if (item && item.trackView && item.trackView.deletedMap) { + for (const key in item.trackView.deletedMap) { + if (this.standTrackSectionMap[key] && item.trackView.deletedMap[key] && item.trackView.deletedMap[key].length) { + const sectionMap = this.standTrackSectionMap[key]; + item.trackView.deletedMap[key].forEach(trainCode => { + delete sectionMap[trainCode]; + }); + } + } + } if (item && item.trackView && item.trackView.sectionOccupiedMap) { for (const key in item.trackView.sectionOccupiedMap) { if (this.standTrackSectionMap[key]) {