diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index 33cede957..2411de219 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -395,7 +395,6 @@ export default { this.$refs.menuSchema.chiShowStation = deviceCode; this.showStation = deviceCode; this.$jlmap.amendDevice([...this.sectionList, ...this.signalList]); - // this.mapViewLoadedOver && this.setShowStation(deviceCode); if (this.mapViewLoadedOver) { const showStation = this.centralizedStationMap[deviceCode]; const list = []; @@ -412,26 +411,28 @@ export default { this.jl3dmaintainershow = false; this.drivingShow = false; break; - case 'AUDIENCE': - this.$store.dispatch('training/setPrdType', ''); - this.$store.dispatch('training/setRoles', 'AUDIENCE'); - this.jl3dmaintainershow = false; - this.drivingShow = false; - this.hideIbp(); - break; case 'DRIVER': this.$store.dispatch('training/setPrdType', '04'); this.$store.dispatch('training/setRoles', 'DRIVER'); this.jl3dmaintainershow = false; this.hidepanel(); + this.mapViewLoadedOver && this.setShowStation(''); break; case 'MAINTAINER': this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setRoles', 'MAINTAINER'); this.hideIbp(); this.jl3dmaintainershow = true; + this.mapViewLoadedOver && this.setShowStation(''); this.drivingShow = false; break; + default: + this.$store.dispatch('training/setPrdType', ''); + this.$store.dispatch('training/setRoles', 'AUDIENCE'); + this.jl3dmaintainershow = false; + this.drivingShow = false; + this.hideIbp(); + this.mapViewLoadedOver && this.setShowStation(''); } if (this.$route.query.type === 'ILW') { this.$store.dispatch('training/setPrdType', ''); diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 7297e3748..161f23e50 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -137,9 +137,6 @@ export default { return (this.$store.state.training.prdType == '02' || this.isAdmin) && (!this.$route.query.projectDevice); }, isDISPATCHER() { - console.log('================================'); - - console.log(this.$store.state.training.prdType); return (this.$store.state.training.prdType == '01' || this.$store.state.training.prdType == '02' || this.isAdmin) && (!this.$route.query.projectDevice || this.project == 'sdy'); }, isStationSupervisor() {