代码调整
This commit is contained in:
parent
c88319f4c0
commit
2cca3e1bd4
@ -15,7 +15,7 @@
|
||||
<!-- form -->
|
||||
<el-form ref="form" :model="model" label-width="85px" :rules="rules">
|
||||
<el-form-item label="股道:" prop="code">
|
||||
<el-select v-model="model.code" placeholder="" style="width:135px;margin-right:200px" disabled>
|
||||
<el-select v-model="model.code" placeholder="" style="width:125px;margin-right:230px" disabled>
|
||||
<el-option
|
||||
v-for="item in filterSectionList"
|
||||
:key="item.code"
|
||||
@ -25,7 +25,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="线路性质:" prop="trackNature">
|
||||
<el-select v-model="model.trackNature" placeholder="" style="width:145px">
|
||||
<el-select v-model="model.trackNature" placeholder="" style="width:125px">
|
||||
<el-option
|
||||
v-for="item in lineTypeList"
|
||||
:key="item.value"
|
||||
@ -35,7 +35,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="接发车方向:" prop="direction">
|
||||
<el-select v-model="model.direction" placeholder="" style="width:90px">
|
||||
<el-select v-model="model.direction" placeholder="" style="width:100px">
|
||||
<el-option
|
||||
v-for="item in directionList"
|
||||
:key="item.value"
|
||||
@ -45,7 +45,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="接发车类型:" prop="trainType">
|
||||
<el-select v-model="model.trainType" placeholder="" style="width:90px">
|
||||
<el-select v-model="model.trainType" placeholder="" style="width:100px">
|
||||
<el-option
|
||||
v-for="item in typeList"
|
||||
:key="item.value"
|
||||
@ -55,7 +55,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="超限类型:" prop="transfinite">
|
||||
<el-select v-model="model.transfinite" placeholder="" style="width:145px">
|
||||
<el-select v-model="model.transfinite" placeholder="" style="width:125px">
|
||||
<el-option
|
||||
v-for="item in transfiniteTypeList"
|
||||
:key="item.value"
|
||||
@ -65,7 +65,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="站台:" prop="standType">
|
||||
<el-select v-model="model.standType" placeholder="" style="width:90px">
|
||||
<el-select v-model="model.standType" placeholder="" style="width:100px">
|
||||
<el-option
|
||||
v-for="item in standTypeList"
|
||||
:key="item.value"
|
||||
@ -75,7 +75,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="允许动车组:" prop="motorCar">
|
||||
<el-select v-model="model.motorCar" placeholder="" style="width:90px">
|
||||
<el-select v-model="model.motorCar" placeholder="" style="width:100px">
|
||||
<el-option
|
||||
v-for="item in allowEmuList"
|
||||
:key="item.value"
|
||||
@ -85,7 +85,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="上水设备:" prop="waterSupply">
|
||||
<el-select v-model="model.waterSupply" placeholder="" style="width:145px">
|
||||
<el-select v-model="model.waterSupply" placeholder="" style="width:125px">
|
||||
<el-option
|
||||
v-for="item in addWaterEquList"
|
||||
:key="item.value"
|
||||
@ -95,7 +95,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="排污设备:" prop="sewageAbsorption">
|
||||
<el-select v-model="model.sewageAbsorption" placeholder="" style="width:90px">
|
||||
<el-select v-model="model.sewageAbsorption" placeholder="" style="width:100px">
|
||||
<el-option
|
||||
v-for="item in sewageEquList"
|
||||
:key="item.value"
|
||||
@ -105,7 +105,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="军用:" prop="military">
|
||||
<el-select v-model="model.military" placeholder="" style="width:90px">
|
||||
<el-select v-model="model.military" placeholder="" style="width:100px">
|
||||
<el-option
|
||||
v-for="item in militaryList"
|
||||
:key="item.value"
|
||||
@ -178,6 +178,7 @@ export default {
|
||||
{label:'是', value:true},
|
||||
{label:'否', value:false}
|
||||
],
|
||||
stationCode:'', // 车站
|
||||
model:{
|
||||
code:'',
|
||||
trackNature:'', // 线路性质 正线/到发线
|
||||
@ -188,11 +189,29 @@ export default {
|
||||
motorCar:'', // 允许动车组 选择“是/否”。
|
||||
waterSupply:'', // 上水设备 选择“有/无”
|
||||
sewageAbsorption:'', // 排污设备 选择“有/无”
|
||||
military:'', // 军用 是/否
|
||||
stationCode:'' // 车站
|
||||
military:'' // 军用 是/否
|
||||
},
|
||||
rules:{
|
||||
|
||||
trackNature: [
|
||||
{ required: true, message: '请选择线路性质', trigger: 'blur' },
|
||||
{ required: true, message: '请选择线路性质', trigger: 'change' }
|
||||
],
|
||||
direction: [
|
||||
{ required: true, message: '请选择接发车方向', trigger: 'blur' },
|
||||
{ required: true, message: '请选择接发车方向', trigger: 'change' }
|
||||
],
|
||||
trainType: [
|
||||
{ required: true, message: '请选择接发车类型', trigger: 'blur' },
|
||||
{ required: true, message: '请选择接发车类型', trigger: 'change' }
|
||||
],
|
||||
transfinite: [
|
||||
{ required: true, message: '请选择超限类型', trigger: 'blur' },
|
||||
{ required: true, message: '请选择超限类型', trigger: 'change' }
|
||||
],
|
||||
standType: [
|
||||
{ required: true, message: '请选择站台', trigger: 'blur' },
|
||||
{ required: true, message: '请选择站台', trigger: 'change' }
|
||||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
@ -213,7 +232,7 @@ export default {
|
||||
methods:{
|
||||
doShow({row, filterSectionMap, stationCode}) {
|
||||
this.filterSectionList = Object.values(filterSectionMap);
|
||||
this.model.stationCode = stationCode;
|
||||
this.stationCode = stationCode;
|
||||
this.dialogShow = true;
|
||||
this.$nextTick(function () {
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
@ -228,7 +247,7 @@ export default {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
this.loading = true;
|
||||
commitOperate(menuOperate.CTC.modifyStationTrack, this.model, 3).then(({valid})=>{
|
||||
commitOperate(menuOperate.CTC.modifyStationTrack, Object.assign({stationCode:this.stationCode}, this.model), 3).then(({valid})=>{
|
||||
if (valid) {
|
||||
this.doClose();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user