司机、通号增加初始化设备显隐

This commit is contained in:
fan 2021-10-14 14:13:55 +08:00
parent e8fa057adf
commit 5498a7e756
2 changed files with 9 additions and 11 deletions

View File

@ -395,7 +395,6 @@ export default {
this.$refs.menuSchema.chiShowStation = deviceCode; this.$refs.menuSchema.chiShowStation = deviceCode;
this.showStation = deviceCode; this.showStation = deviceCode;
this.$jlmap.amendDevice([...this.sectionList, ...this.signalList]); this.$jlmap.amendDevice([...this.sectionList, ...this.signalList]);
// this.mapViewLoadedOver && this.setShowStation(deviceCode);
if (this.mapViewLoadedOver) { if (this.mapViewLoadedOver) {
const showStation = this.centralizedStationMap[deviceCode]; const showStation = this.centralizedStationMap[deviceCode];
const list = []; const list = [];
@ -412,26 +411,28 @@ export default {
this.jl3dmaintainershow = false; this.jl3dmaintainershow = false;
this.drivingShow = false; this.drivingShow = false;
break; 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': case 'DRIVER':
this.$store.dispatch('training/setPrdType', '04'); this.$store.dispatch('training/setPrdType', '04');
this.$store.dispatch('training/setRoles', 'DRIVER'); this.$store.dispatch('training/setRoles', 'DRIVER');
this.jl3dmaintainershow = false; this.jl3dmaintainershow = false;
this.hidepanel(); this.hidepanel();
this.mapViewLoadedOver && this.setShowStation('');
break; break;
case 'MAINTAINER': case 'MAINTAINER':
this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setPrdType', '');
this.$store.dispatch('training/setRoles', 'MAINTAINER'); this.$store.dispatch('training/setRoles', 'MAINTAINER');
this.hideIbp(); this.hideIbp();
this.jl3dmaintainershow = true; this.jl3dmaintainershow = true;
this.mapViewLoadedOver && this.setShowStation('');
this.drivingShow = false; this.drivingShow = false;
break; 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') { if (this.$route.query.type === 'ILW') {
this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setPrdType', '');

View File

@ -137,9 +137,6 @@ export default {
return (this.$store.state.training.prdType == '02' || this.isAdmin) && (!this.$route.query.projectDevice); return (this.$store.state.training.prdType == '02' || this.isAdmin) && (!this.$route.query.projectDevice);
}, },
isDISPATCHER() { 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'); return (this.$store.state.training.prdType == '01' || this.$store.state.training.prdType == '02' || this.isAdmin) && (!this.$route.query.projectDevice || this.project == 'sdy');
}, },
isStationSupervisor() { isStationSupervisor() {