大铁项目 车务终端 固定列车经路从生效区更新、更新后的列表 代码调整

This commit is contained in:
joylink_cuiweidong 2022-08-25 11:29:02 +08:00
parent 832d26709f
commit 2f87a19864
5 changed files with 247 additions and 3 deletions

View File

@ -761,6 +761,21 @@ export const menuOperate = {
operation: OperationEvent.CTCCommand.batchTrainFixedPath.menu.operation,
cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_BATCH
},
// 固定列车径路从生效区更新
updateTrainFixedPath2Station:{
operation: OperationEvent.CTCCommand.updateTrainFixedPath2Station.menu.operation,
cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_STATION_UPDATE
},
// 固定列车经路更新列表
getStationTrainFixedPath:{
operation: OperationEvent.CTCCommand.getStationTrainFixedPath.menu.operation,
cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_STATION_UPDATE_LIST
},
// 固定列车经路更新加载到计划
loadUpdateStationTrainFixedPath:{
operation: OperationEvent.CTCCommand.loadUpdateStationTrainFixedPath.menu.operation,
cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_STATION_UPDATE_LOAD
},
// 导入列车固定径路
importTrainFixedPath:{

View File

@ -10,12 +10,14 @@
<manage-user ref="manageUser" />
<help-about ref="helpAbout" />
<set-limit-speed ref="setLimitSpeed" />
<train-fixed-path-pane ref="trainFixedPathPane" />
</div>
</template>
<script>
import { mapGetters } from 'vuex';
import MenuBar from '@/jmapNew/theme/components/menus/menuBar';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import StationControlConvert from './menuDialog/stationControlConvert';
import TrainAdd from './menuDialog/trainAdd';
import TrainTranstalet from './menuDialog/trainTranstalet';
@ -25,6 +27,7 @@ import ViewName from './menuDialog/viewName';
import ManageUser from './menuDialog/manageUser';
import HelpAbout from './menuDialog/helpAbout';
import SetLimitSpeed from './menuDialog/setLimitSpeed';
import TrainFixedPathPane from './menuDialog/trainFixedPathPane';
import { EventBus } from '@/scripts/event-bus';
export default {
@ -39,7 +42,8 @@ export default {
TrainDelete,
ManageUser,
HelpAbout,
SetLimitSpeed
SetLimitSpeed,
TrainFixedPathPane
},
props: {
dateString: {
@ -168,11 +172,11 @@ export default {
},
{
title: '更新数据',
click: this.undeveloped
click: this.updateTrainFixedPath
},
{
title: '列车固定径路',
click: this.undeveloped
click: this.trainFixedPathPane
},
{
type: 'separator'
@ -306,6 +310,22 @@ export default {
}
});
},
updateTrainFixedPath() {
const stationCode = this.$store.state.training.roleDeviceCode;
commitOperate(menuOperate.CTC.updateTrainFixedPath2Station, { stationCode: stationCode }, 3).then(({valid, response}) => {
if (valid) {
//
}
});
},
trainFixedPathPane() {
const stationCode = this.$store.state.training.roleDeviceCode;
this.$refs.trainFixedPathPane.doShow(stationCode);
},
//
// getStationTrainFixedPath
//
// loadUpdateStationTrainFixedPath
bottomTableShowOrHidden() {
EventBus.$emit('bottomTableShowOrHidden');
},

View File

@ -0,0 +1,184 @@
<template>
<el-dialog
v-dialogDrag
class="chengdou-03__systerm"
:title="title"
:visible.sync="show"
width="1220px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<el-table
id="trainFixedPathList"
:data="trainFixedPathList"
border
height="280"
style="width: 100%;border:1px #ccc solid"
>
<el-table-column
type="index"
label="序号"
width="70"
/>
<el-table-column
prop="stationCode"
label="站名"
width="120"
>
<template slot-scope="scope">
{{ stationMap[scope.row.stationCode].name }}
</template>
</el-table-column>
<el-table-column
prop="arriveTipNum"
label="到达车次"
width="80"
/>
<el-table-column
prop="arriveTime"
label="到达时间"
width="80"
/>
<el-table-column
prop="leaveTipNum"
label="出发车次"
width="80"
/>
<el-table-column
prop="leaveTime"
label="出发时间"
width="80"
/>
<el-table-column
prop="masterCode"
label="股道名"
width="75"
>
<template slot-scope="scope">
<div v-if="scope.row.masterCode">
{{ sectionMap[scope.row.masterCode].name }}
</div>
</template>
</el-table-column>
<el-table-column
prop="backStationCode"
label="来方车站"
width="120"
>
<!-- 后方车站 -->
<template slot-scope="scope">
<div v-if="scope.row.backStationCode">
{{ stationMap[scope.row.backStationCode].name }}
</div>
</template>
</el-table-column>
<el-table-column
prop="fontStationCode"
label="去方车站"
width="120"
>
<!-- 前方车站 -->
<template slot-scope="scope">
<div v-if="scope.row.fontStationCode">
{{ stationMap[scope.row.fontStationCode].name }}
</div>
</template>
</el-table-column>
<el-table-column
prop="enterDirCode"
label="入口"
width="170"
>
<template slot-scope="scope">
<div v-if="scope.row.enterDirCode">
{{ mapStationDirectionData[scope.row.enterDirCode].name }}
</div>
</template>
</el-table-column>
<el-table-column
prop="outDirCode"
label="出口"
width="170"
>
<template slot-scope="scope">
<div v-if="scope.row.outDirCode">
{{ mapStationDirectionData[scope.row.outDirCode].name }}
</div>
</template>
</el-table-column>
</el-table>
</el-dialog>
</template>
<script>
import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
export default {
name: 'TrainFixedPathPane',
data() {
return {
dialogShow: false,
loading: false,
trainFixedPathList:[
],
title:''
};
},
computed: {
...mapGetters('map', [
'sectionList',
'stationList'
]),
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdCancel() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
},
mapStationDirectionData() {
return this.$store.state.map.mapStationDirectionData;
},
stationMap() {
const stationMap = {};
this.stationList.forEach(station=>{
stationMap[station.code] = {code:station.code, name:station.name};
});
return stationMap;
},
sectionMap() {
const sectionMap = {};
this.sectionList.forEach(section=>{
sectionMap[section.code] = {code:section.code, name:section.name};
});
return sectionMap;
}
// domIdConfirm() {
// return this.dialogShow ? OperationEvent.Command.planTrain.addPlanTrain.domId : '';
// }
},
methods:{
doShow(stationCode) {
const title = '固定径路信息';
commitOperate(menuOperate.CTC.getStationTrainFixedPath, { stationCode: stationCode }, 3).then(({valid, response}) => {
if (valid) {
this.trainFixedPathList = response.data.data;
this.dialogShow = true;
this.title = title + ' 版本:' + response.data.version;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
}
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
}
}
};
</script>

View File

@ -458,6 +458,10 @@ export default {
CTC_REGULAR_TRAIN_LINE_EDIT:{value: 'REGULAR_TRAIN_LINE_EDIT', label: '增加列车固定径路'},
CTC_REGULAR_TRAIN_LINE_BATCH:{value: 'REGULAR_TRAIN_LINE_BATCH', label: '批量增加列车固定径路'},
CTC_REGULAR_TRAIN_LINE_STATION_UPDATE:{value: 'REGULAR_TRAIN_LINE_STATION_UPDATE', label: '固定列车径路从生效区更新'},
CTC_REGULAR_TRAIN_LINE_STATION_UPDATE_LOAD:{value: 'REGULAR_TRAIN_LINE_STATION_UPDATE_LOAD', label: '固定列车经路更新加载到计划'},
CTC_REGULAR_TRAIN_LINE_STATION_UPDATE_LIST:{value: 'REGULAR_TRAIN_LINE_STATION_UPDATE_LIST', label: '固定列车经路更新列表'},
CTC_SET_ROUTE:{value: 'CTC_SET_ROUTE', label: 'CTC办理进路'},
CTC_STATION_SIGN_RUN_PLAN:{value:'CTC_STATION_SIGN_RUN_PLAN', label: '车站签收阶段计划'},

View File

@ -4021,6 +4021,27 @@ export const OperationEvent = {
operation: '1158',
domId: '_Tips-CTC-batchTrainFixedPath-Menu{TOP}'
}
},
// 固定列车径路从生效区更新
updateTrainFixedPath2Station:{
menu: {
operation: '1159',
domId: '_Tips-CTC-updateTrainFixedPath2Station-Menu{TOP}'
}
},
// 固定列车经路更新列表
getStationTrainFixedPath:{
menu: {
operation: '1160',
domId: '_Tips-CTC-getStationTrainFixedPath-Menu{TOP}'
}
},
// 固定列车经路更新加载到计划
loadUpdateStationTrainFixedPath:{
menu: {
operation: '1161',
domId: '_Tips-CTC-loadUpdateStationTrainFixedPath-Menu{TOP}'
}
}
// CTC_ZONE_SAVE_TRIP_NUMBER
// CTC_ZONE_SAVE_STATION