司机、通号增加初始化设备显隐
This commit is contained in:
parent
e8fa057adf
commit
5498a7e756
@ -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', '');
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user