From 2d154f16111d1795c56d12999486a60aa3dab649 Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Tue, 12 Jan 2021 23:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=99=BB=E5=BD=95=E8=A1=8C?= =?UTF-8?q?=E5=80=BC=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/jointTrainingNew/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index 143735f69..8d13e8196 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -523,10 +523,11 @@ export default { } }, switchStationMode(stationCode) { - this.showStation = stationCode; + this.showStation = this.centralizedStationMap[stationCode]; this.setShowStation(this.showStation); }, setShowStation(stationCode) { + const showStation = this.centralizedStationMap[stationCode]; const nameList = Object.keys(this.$store.state.map.map); let list = []; nameList.forEach(item => { @@ -534,8 +535,8 @@ export default { list = [...list, ...this.$store.state.map.map[item]]; } }); - this.$jlmap.updateShowStation(list, stationCode); - this.$jlmap.setCenter(stationCode); + this.$jlmap.updateShowStation(list, showStation); + this.$jlmap.setCenter(showStation); }, setStationList(map) { this.stationList = [];