From e9fc978c064f92b76779ceff628e80030779bca0 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 12 Jul 2022 15:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E9=93=81=E9=A1=B9=E7=9B=AE=20ctc=20?= =?UTF-8?q?=E8=A1=8C=E8=BD=A6=E6=97=A5=E5=BF=97=20=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=B6=85=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/components/utils/menuOperate.js | 5 ++ .../theme/datie_02/menus/runplanPane.vue | 48 ++++++++++++++++++- src/scripts/cmdPlugin/CommandEnum.js | 1 + src/scripts/cmdPlugin/OperationHandler.js | 7 +++ 4 files changed, 60 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js index d3696a300..85cb4f210 100644 --- a/src/jmapNew/theme/components/utils/menuOperate.js +++ b/src/jmapNew/theme/components/utils/menuOperate.js @@ -594,6 +594,11 @@ export const menuOperate = { operation: OperationEvent.CTCCommand.setDeleteRunplanLabel.menu.operation, cmdType: CMD.CTC.CTC_LOG_SET_DELETE_LABEL }, + // 设置超限 + setTransfinite:{ + operation: OperationEvent.CTCCommand.setTransfinite.menu.operation, + cmdType: CMD.CTC.CTC_LOG_SET_TRANSFINITE + }, // 修改行车计划的邻站信息 modifyAdjacentStation:{ operation: OperationEvent.CTCCommand.modifyAdjacentStation.menu.operation, diff --git a/src/jmapNew/theme/datie_02/menus/runplanPane.vue b/src/jmapNew/theme/datie_02/menus/runplanPane.vue index 11d4db140..0fdb667f6 100644 --- a/src/jmapNew/theme/datie_02/menus/runplanPane.vue +++ b/src/jmapNew/theme/datie_02/menus/runplanPane.vue @@ -435,6 +435,29 @@
33
+ + + +
@@ -601,7 +624,13 @@ export default { // activeArriveRunPlan:{}, currentRailwaySimulationRunplan:{}, // radioSelected:'' - currentRow:null + currentRow:null, + transfiniteList:[ + {label:'不超限', value:'NO'}, + {label:'一级超限', value:'TRANSFINITE_ONE_LEVEL'}, + {label:'二级超限', value:'TRANSFINITE_TWO_LEVEL'}, + {label:'超级超限', value:'TRANSFINITE_SUPER'} + ] }; }, computed: { @@ -776,6 +805,22 @@ export default { this.$refs.stageRunplan.doShow(this.currentRailwaySimulationRunplan[stationCode]); } }, + // 设置超限 + changeTransfinite(event, row, index) { + const params = { + stationCode:row.stationCode, + runPlanCode:row.code, + transfinite:row.transfinite + }; + commitOperate(menuOperate.CTC.setTransfinite, params, 3).then(({valid})=>{ + this.loading = false; + if (valid) { + } + }).catch(() => { + this.loading = false; + }); + }, + // 修改发车股道 changeDepartRunPlan(event, row, index) { const params = { stationCode:row.stationCode, @@ -798,6 +843,7 @@ export default { // } // console.log(event, this.tableData[index].departRunPlan.sectionCode, row.departRunPlan.sectionCode, '------'); }, + // 修改接车股道 changeArriveRunPlan(event, row, index) { const params = { stationCode:row.stationCode, diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index 95f5f3df2..86726b76b 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -415,6 +415,7 @@ export default { CTC_LOG_SET_START_RUN_PLAN:{value: 'CTC_LOG_SET_START_RUN_PLAN', label: '设置始发'}, CTC_LOG_SET_END_RUN_PLAN:{value: 'CTC_LOG_SET_END_RUN_PLAN', label: '设置终到'}, CTC_LOG_SET_DELETE_LABEL:{value: 'CTC_LOG_SET_DELETE_LABEL', label: '设置删除标识'}, + CTC_LOG_SET_TRANSFINITE:{value: 'CTC_LOG_SET_TRANSFINITE', label: '设置超限'}, CTC_ADD_RUN_PLAN_LIST_TO_EDIT_AREA:{value: 'CTC_ADD_RUN_PLAN_LIST_TO_EDIT_AREA', label: '增加列车固定径路'}, CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA:{value: 'CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA', label: '导入列车固定径路'}, diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index ef0506962..ca8e55f61 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -3918,6 +3918,13 @@ export const OperationEvent = { operation: '1147', domId: '_Tips-CTC-setDeleteRunplanLabel-Menu{TOP}' } + }, + // 设置超限 + setTransfinite:{ + menu: { + operation: '1148', + domId: '_Tips-CTC-setTransfinite-Menu{TOP}' + } } // // CTC_ZONE_SAVE_TRIP_NUMBER