大铁项目 车务管理终端 获取出入口列表 代码调整
This commit is contained in:
parent
5939dc773f
commit
6d8f209cbb
@ -796,6 +796,11 @@ export const menuOperate = {
|
||||
operation: OperationEvent.CTCCommand.getTrainFixedPath.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_LIST
|
||||
},
|
||||
// 获取出入口列表
|
||||
getStationDirection:{
|
||||
operation: OperationEvent.CTCCommand.getStationDirection.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_STATION_IO_GATE_LIST
|
||||
},
|
||||
// 出入口发布生效区
|
||||
releaseStationDirection:{
|
||||
operation: OperationEvent.CTCCommand.releaseStationDirection.menu.operation,
|
||||
|
@ -453,6 +453,7 @@ export default {
|
||||
CTC_REGULAR_TRAIN_LINE_LIST:{value: 'REGULAR_TRAIN_LINE_LIST', label: ' 获取固定列车径路'},
|
||||
CTC_STATION_DETAIL_EDIT:{value: 'STATION_DETAIL_EDIT', label: '修改股道信息'},
|
||||
CTC_STATION_IO_GATE_PUBLISH:{value: 'STATION_IO_GATE_PUBLISH', label: '出入口发布生效区'},
|
||||
CTC_STATION_IO_GATE_LIST:{value: 'STATION_IO_GATE_LIST', label: '获取出入口列表'},
|
||||
|
||||
CTC_SET_ROUTE:{value: 'CTC_SET_ROUTE', label: 'CTC办理进路'},
|
||||
|
||||
|
@ -4000,6 +4000,13 @@ export const OperationEvent = {
|
||||
operation: '1155',
|
||||
domId: '_Tips-CTC-releaseStationDirection-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 获取出入口列表
|
||||
getStationDirection:{
|
||||
menu: {
|
||||
operation: '1156',
|
||||
domId: '_Tips-CTC-getStationDirection-Menu{TOP}'
|
||||
}
|
||||
}
|
||||
// CTC_ZONE_SAVE_TRIP_NUMBER
|
||||
// CTC_ZONE_SAVE_STATION
|
||||
|
@ -19,7 +19,59 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="stationDirectionRTable" :style="{ height: (height-40)+'px' }">
|
||||
{{ '' }}
|
||||
<el-table
|
||||
id="stationDirectionTableIn"
|
||||
ref="stationDirectionTableIn"
|
||||
:data="tableData"
|
||||
border
|
||||
height="600px"
|
||||
highlight-current-row
|
||||
style="border:1px #ccc solid;width:1103px"
|
||||
@row-click="selectedSection"
|
||||
@row-dblclick="rowDbClick"
|
||||
>
|
||||
<el-table-column
|
||||
prop="ioName"
|
||||
label="出入口名称"
|
||||
width="300"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="ioDirection"
|
||||
label="方向"
|
||||
width="200"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ ioDirectionMap[scope.row.ioDirection] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="allowOverrun"
|
||||
label="允许超限列车"
|
||||
width="200"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ allowOverrunMap[scope.row.allowOverrun] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="travelTrain"
|
||||
label="允许旅客列车"
|
||||
width="200"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ travelTrainMap[scope.row.travelTrain] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="goodsTrain"
|
||||
label="允许货车"
|
||||
width="200"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ goodsTrainMap[scope.row.goodsTrain] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -27,6 +79,7 @@
|
||||
<script>
|
||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||
import TerminalStationList from './terminalStationList';
|
||||
// directionInformation
|
||||
export default {
|
||||
name:'StationDirection',
|
||||
components: {
|
||||
@ -36,7 +89,27 @@ export default {
|
||||
return {
|
||||
height: this.$store.state.app.height - 61,
|
||||
currentStationCode:'',
|
||||
currentRow:null
|
||||
currentRow:null,
|
||||
tableData:[],
|
||||
ioDirectionMap:{
|
||||
'DOWN_IN_STATION':'下行进站',
|
||||
'UP_IN_STATION':'上行进站',
|
||||
'DOWN_OUT_STATION':'下行出站',
|
||||
'UP_OUT_STATION':'上行出站',
|
||||
'BOTH_WAY_STATION':'双向'
|
||||
},
|
||||
travelTrainMap:{
|
||||
true:'是',
|
||||
false:'否'
|
||||
},
|
||||
allowOverrunMap:{
|
||||
true:'是',
|
||||
false:'否'
|
||||
},
|
||||
goodsTrainMap:{
|
||||
true:'是',
|
||||
false:'否'
|
||||
}
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
@ -48,10 +121,26 @@ export default {
|
||||
this.handleData(stationCode);
|
||||
},
|
||||
handleData(stationCode) {
|
||||
|
||||
commitOperate(menuOperate.CTC.getStationDirection, { stationCode: stationCode }, 3).then(({valid, response}) => {
|
||||
if (valid) {
|
||||
this.tableData = response.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
modifySection() {
|
||||
rowDbClick(row, column, event) {
|
||||
this.currentRow = row;
|
||||
this.modifyDirection();
|
||||
},
|
||||
selectedSection(row, column, event) {
|
||||
this.currentRow = row;
|
||||
},
|
||||
// 修改出入口
|
||||
modifyDirection() {
|
||||
if (this.currentRow) {
|
||||
// this.$refs.directionInformation.doShow({
|
||||
// row:this.currentRow,
|
||||
// stationCode:this.currentStationCode
|
||||
// });
|
||||
}
|
||||
},
|
||||
// 出入口发布生效区
|
||||
@ -107,4 +196,21 @@ export default {
|
||||
padding: 5px 10px;
|
||||
border: 1px #737373 solid;
|
||||
}
|
||||
.stationDirectionButton:hover{
|
||||
background-image: linear-gradient(#efffff,#a8daf3);
|
||||
}
|
||||
</style>
|
||||
<style lang="scss">
|
||||
#stationDirectionTableIn.el-table td, #stationDirectionTableIn.el-table th{
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
border-color: #a5a5a5;
|
||||
}
|
||||
// .el-table__body tr.current-row>td
|
||||
// .el-table__body tr.current-row>td
|
||||
// #runplanContentTable .el-table__body tr.current-row>td .el-input--mini .el-input__inner{
|
||||
#stationDirectionTableIn .el-table__body tr.current-row>td{
|
||||
background-color: #6aa8ec;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
|
@ -249,6 +249,7 @@ export default {
|
||||
this.loading = true;
|
||||
commitOperate(menuOperate.CTC.modifyStationTrack, Object.assign({stationCode:this.stationCode}, this.model), 3).then(({valid})=>{
|
||||
if (valid) {
|
||||
this.$message.success('更新成功!');
|
||||
this.doClose();
|
||||
}
|
||||
}).catch(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user