diff --git a/src/jmapNew/theme/xian_01/menus/menuDialog/stationControlConvert.vue b/src/jmapNew/theme/xian_01/menus/menuDialog/stationControlConvert.vue index 8a07afa6c..0bbd9988b 100644 --- a/src/jmapNew/theme/xian_01/menus/menuDialog/stationControlConvert.vue +++ b/src/jmapNew/theme/xian_01/menus/menuDialog/stationControlConvert.vue @@ -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,