宁波一号线区域选择调整

This commit is contained in:
fan 2022-12-26 13:58:05 +08:00
parent 871076d7b3
commit 6f9f27974c

View File

@ -118,10 +118,9 @@ export default {
},
doShow() {
this.tableData = [];
this.$store.state.training.simulationUserList.forEach(item => {
if (item.type === 'STATION_SUPERVISOR' && item.userId == this.$store.state.user.id) {
this.memberId = item.memberId;
const centralizedStationCode = this.stationCentralizedMap[item.deviceCode];
if (this.$store.state.training.roles === 'STATION_SUPERVISOR') {
this.memberId = this.$store.state.training.myMemberId;
const centralizedStationCode = this.stationCentralizedMap[this.$store.state.training.roleDeviceCode];
const centralizedStation = this.$store.getters['map/getDeviceByCode'](centralizedStationCode);
this.$set(centralizedStation, 'apply', false);
this.$set(centralizedStation, 'release', false);
@ -134,8 +133,8 @@ export default {
this.$set(station, 'distribution', false);
this.tableData.push(station);
});
} else if (item.type === 'DISPATCHER' && item.userId == this.$store.state.user.id) {
this.memberId = item.memberId;
} else if (this.$store.state.training.roles === 'DISPATCHER') {
this.memberId = this.$store.state.training.myMemberId;
this.stationList.forEach(item => {
this.$set(item, 'apply', false);
this.$set(item, 'release', false);
@ -143,7 +142,6 @@ export default {
this.tableData.push(item);
});
}
});
this.show = true;
},
doClose() {