大铁项目 车务管理终端 代码调整
This commit is contained in:
parent
da5f1a3fcf
commit
7d473aba6c
@ -38,10 +38,14 @@
|
||||
width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="trackName"
|
||||
prop="trackSectionCode"
|
||||
label="股道名称"
|
||||
width="100"
|
||||
/>
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ filterSectionMap[scope.row.trackSectionCode]?filterSectionMap[scope.row.trackSectionCode].name:'' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="lineType"
|
||||
label="线路性质"
|
||||
@ -187,10 +191,13 @@ export default {
|
||||
1:'是',
|
||||
2:'否'
|
||||
},
|
||||
// T97: {code: 'T97', name: 'IIIG'}
|
||||
// T105: {code: 'T105', name: 'IG'}
|
||||
// T111: {code: 'T111', name: 'IIG'}
|
||||
tableData:[
|
||||
{trackName:'IG', lineType:'1', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
{trackSectionCode:'T97', lineType:'1', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
sewageEqu:'1', military:'1'},
|
||||
{trackName:'IIG', lineType:'2', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
{trackSectionCode:'T105', lineType:'2', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
sewageEqu:'1', military:'1' }
|
||||
]
|
||||
};
|
||||
@ -216,9 +223,9 @@ export default {
|
||||
},
|
||||
handleData() {
|
||||
this.tableData = [
|
||||
{trackName:'IG', lineType:'1', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
{trackSectionCode:'T97', lineType:'1', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
sewageEqu:'1', military:'1'},
|
||||
{trackName:'IIG', lineType:'2', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
{trackSectionCode:'T105', lineType:'2', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
||||
sewageEqu:'1', military:'1' }
|
||||
];
|
||||
},
|
||||
|
@ -14,6 +14,16 @@
|
||||
<!-- 111 -->
|
||||
<!-- form -->
|
||||
<el-form ref="form" :model="model" label-width="85px" :rules="rules">
|
||||
<el-form-item label="股道:" prop="trackSectionCode">
|
||||
<el-select v-model="model.trackSectionCode" placeholder="" style="width:135px">
|
||||
<el-option
|
||||
v-for="item in filterSectionList"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="线路性质:" prop="lineType">
|
||||
<el-select v-model="model.lineType" placeholder="" style="width:145px">
|
||||
<el-option
|
||||
@ -125,7 +135,8 @@ export default {
|
||||
return {
|
||||
dialogShow: false,
|
||||
loading: false,
|
||||
trackSectionCode:'',
|
||||
filterSectionList:[],
|
||||
// trackSectionCode:'',
|
||||
lineTypeList:[
|
||||
{label:'正线', value:'1'},
|
||||
{label:'到发线', value:'2'}
|
||||
@ -168,6 +179,7 @@ export default {
|
||||
{label:'否', value:'2'}
|
||||
],
|
||||
model:{
|
||||
trackSectionCode:'',
|
||||
lineType:'', // 线路性质 正线/到发线
|
||||
direction:'', // 接发车方向 上行、下行、 上下行
|
||||
type:'', // 接发车类型 客车/货车/客货车
|
||||
@ -200,6 +212,7 @@ export default {
|
||||
methods:{
|
||||
doShow({row, filterSectionMap}) {
|
||||
this.filterSectionList = Object.values(filterSectionMap);
|
||||
debugger;
|
||||
this.dialogShow = true;
|
||||
this.$nextTick(function () {
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
|
Loading…
Reference in New Issue
Block a user