大铁项目 代码调整
This commit is contained in:
parent
64d98d84a4
commit
f10a118132
@ -12,7 +12,7 @@
|
||||
>
|
||||
<el-form id="AddDispatcherForm" ref="form" :model="model" label-width="80px" :rules="rules">
|
||||
<el-form-item label="车站:" prop="stationCode" style="width: 100%;">
|
||||
<el-select v-model="model.stationCode" placeholder="" style="width:180px">
|
||||
<el-select v-model="model.stationCode" placeholder="" style="width:180px" @change="changeStation">
|
||||
<el-option
|
||||
v-for="item in stationList"
|
||||
:key="item.code"
|
||||
@ -50,7 +50,7 @@
|
||||
<el-form-item label="接车口:" prop="arriveDirectionCode">
|
||||
<el-select v-model="model.arriveDirectionCode" placeholder="" style="width:180px" :disabled="model.startRunPlan">
|
||||
<el-option
|
||||
v-for="item in mapStationDirectionList"
|
||||
v-for="item in filterArrMapStationDirectionList"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
@ -60,7 +60,7 @@
|
||||
<el-form-item label="发车口:" prop="departDirectionCode" style="margin-left:45px;">
|
||||
<el-select v-model="model.departDirectionCode" placeholder="" style="width:180px" :disabled="model.endRunPlan">
|
||||
<el-option
|
||||
v-for="item in mapStationDirectionList"
|
||||
v-for="item in filterDepMapStationDirectionList"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
@ -70,7 +70,7 @@
|
||||
<el-form-item label="接车股道:" prop="arriveSectionCode">
|
||||
<el-select v-model="model.arriveSectionCode" placeholder="" style="width:160px" :disabled="model.startRunPlan">
|
||||
<el-option
|
||||
v-for="item in filterSectionList"
|
||||
v-for="item in filterArrSectionList"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
@ -80,7 +80,7 @@
|
||||
<el-form-item label="发车股道:" prop="departSectionCode" style="margin-left: 67px;">
|
||||
<el-select v-model="model.departSectionCode" placeholder="" style="width:160px" :disabled="model.endRunPlan">
|
||||
<el-option
|
||||
v-for="item in filterSectionList"
|
||||
v-for="item in filterDepSectionList"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
@ -167,6 +167,10 @@ export default {
|
||||
dialogShow: false,
|
||||
loading: false,
|
||||
mapStationDirectionList:[],
|
||||
filterArrMapStationDirectionList:[],
|
||||
filterDepMapStationDirectionList:[],
|
||||
filterArrSectionList:[],
|
||||
filterDepSectionList:[],
|
||||
filterSectionList:[],
|
||||
trainTypeList:[
|
||||
{name:'跨局快速旅客列车', code:'FAST_PASSENGER_TRAIN' }
|
||||
@ -250,6 +254,12 @@ export default {
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
});
|
||||
},
|
||||
changeStation(stationCode) {
|
||||
this.filterArrMapStationDirectionList = this.mapStationDirectionList.filter(each=>{ return each.stationCode == stationCode; });
|
||||
this.filterDepMapStationDirectionList = this.mapStationDirectionList.filter(each=>{ return each.stationCode == stationCode; });
|
||||
this.filterArrSectionList = this.filterSectionList.filter(each=>{ return each.stationCode == stationCode; });
|
||||
this.filterDepSectionList = this.filterSectionList.filter(each=>{ return each.stationCode == stationCode; });
|
||||
},
|
||||
doClose() {
|
||||
this.loading = false;
|
||||
this.dialogShow = false;
|
||||
@ -276,6 +286,8 @@ export default {
|
||||
|
||||
transfinite:'NO' // 超限等级 NO:不超限 TRANSFINITE_SUPER:超级超限 TRANSFINITE_ONE_LEVEL:一级超限 TRANSFINITE_TWO_LEVEL:二级超限
|
||||
};
|
||||
this.filterArrMapStationDirectionList = [];
|
||||
this.filterDepMapStationDirectionList = [];
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
},
|
||||
commit() {
|
||||
|
@ -203,7 +203,6 @@ export default {
|
||||
},
|
||||
'$store.state.training.roleDeviceCode': function (val) {
|
||||
if (this.isCtc) {
|
||||
debugger;
|
||||
this.getRailwaySimulationRunplanSend();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user