宁波一号线区域选择调整
This commit is contained in:
parent
871076d7b3
commit
6f9f27974c
@ -118,32 +118,30 @@ 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];
|
||||
const centralizedStation = this.$store.getters['map/getDeviceByCode'](centralizedStationCode);
|
||||
this.$set(centralizedStation, 'apply', false);
|
||||
this.$set(centralizedStation, 'release', false);
|
||||
this.$set(centralizedStation, 'distribution', false);
|
||||
this.tableData.push(centralizedStation);
|
||||
centralizedStation.chargeStationCodeList.forEach(elem => {
|
||||
const station = this.$store.getters['map/getDeviceByCode'](elem);
|
||||
this.$set(station, 'apply', false);
|
||||
this.$set(station, 'release', false);
|
||||
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;
|
||||
this.stationList.forEach(item => {
|
||||
this.$set(item, 'apply', false);
|
||||
this.$set(item, 'release', false);
|
||||
this.$set(item, 'distribution', false);
|
||||
this.tableData.push(item);
|
||||
});
|
||||
}
|
||||
});
|
||||
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);
|
||||
this.$set(centralizedStation, 'distribution', false);
|
||||
this.tableData.push(centralizedStation);
|
||||
centralizedStation.chargeStationCodeList.forEach(elem => {
|
||||
const station = this.$store.getters['map/getDeviceByCode'](elem);
|
||||
this.$set(station, 'apply', false);
|
||||
this.$set(station, 'release', false);
|
||||
this.$set(station, 'distribution', false);
|
||||
this.tableData.push(station);
|
||||
});
|
||||
} 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);
|
||||
this.$set(item, 'distribution', false);
|
||||
this.tableData.push(item);
|
||||
});
|
||||
}
|
||||
this.show = true;
|
||||
},
|
||||
doClose() {
|
||||
|
Loading…
Reference in New Issue
Block a user