diff --git a/src/jmapNew/theme/ningbo_01/menus/menuDialog/areaSelection.vue b/src/jmapNew/theme/ningbo_01/menus/menuDialog/areaSelection.vue index da68e047f..113cf609a 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuDialog/areaSelection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuDialog/areaSelection.vue @@ -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); }); }