显示配置车次窗设备修正=》判断调整

This commit is contained in:
fan 2021-12-09 14:57:55 +08:00
parent 27a56355dd
commit 7b854e717e
3 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ export default {
this.addModel.elementList.push(item.code); this.addModel.elementList.push(item.code);
} }
}); });
} else if (this.hoverIndex > -1 && (['Section'.toUpperCase(), 'Signal'.toUpperCase(), 'TrainWindow'.toUpperCase()].includes(selected._type.toUpperCase()))) { } else if (selected && this.hoverIndex > -1 && (['Section'.toUpperCase(), 'Signal'.toUpperCase(), 'TrainWindow'.toUpperCase()].includes(selected._type.toUpperCase()))) {
this.amendPointsList[this.hoverIndex].code = selected.code; this.amendPointsList[this.hoverIndex].code = selected.code;
} else if (selected) { } else if (selected) {
if (this.addModel.elementList.indexOf(selected.code) < 0) { if (this.addModel.elementList.indexOf(selected.code) < 0) {

View File

@ -266,7 +266,7 @@ export default {
this.addModel.elementList.push(item.code); this.addModel.elementList.push(item.code);
} }
}); });
} else if (this.hoverIndex > -1 && (['Section'.toUpperCase(), 'Signal'.toUpperCase(), 'TrainWindow'.toUpperCase()].includes(selected._type.toUpperCase()))) { } else if (selected && this.hoverIndex > -1 && (['Section'.toUpperCase(), 'Signal'.toUpperCase(), 'TrainWindow'.toUpperCase()].includes(selected._type.toUpperCase()))) {
this.amendPointsList[this.hoverIndex].code = selected.code; this.amendPointsList[this.hoverIndex].code = selected.code;
} else if (selected) { } else if (selected) {
if (this.addModel.elementList.indexOf(selected.code) < 0) { if (this.addModel.elementList.indexOf(selected.code) < 0) {

View File

@ -251,7 +251,7 @@ export default {
this.addModel.elementList.push(item.code); this.addModel.elementList.push(item.code);
} }
}); });
} else if (this.hoverIndex > -1 && (['Section'.toUpperCase(), 'Signal'.toUpperCase(), 'TrainWindow'.toUpperCase()].includes(selected._type.toUpperCase()))) { } else if (selected && this.hoverIndex > -1 && (['Section'.toUpperCase(), 'Signal'.toUpperCase(), 'TrainWindow'.toUpperCase()].includes(selected._type.toUpperCase()))) {
this.amendPointsList[this.hoverIndex].code = selected.code; this.amendPointsList[this.hoverIndex].code = selected.code;
} else if (selected) { } else if (selected) {
if (this.addModel.elementList.indexOf(selected.code) < 0) { if (this.addModel.elementList.indexOf(selected.code) < 0) {