区域选择未初始化控制人调整
This commit is contained in:
parent
e1f35c56e9
commit
9aab60fe9c
@ -125,17 +125,18 @@ export default {
|
||||
this.memberId = this.$store.state.training.myMemberId;
|
||||
const centralizedStationCode = this.stationCentralizedMap[this.$store.state.training.roleDeviceCode];
|
||||
const centralizedStation = this.$store.getters['map/getDeviceByCode'](centralizedStationCode);
|
||||
const data = { code: centralizedStation.code, name: centralizedStation.name, apply: false, release: false, distribution: false, controller: null };
|
||||
const data = { code: centralizedStation.code, name: centralizedStation.name, apply: false, release: false, distribution: false, controller: centralizedStation.controller };
|
||||
this.tableData.push(data);
|
||||
centralizedStation.chargeStationCodeList.forEach(elem => {
|
||||
const station = this.$store.getters['map/getDeviceByCode'](elem);
|
||||
const data1 = { code: station.code, name: station.name, apply: false, release: false, distribution: false, controller: null };
|
||||
const data1 = { code: station.code, name: station.name, apply: false, release: false, distribution: false, controller: station.controller };
|
||||
this.tableData.push(data1);
|
||||
});
|
||||
} else if (this.$store.state.training.roles === 'DISPATCHER') {
|
||||
this.memberId = this.$store.state.training.myMemberId;
|
||||
this.stationList.forEach(item => {
|
||||
const data = { code: item.code, name: item.name, apply: false, release: false, distribution: false, controller: null };
|
||||
const station = this.$store.getters['map/getDeviceByCode'](item.code);
|
||||
const data = { code: item.code, name: item.name, apply: false, release: false, distribution: false, controller: station.controller };
|
||||
this.tableData.push(data);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user