大铁线路调整15

This commit is contained in:
fan 2022-04-24 11:14:44 +08:00
parent a32a230ed8
commit e24b992ab9
2 changed files with 8 additions and 4 deletions

View File

@ -155,7 +155,11 @@
return typeElem.label;
},
getRouteName(routeCode) {
if (routeCode) {
return this.filterRouteMap[routeCode] + '[' + routeCode + ']'
} else {
return '';
}
},
getStandName(standCode) {
const device = this.$store.getters['map/getDeviceByCode'](standCode);

View File

@ -58,7 +58,7 @@
<el-form-item v-if="['assist', 'main_assist', 'receive_assist', 'deliver_assist', 'change_direction'].includes(addModel.type)" label="关联站台:" prop="standCode">
<el-select v-model="addModel.standCode" clearable filterable>
<el-option
v-for="item in standList"
v-for="item in stationStandList"
:key="item.code"
:label="`${item.name}(${item.code})`"
:value="item.code"
@ -156,7 +156,7 @@
computed: {
...mapGetters('map', [
'sectionList',
'standList',
'stationStandList',
'signalButtonList'
]),
btnList() {
@ -192,7 +192,7 @@
this.field = '';
} else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'sectionList'.toUpperCase()) {
this.addModel.sectionList.push(selected.code);
} else if (selected._type.toUpperCase() === 'Stand'.toUpperCase() && this.field.toUpperCase() === 'standCode'.toUpperCase()) {
} else if (selected._type.toUpperCase() === 'StationStand'.toUpperCase() && this.field.toUpperCase() === 'standCode'.toUpperCase()) {
this.addModel.standCode = selected.code;
this.field = '';
}