From d2357e0797ef82a5f7d82652142f4a97081090e0 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 15 Jul 2021 10:50:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E7=94=9F=E6=88=90=E9=9B=86?= =?UTF-8?q?=E4=B8=AD=E7=AB=99=E7=8E=B0=E5=9C=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/baseUrl.js | 4 +- src/views/newMap/displayNew/selectStation.vue | 13 ++-- src/views/newMap/jlmapNew/index.vue | 22 +++---- src/views/newMap/jointTrainingNew/index.vue | 22 +++---- .../newMapdraft/mapoperate/localConfig.vue | 59 ++++++++++++++++++- 5 files changed, 88 insertions(+), 32 deletions(-) diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 8b75cd8e6..bc303bcc8 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,11 +2,11 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.2.175:9000'; // 旭强 有线 // BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线 - BASE_API = 'http://192.168.2.183:9000'; // 张赛 + // BASE_API = 'http://192.168.2.183:9000'; // 张赛 // BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 diff --git a/src/views/newMap/displayNew/selectStation.vue b/src/views/newMap/displayNew/selectStation.vue index 6d1306ff1..6636801be 100644 --- a/src/views/newMap/displayNew/selectStation.vue +++ b/src/views/newMap/displayNew/selectStation.vue @@ -57,12 +57,13 @@ export default { this.showMemberId = val; const member = this.$store.state.training.memberData[val]; const station = this.$store.getters['map/getDeviceByCode'](member.deviceCode); - const lineCode = this.$store.getters['map/lineCode']; - if ((lineCode === '02' || lineCode === '05') && station) { - this.showStation = station.code; - const showStationCode = this.stationCentralizedMap[station.code]; - this.setCenter(showStationCode); - } else if (station) { + // const lineCode = this.$store.getters['map/lineCode']; + // if ((lineCode === '02' || lineCode === '05') && station) { + // this.showStation = station.code; + // const showStationCode = this.stationCentralizedMap[station.code]; + // this.setCenter(showStationCode); + // } else + if (station) { this.showStation = station.code; const showStationCode = this.stationCentralizedMap[station.code]; const mapDevice = this.$store.state.map.mapDevice; diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index d6a20f1a2..8894b7e1f 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -502,18 +502,18 @@ export default { }, setShowStation(stationCode, setCenter) { const lineCode = this.$store.getters['map/lineCode']; - if (lineCode === '02' || lineCode === '05') { - !setCenter && this.setCenter(stationCode); - } else { - const list = []; - const mapDevice = this.$store.state.map.mapDevice; - for (const key in mapDevice) { - list.push(mapDevice[key]); - } - - this.$jlmap.updateShowStation(list, stationCode); - !setCenter && this.setCenter(stationCode); + // if (lineCode === '02' || lineCode === '05') { + // !setCenter && this.setCenter(stationCode); + // } else { + const list = []; + const mapDevice = this.$store.state.map.mapDevice; + for (const key in mapDevice) { + list.push(mapDevice[key]); } + + this.$jlmap.updateShowStation(list, stationCode); + !setCenter && this.setCenter(stationCode); + // } }, setOffset(data, num, sum, obj) { this.$jlmap.switchScreen(data, num, sum, obj); diff --git a/src/views/newMap/jointTrainingNew/index.vue b/src/views/newMap/jointTrainingNew/index.vue index 49d50894f..1fa5a659a 100644 --- a/src/views/newMap/jointTrainingNew/index.vue +++ b/src/views/newMap/jointTrainingNew/index.vue @@ -552,18 +552,18 @@ export default { // }, setShowStation(stationCode) { const showStation = this.centralizedStationMap[stationCode]; - const lineCode = this.$store.getters['map/lineCode']; - if (lineCode === '02' || lineCode === '05') { - this.$jlmap.setCenter(showStation); - } else { - const list = []; - const mapDevice = this.$store.state.map.mapDevice; - for (const key in mapDevice) { - list.push(mapDevice[key]); - } - this.$jlmap.updateShowStation(list, showStation); - this.$jlmap.setCenter(showStation); + // const lineCode = this.$store.getters['map/lineCode']; + // if (lineCode === '02' || lineCode === '05') { + // this.$jlmap.setCenter(showStation); + // } else { + const list = []; + const mapDevice = this.$store.state.map.mapDevice; + for (const key in mapDevice) { + list.push(mapDevice[key]); } + this.$jlmap.updateShowStation(list, showStation); + this.$jlmap.setCenter(showStation); + // } }, setCentralizedstationList(map) { this.centralizedstationList = []; diff --git a/src/views/newMap/newMapdraft/mapoperate/localConfig.vue b/src/views/newMap/newMapdraft/mapoperate/localConfig.vue index 366267ddb..6090b5df0 100644 --- a/src/views/newMap/newMapdraft/mapoperate/localConfig.vue +++ b/src/views/newMap/newMapdraft/mapoperate/localConfig.vue @@ -1,5 +1,5 @@