增加交路目的地码

This commit is contained in:
ival 2019-08-20 14:17:53 +08:00
parent febfddfc15
commit 3c11c5fd47

View File

@ -62,6 +62,13 @@
@click="hover('endSectionCode')"
>{{ $t('map.activate') }}</el-button>
</el-form-item>
<el-form-item :label="$t('map.destinationCode')" prop="remarks">
<el-input v-model="addModel.destinationCode" style="width: 178px" />
<el-button
:type=" field === 'routingDestinationCode' ? 'danger' : 'primary'"
@click="hover('routingDestinationCode')"
>{{ $t('map.activate') }}</el-button>
</el-form-item>
<el-form-item :label="$t('map.routingDirection')" prop="directionCode">
<el-select v-model="addModel.directionCode" clearable :filterable="true" :placeholder="$t('map.pleaseSelect')">
<el-option
@ -208,6 +215,9 @@ export default {
name: [
{ required: true, message: this.$t('map.routingName'), trigger: 'change' }
],
destinationCode: [
{ required: true, message: this.$t('map.destinationCode'), trigger: 'change' }
],
startStationCode: [
{ required: true, message: this.$t('map.startStationCode'), trigger: 'change' }
],
@ -293,6 +303,8 @@ export default {
this.sectionCode = selected.code;
} else if (selected._type.toUpperCase() === 'Station'.toUpperCase() && this.field.toUpperCase() == 'routingStation'.toUpperCase()) {
this.stationCode = selected.code;
} else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() == 'routingDestinationCode'.toUpperCase()) {
this.addModel.destinationCode = selected.destinationCode || '';
}
}
},