Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly1
This commit is contained in:
commit
7b0a043243
@ -234,7 +234,6 @@ export default {
|
||||
menuItem.show = menuItem.isShow ? menuItem.isShow(this.selected, this.work) : true;
|
||||
this.menu.push(menuItem);
|
||||
});
|
||||
console.log('🚀 ~ file: menuBar.vue:224 ~ initMenu ~ menu', this.menu);
|
||||
if (this.menu.length) {
|
||||
this.menu[2].children = this.initStationList();
|
||||
this.clickEvent();
|
||||
|
@ -83,6 +83,11 @@ export default {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'$store.state.trainingNew.trainingSwitch': function (val) {
|
||||
if (val && !this.unfold) {
|
||||
this.unfold = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -130,13 +130,15 @@ export default {
|
||||
if (elem.success) {
|
||||
const operate = this.$store.state.training.operate;
|
||||
const control = this.$store.getters['map/getDeviceByCode'](elem.stationControlCode);
|
||||
const station = this.$store.getters['map/getDeviceByCode'](control.stationCode);
|
||||
const newOperate = {
|
||||
type: operate.type,
|
||||
name: station.name
|
||||
};
|
||||
if (control && control.stationCode) {
|
||||
const station = this.$store.getters['map/getDeviceByCode'](control.stationCode);
|
||||
const newOperate = {
|
||||
type: operate.type,
|
||||
name: station.name
|
||||
};
|
||||
|
||||
this.doShow(newOperate);
|
||||
this.doShow(newOperate);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -99,6 +99,11 @@ export default {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'$store.state.trainingNew.trainingSwitch': function (val) {
|
||||
if (val && !this.unfold) {
|
||||
this.unfold = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
Loading…
Reference in New Issue
Block a user