修改 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,
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 + '站',
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);