修复:选择进路延续保护区段选中逻辑区段替换为其父区段

This commit is contained in:
fan 2019-12-23 15:21:09 +08:00
parent f469c129ae
commit ea97fc21b9

View File

@ -257,8 +257,10 @@ export default {
setSelected(selected) {
if (selected) {
if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'routeOverlapSectionList'.toUpperCase()) {
if (this.addOverlapModel.routeOverlapSectionList.indexOf(selected.code) === -1) {
if ((selected.type === '01' || selected.type === '03') && this.addOverlapModel.routeOverlapSectionList.indexOf(selected.code) === -1) {
this.addOverlapModel.routeOverlapSectionList.push(selected.code);
} else if ( selected.type === '02' && this.addOverlapModel.routeOverlapSectionList.indexOf(selected.code) === -1) {
this.addOverlapModel.routeOverlapSectionList.push(selected.parentCode);
}
} else if (selected._type.toUpperCase() === 'Switch'.toUpperCase() && this.field.toUpperCase() === 'routeOverlapSwitchList'.toUpperCase()) {
this.overlapCode = selected.code;