From 5deb4cc9abd93ff9b89f9694204a519ae1fe638d Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 29 Jul 2021 14:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/xian_01/menus/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jmapNew/theme/xian_01/menus/index.vue b/src/jmapNew/theme/xian_01/menus/index.vue index 1972c3258..2d1c4fb81 100644 --- a/src/jmapNew/theme/xian_01/menus/index.vue +++ b/src/jmapNew/theme/xian_01/menus/index.vue @@ -153,17 +153,19 @@ export default { if (display) { const codeList = [...display.switchStationCodeList]; let relStationCodeList = []; + let ciStaionCode = ''; codeList.sort((a, b) => { const stationA = this.$store.getters['map/getDeviceByCode'](a); const stationB = this.$store.getters['map/getDeviceByCode'](b); if (stationA.relStationCodeList && stationA.relStationCodeList.length > 0 && relStationCodeList.length <= 0) { relStationCodeList = [...stationA.relStationCodeList]; + ciStaionCode = stationA.code; relStationCodeList.push(stationA.code); } return stationA.kmRange - stationB.kmRange; }); - const currentStation = this.$store.getters['map/getDeviceByCode'](roleDeviceCode); - const currentNode = {label: currentStation.name, children: []}; + const ciStaion = this.$store.getters['map/getDeviceByCode'](ciStaionCode); + const currentNode = {label: ciStaion.name, children: []}; codeList.forEach(code=>{ let node; const station = this.$store.getters['map/getDeviceByCode'](code);