Merge remote-tracking branch 'origin/test'

This commit is contained in:
thesai 2021-01-12 23:46:38 +08:00
commit 032ec93af4

View File

@ -523,10 +523,11 @@ export default {
} }
}, },
switchStationMode(stationCode) { switchStationMode(stationCode) {
this.showStation = stationCode; this.showStation = this.centralizedStationMap[stationCode];
this.setShowStation(this.showStation); this.setShowStation(this.showStation);
}, },
setShowStation(stationCode) { setShowStation(stationCode) {
const showStation = this.centralizedStationMap[stationCode];
const nameList = Object.keys(this.$store.state.map.map); const nameList = Object.keys(this.$store.state.map.map);
let list = []; let list = [];
nameList.forEach(item => { nameList.forEach(item => {
@ -534,8 +535,8 @@ export default {
list = [...list, ...this.$store.state.map.map[item]]; list = [...list, ...this.$store.state.map.map[item]];
} }
}); });
this.$jlmap.updateShowStation(list, stationCode); this.$jlmap.updateShowStation(list, showStation);
this.$jlmap.setCenter(stationCode); this.$jlmap.setCenter(showStation);
}, },
setStationList(map) { setStationList(map) {
this.stationList = []; this.stationList = [];