This commit is contained in:
fan 2020-07-10 10:00:51 +08:00
commit 0d5be61a17
5 changed files with 18 additions and 4 deletions

View File

@ -400,4 +400,8 @@ export default class Train extends Group {
this.isShowShape = false;
}
}
screenShow() {
// this.text && this.text.hide();
this.setState(this.model);
}
}

View File

@ -371,7 +371,6 @@ export const asyncRouter = [
path: 'mapPreview/:mapId',
component: MapPreview,
hidden: true
},
{ // 新版地图预览
path: 'mapPreviewNew/:mapId',

View File

@ -306,6 +306,9 @@ export default {
}
});
}
if (!this.$route.params.mode) {
this.selectChildren(this.navList[0].children[0], 0);
}
},
mounted() {
window.onbeforeunload = this.clearSubscribe;
@ -362,7 +365,7 @@ export default {
}
}
},
selectChildren(item, index) { //
selectChildren(item, index) { //
this.selectChildIndex = index;
this.type = item.type;
const query = {currentSystem: this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id, group: this.group };

View File

@ -303,6 +303,11 @@ export default {
};
},
watch: {},
created() {
if (!this.$route.params.mode) {
this.selectChildren(this.navList[0].children[0], 0);
}
},
mounted() {
this.navList.forEach((nav, navIndex)=>{
if (nav.children && nav.children.length > 0) {
@ -333,7 +338,7 @@ export default {
}
}
},
selectChildren(item, index) { //
selectChildren(item, index) { //
this.selectChildIndex = index;
this.type = item.type;
this.$router.push({ path: `/iscs/system/config/${item.type}`, query: {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id } });

View File

@ -406,6 +406,7 @@ export default {
}
},
async getUserRole() {
console.log("getUserRole");
const res = await getSimulationUserInfo(this.group);
const data = res.data || {};
this.userRole = data.type || 'AUDIENCE';
@ -468,6 +469,7 @@ export default {
},
// prdTyperole
setSimulationPrdType(swch) {
console.log("setSimulationPrdType");
// Admin Dispatcher STATION_SUPERVISOR Audience Driver MAINTAINER IBP:IBP
switch (this.userRole) {
// case 'ADMIN': this.$store.dispatch('training/setPrdType', '02'); this.$store.dispatch('training/setRoles', 'ADMIN'); this.hideIbp(); break;
@ -578,7 +580,8 @@ export default {
hideIbp() {
Message.closeAll();
this.drivingShow = false;
console.log("hideIbp");
// this.drivingShow = false;
this.panelShow = true;
this.ibpShow = false;
if (this.$refs && this.$refs.ibpPlate) {