From 1d2cf1c0437fddc3c108648eb5d747a5f14ea42c Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 6 Jul 2022 16:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E9=93=81=E9=A1=B9=E7=9B=AE=20?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E5=8F=B0=E8=A1=8C=E8=BD=A6=E8=AE=A1=E5=88=92?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/components/utils/menuOperate.js | 10 ++++++ .../theme/datie_02/menus/runplanPane.vue | 9 ----- src/scripts/cmdPlugin/CommandEnum.js | 1 + src/scripts/cmdPlugin/OperationHandler.js | 16 +++++++++ src/views/dispatcherLoger/index.vue | 36 ++++++++++++++++--- 5 files changed, 59 insertions(+), 13 deletions(-) diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js index 469de01eb..dd5aa05c4 100644 --- a/src/jmapNew/theme/components/utils/menuOperate.js +++ b/src/jmapNew/theme/components/utils/menuOperate.js @@ -657,6 +657,16 @@ export const menuOperate = { modifyDispatcherLogerRpSection:{ operation: OperationEvent.CTCCommand.modifyDispatcherLogerRpSection.menu.operation, cmdType: CMD.CTC.CTC_ZONE_SAVE_TRACK_SECTION + }, + // 调度台行车计划修改时间 + modifyDispatcherLogerRpPlanTime:{ + operation: OperationEvent.CTCCommand.modifyDispatcherLogerRpSection.menu.operation, + cmdType: CMD.CTC.CTC_ZONE_SAVE_PLAN_TIME + }, + // 调度台行车计划修改出入口 + modifyDispatcherLogerRpDirection:{ + operation: OperationEvent.CTCCommand.modifyDispatcherLogerRpSection.menu.operation, + cmdType: CMD.CTC.CTC_ZONE_SAVE_DIRECTION } }, Rail: { diff --git a/src/jmapNew/theme/datie_02/menus/runplanPane.vue b/src/jmapNew/theme/datie_02/menus/runplanPane.vue index cdaf3bf9a..d18b88909 100644 --- a/src/jmapNew/theme/datie_02/menus/runplanPane.vue +++ b/src/jmapNew/theme/datie_02/menus/runplanPane.vue @@ -127,7 +127,6 @@ placeholder="" size="mini" popper-class="stationSelect" - @focus="focusArriveRunPlan($event,scope.row)" @change="changeArriveRunPlan($event,scope.row,scope.$index)" > @@ -248,6 +250,32 @@ export default { changeDepartRunPlan(event, row, index) { this.modifyDispatcherLogerRpSection(row, row.departSectionCode, 'D'); }, + // modifyDispatcherLogerRpDirection 调度台行车计划修改出入口 + + changeArrivePlanTime(event, row, index) { + this.modifyDispatcherLogerRpPlanTime(row, row.arrivePlanTime, 'R'); + }, + changeDepartPlanTime(event, row, index) { + this.modifyDispatcherLogerRpPlanTime(row, row.departPlanTime, 'D'); + }, + // 调度台行车计划修改时间 + modifyDispatcherLogerRpPlanTime(row, planTime, type) { + const params = {stationCode:row.stationCode, runPlanCode:row.runPlanCode, planTime:planTime, model:type}; + commitOperate(menuOperate.CTC.modifyDispatcherLogerRpPlanTime, params, 3).then(({valid, response})=>{ + if (valid) { + const reslut = response.data; + this.tableData.map(data=>{ + if (data.stationCode == reslut.stationCode && data.runPlanCode == reslut.runPlanCode) { + data.arrivePlanTime = reslut.arrivePlanTime; + data.departPlanTime = reslut.departPlanTime; + } + }); + } + }).catch(() => { + // this.$message.error('发布失败'); + }); + }, + // 修改发车时间 modifyDispatcherLogerRpSection(row, sectionCode, type) { // stationCode 车站编码 // runPlanCode 运行计划编码