修改 iscs 数据获取来源

This commit is contained in:
lVAL 2020-12-30 10:47:25 +08:00
parent 07a1403be8
commit 75fccbbd01

View File

@ -102,7 +102,7 @@ export default {
alarmInfo: true, alarmInfo: true,
selectStation: 'mainHouseOne', selectStation: 'mainHouseOne',
stationList:[], stationList:[],
tractionList:['象峰站', '罗汉山站', '树兜站', '东街口站', '达道站', '三叉街站', '葫芦阵站', '城门站', '胪雷站', '安平站', '梁厝站', '三江口站'], tractionList:[],
group:'', group:'',
buttonId:'substation', buttonId:'substation',
buttonList:{ buttonList:{
@ -327,18 +327,15 @@ export default {
this.stationList = []; this.stationList = [];
res.data.forEach(station => { res.data.forEach(station => {
if (!station.depot && station.visible) { if (!station.depot && station.visible) {
let param = {}; const param = {
if (station.runPlanName.includes('站')) { name: station.name.includes('站') ? station.name : `${station.name}`,
param = {
name: station.runPlanName,
id: station.code
};
} else {
param = {
name: station.runPlanName + '站',
id: station.code id: station.code
}; };
if (station.centralized) {
this.tractionList.push(param.name);
} }
this.stationList.push(param); this.stationList.push(param);
} }
}); });
@ -348,7 +345,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.group = this.$route.query.group this.group = this.$route.query.group;
this.subscribe(); this.subscribe();
const data = Object.values(this.buttonList); const data = Object.values(this.buttonList);
this.initButtonGroup(data); this.initButtonGroup(data);