地图绘制设置运行等级激活起始区段调整

This commit is contained in:
fan 2021-11-15 09:50:37 +08:00
parent ab87adabb3
commit dd83568d04

View File

@ -354,11 +354,10 @@ export default {
this.addModel.endStationCode = selected.code;
} else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'startSectionCode'.toUpperCase()) {
if (selected.standTrack || selected.reentryTrack || selected.transferTrack) {
this.addModel.endSectionCode = selected.code;
this.addModel.startSectionCode = selected.code;
} else {
this.$message.error('请选择正确的起始区段');
}
this.addModel.startSectionCode = selected.code;
} else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'endSectionCode'.toUpperCase()) {
if (selected.standTrack || selected.reentryTrack || selected.transferTrack) {
this.addModel.endSectionCode = selected.code;