From 75fccbbd0197fbb1beeeafb8ede6511c4551073d Mon Sep 17 00:00:00 2001 From: lVAL Date: Wed, 30 Dec 2020 10:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20iscs=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iscs/iscsSystem/stationNav.vue | 25 +++++++++++------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/views/iscs/iscsSystem/stationNav.vue b/src/views/iscs/iscsSystem/stationNav.vue index e1ce428f0..c915e0d48 100644 --- a/src/views/iscs/iscsSystem/stationNav.vue +++ b/src/views/iscs/iscsSystem/stationNav.vue @@ -102,7 +102,7 @@ export default { alarmInfo: true, selectStation: 'mainHouseOne', stationList:[], - tractionList:['象峰站', '罗汉山站', '树兜站', '东街口站', '达道站', '三叉街站', '葫芦阵站', '城门站', '胪雷站', '安平站', '梁厝站', '三江口站'], + tractionList:[], group:'', buttonId:'substation', buttonList:{ @@ -327,18 +327,15 @@ export default { this.stationList = []; res.data.forEach(station => { if (!station.depot && station.visible) { - let param = {}; - if (station.runPlanName.includes('站')) { - param = { - name: station.runPlanName, - id: station.code - }; - } else { - param = { - name: station.runPlanName + '站', - id: station.code - }; + const param = { + name: station.name.includes('站') ? station.name : `${station.name}站`, + id: station.code + }; + + if (station.centralized) { + this.tractionList.push(param.name); } + this.stationList.push(param); } }); @@ -348,7 +345,7 @@ export default { } }, mounted() { - this.group = this.$route.query.group + this.group = this.$route.query.group; this.subscribe(); const data = Object.values(this.buttonList); this.initButtonGroup(data); @@ -435,7 +432,7 @@ export default { if (station) { stationName = station.name; } - const query = {stationName: stationName, stationId: this.selectStation, group: this.group, mapId: this.$route.query.mapId, noPreLogout:this.$route.query.noPreLogout }; + const query = {stationName: stationName, stationId: this.selectStation, group: this.group, mapId: this.$route.query.mapId, noPreLogout:this.$route.query.noPreLogout }; if (isReplace) { this.$router.replace({ path: `/displayIscs/system/stationConfig/${type}`, query: query });