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 });