西安三号线 添加道岔定反位失表

This commit is contained in:
joylink_cuiweidong 2021-06-01 17:29:02 +08:00
parent a8ce67ee4a
commit d58c80888e
2 changed files with 6 additions and 7 deletions

View File

@ -36,7 +36,6 @@ export function deviceFactory(type, elem) {
export function parser(data) {
var ibpDevice = {};
if (data) {
Object.assign(data.background);
ibpDevice[data.background.code] = deviceFactory(deviceType.Background, data.background);
store.dispatch('ibp/setIbpBgDevice', ibpDevice[data.background.code]);
zrUtil.each(data.textList || [], elem => {

View File

@ -189,12 +189,12 @@ export default {
this.deviceName = deviceType[selected._type];
}
this.faultList = deviceFaultType[selected._type];
if (selected._type == 'Switch' && this.popClass == 'xian-01__systerm' ) {
// && this.$route.query.lineCode == '11'
this.faultList = this.faultList.filter(fault=>{
return fault.value != 'NORMAL_SPLIT' && fault.value != 'REVERSE_SPLIT';
});
}
// if (selected._type == 'Switch' && this.popClass == 'xian-01__systerm' ) {
// // && this.$route.query.lineCode == '11'
// this.faultList = this.faultList.filter(fault=>{
// return fault.value != 'NORMAL_SPLIT' && fault.value != 'REVERSE_SPLIT';
// });
// }
if (this.faultList && this.faultList.length) {
this.form.faultType = this.faultList[0].value;
}