代码调整
This commit is contained in:
parent
f45b1b9b05
commit
013ecae2e3
@ -272,8 +272,9 @@ export default {
|
||||
}
|
||||
});
|
||||
} else if (this.work === 'localWork') {
|
||||
const stationCodeList = this.$store.state.map.stationControlMap[this.$store.state.training.roleDeviceCode];
|
||||
stationCodeList && stationCodeList.forEach(stationCode => {
|
||||
const stationCodeList = this.$store.state.map.stationControlMap[this.$store.state.training.roleDeviceCode] || [];
|
||||
const list = [...new Set(stationCodeList)]; // 去重
|
||||
list && list.forEach(stationCode => {
|
||||
const station = this.$store.getters['map/getDeviceByCode'](stationCode);
|
||||
this.tableData.push({
|
||||
code: station.code,
|
||||
|
Loading…
Reference in New Issue
Block a user