diff --git a/src/store/modules/menuoperation.js b/src/store/modules/menuoperation.js index 9c85a5e95..07b202143 100644 --- a/src/store/modules/menuoperation.js +++ b/src/store/modules/menuoperation.js @@ -232,6 +232,9 @@ const menuOperation = { spliceRequestList: ({ commit }, request) => { commit('spliceRequestList', request); }, + resetRequestList: ({ commit }) => { + commit('resetRequestList'); + }, /** 西安二号线排列进路保存信号机进路数据 */ setRouteSelectStartSignal: ({ commit }, param) => { commit('setRouteSelectStartSignal', param); diff --git a/src/views/newMap/displayNew/practiceDisplay.vue b/src/views/newMap/displayNew/practiceDisplay.vue index 9477b0995..a52756ed2 100644 --- a/src/views/newMap/displayNew/practiceDisplay.vue +++ b/src/views/newMap/displayNew/practiceDisplay.vue @@ -198,7 +198,6 @@ export default { const trainNumList = this.$store.state.socket.trainPfiNum; trainNumList.forEach(stationNum=>{ stationNum.deviceType = 'TRAIN'; - console.log(stationNum.num, 'inital'); }); this.$store.dispatch('training/updateMapState', trainNumList); } diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index a85a8ea22..9cf11ae57 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -220,6 +220,7 @@ export default { EventBus.$off('viewLoading'); EventBus.$off('viewProgressAt'); this.$store.dispatch('socket/clearSimulationRoleList'); + this.$store.dispatch('menuOperation/resetRequestList'); this.$store.dispatch('map/mapClear'); if (this.$jlmap) { this.$jlmap.dispose(); diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index 8d13e8196..fe59b5b85 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -232,6 +232,7 @@ export default { await this.$store.dispatch('training/end', null); await this.$store.dispatch('training/reset'); await this.$store.dispatch('map/mapClear'); + await this.$store.dispatch('menuOperation/resetRequestList'); Message.closeAll(); }, methods: { @@ -484,7 +485,7 @@ export default { if (this.$store.state.training.prdType == '04') { this.panelShow = false; this.drivingShow = true; - this.$refs.Jl3dDrive.show(this.mapId, this.group, 34,"isTraining"); + this.$refs.Jl3dDrive.show(this.mapId, this.group, 34, 'isTraining'); } else { const routeData = this.$router.resolve({ path:'/jlmap3d/sandbox', @@ -527,7 +528,7 @@ export default { this.setShowStation(this.showStation); }, setShowStation(stationCode) { - const showStation = this.centralizedStationMap[stationCode]; + const showStation = this.centralizedStationMap[stationCode]; const nameList = Object.keys(this.$store.state.map.map); let list = []; nameList.forEach(item => {