调整:延续保护区段和信号机接近区段可选逻辑区段
This commit is contained in:
parent
d1cc62cd99
commit
fc4518b5a0
@ -257,10 +257,8 @@ export default {
|
|||||||
setSelected(selected) {
|
setSelected(selected) {
|
||||||
if (selected) {
|
if (selected) {
|
||||||
if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'routeOverlapSectionList'.toUpperCase()) {
|
if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'routeOverlapSectionList'.toUpperCase()) {
|
||||||
if ((selected.type === '01' || selected.type === '03') && this.addOverlapModel.routeOverlapSectionList.indexOf(selected.code) === -1) {
|
if ((selected.type === '01' || selected.type === '03' || selected.tyoe === '02') && this.addOverlapModel.routeOverlapSectionList.indexOf(selected.code) === -1) {
|
||||||
this.addOverlapModel.routeOverlapSectionList.push(selected.code);
|
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()) {
|
} else if (selected._type.toUpperCase() === 'Switch'.toUpperCase() && this.field.toUpperCase() === 'routeOverlapSwitchList'.toUpperCase()) {
|
||||||
this.overlapCode = selected.code;
|
this.overlapCode = selected.code;
|
||||||
|
@ -153,10 +153,8 @@ export default {
|
|||||||
if (selected._type.toUpperCase() === 'Signal'.toUpperCase() && this.field.toUpperCase() === 'signalCode'.toUpperCase()) {
|
if (selected._type.toUpperCase() === 'Signal'.toUpperCase() && this.field.toUpperCase() === 'signalCode'.toUpperCase()) {
|
||||||
this.addModel.signalCode = selected.code;
|
this.addModel.signalCode = selected.code;
|
||||||
} else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'routeSectionList'.toUpperCase()) {
|
} else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'routeSectionList'.toUpperCase()) {
|
||||||
if ((selected.type === '01' || selected.type === '03') && this.addModel.routeSectionList.indexOf(selected.code) === -1) {
|
if ((selected.type === '01' || selected.type === '03' || selected.type === '02') && this.addModel.routeSectionList.indexOf(selected.code) === -1) {
|
||||||
this.addModel.routeSectionList.push(selected.code);
|
this.addModel.routeSectionList.push(selected.code);
|
||||||
} else if (selected.type === '02' && this.addModel.routeSectionList.indexOf(selected.parentCode) === -1) {
|
|
||||||
this.addModel.routeSectionList.push(selected.parentCode);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user