From 0e26ab9d6f3d02cce04463c2df7dc1da5b4a1679 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 24 Aug 2020 15:01:47 +0800 Subject: [PATCH 01/22] =?UTF-8?q?=E8=A5=BF=E5=AE=89=E4=BA=8C=E5=88=97?= =?UTF-8?q?=E8=BD=A6=E6=93=8D=E4=BD=9C=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/xian_02/menus/dialog/changeTID.vue | 152 ++++++++++++++++++ src/jmapNew/theme/xian_02/menus/menuTrain.vue | 33 +++- 2 files changed, 183 insertions(+), 2 deletions(-) create mode 100644 src/jmapNew/theme/xian_02/menus/dialog/changeTID.vue diff --git a/src/jmapNew/theme/xian_02/menus/dialog/changeTID.vue b/src/jmapNew/theme/xian_02/menus/dialog/changeTID.vue new file mode 100644 index 000000000..0098a8d0e --- /dev/null +++ b/src/jmapNew/theme/xian_02/menus/dialog/changeTID.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/jmapNew/theme/xian_02/menus/menuTrain.vue b/src/jmapNew/theme/xian_02/menus/menuTrain.vue index 64a975dd5..f69fe115a 100644 --- a/src/jmapNew/theme/xian_02/menus/menuTrain.vue +++ b/src/jmapNew/theme/xian_02/menus/menuTrain.vue @@ -10,6 +10,7 @@ + @@ -26,6 +27,7 @@ import TrainSetHead from './dialog/trainSetHead'; import TrainSetWork from './dialog/trainSetWork'; import trainSetWorkATP from './dialog/trainSetWorkATP'; import TrainDestination from './dialog/trainDestination'; +import ChangeTid from './dialog/changeTID'; import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; @@ -47,6 +49,7 @@ export default { TrainSetWork, trainSetWorkATP, TrainDestination, + ChangeTid, SetFault }, props: { @@ -82,12 +85,12 @@ export default { }, { label: '更改追踪号', - handler: this.undeveloped, + handler: this.updateTid, cmdType: CMD.TrainWindow.CMD_TRAIN_UPDATE_TYPE }, { label: '交换追踪号', - handler: this.undeveloped, + handler: this.switchTid, cmdType: CMD.TrainWindow.CMD_TRAIN_UPDATE_TYPE }, { @@ -546,6 +549,32 @@ export default { } }); }, + updateTid() { + const operate = { + start: true, + code: this.selected.code, + operation: OperationEvent.Train.editTrainId.menu.operation + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + this.$refs.changeTid.doShow(operate, this.selected); + } + }); + }, + switchTid() { + const operate = { + start: true, + code: this.selected.code, + operation: OperationEvent.Train.switchTrainId.menu.operation + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + this.$refs.changeTid.doShow(operate, this.selected); + } + }); + }, updateDestination() { const operate = { start: true, From 15ba67c43aaa339b7de8dac20220d5261615b744 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 24 Aug 2020 18:15:55 +0800 Subject: [PATCH 02/22] =?UTF-8?q?=E8=A5=BF=E5=AE=89=E4=BA=8C=E5=8F=B7?= =?UTF-8?q?=E7=BA=BF=E6=8A=98=E8=BF=94=E7=AD=96=E7=95=A5=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/xian_02/menus/menuStation.vue | 61 +++++++++++++------ 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/src/jmapNew/theme/xian_02/menus/menuStation.vue b/src/jmapNew/theme/xian_02/menus/menuStation.vue index faf9ce574..6694838bb 100644 --- a/src/jmapNew/theme/xian_02/menus/menuStation.vue +++ b/src/jmapNew/theme/xian_02/menus/menuStation.vue @@ -90,23 +90,23 @@ export default { } ] }, - { - label: '折返模式', - children: [ - { - label: '优先折返', - handler: this.setPriorityStrategy - }, - { - label: '直线折返', - handler: this.setLineStrategy - }, - { - label: '侧线折返', - handler: this.setLateralStrategy - } - ] - }, + // { + // label: '折返模式', + // children: [ + // { + // label: '优先折返', + // handler: this.setPriorityStrategy + // }, + // { + // label: '直线折返', + // handler: this.setLineStrategy + // }, + // { + // label: '侧线折返', + // handler: this.setLateralStrategy + // } + // ] + // }, { label: '设备标签', children: [ @@ -184,7 +184,28 @@ export default { }; }, initMenu() { - this.menu = this.menuNormal.Center; + this.menu = []; + this.menu = [...this.menuNormal.Center]; + if (this.selected.reentry) { + const menuAdd = { + label: '折返模式', + children: [ + { + label: '优先折返', + handler: this.setPriorityStrategy + }, + { + label: '直线折返', + handler: this.setLineStrategy + }, + { + label: '侧线折返', + handler: this.setLateralStrategy + } + ] + }; + this.menu.splice(3, 0, menuAdd); + } // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { this.menu = [...this.menuForce]; @@ -288,9 +309,9 @@ export default { return each.label == type; }); if (strategy) { - commitOperate(menuOperate.StationControl.setBackStrategy, {stationCode: this.selected.stationCode, id:strategy.id}, 3).then(({valid, operate})=>{ + commitOperate(menuOperate.StationControl.setBackStrategy, {stationCode: this.selected.code, id:strategy.id}, 3).then(({valid, operate})=>{ }).catch((error) => { - this.$refs.noticeInfo.doShow({}, error.message); + this.$refs.noticeInfo.doShow(error.message); }); } } From 50c185671f42a8203ebd4de58b82a40d0354e703 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Mon, 24 Aug 2020 18:17:17 +0800 Subject: [PATCH 03/22] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A5=BF=E5=AE=89?= =?UTF-8?q?=E4=BA=8C=E5=8F=B7=E7=BA=BF=E5=88=97=E8=BD=A6=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menus/dialog/trainDelDestination.vue | 179 ++++++++++++++++++ .../xian_02/menus/dialog/trainDestination.vue | 9 +- src/jmapNew/theme/xian_02/menus/index.vue | 8 +- src/jmapNew/theme/xian_02/menus/menuTrain.vue | 26 ++- src/scripts/cmdPlugin/OperationHandler.js | 9 +- 5 files changed, 224 insertions(+), 7 deletions(-) create mode 100644 src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue new file mode 100644 index 000000000..307310272 --- /dev/null +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue @@ -0,0 +1,179 @@ + + + + diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue index 761eac780..d478210e1 100644 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue @@ -50,7 +50,7 @@ -
{{ item.name }}
+
{{ item.name }}
@@ -267,6 +267,13 @@ export default { height: 155px; overflow: auto; margin-bottom: 20px; + .content_list{ + cursor: pointer; + &:hover{ + background: #000004; + color: #73877E; + } + } } .option_result_box{ box-shadow: 1px 1px 3px #3a3a3a inset; diff --git a/src/jmapNew/theme/xian_02/menus/index.vue b/src/jmapNew/theme/xian_02/menus/index.vue index f89d3cf68..1ccfc5883 100644 --- a/src/jmapNew/theme/xian_02/menus/index.vue +++ b/src/jmapNew/theme/xian_02/menus/index.vue @@ -458,10 +458,14 @@ export default { background: #d5ecf7; } .xian-02__system .el-select .el-input__suffix { - top: 5px; + display: flex; + justify-self: center; + align-items: center; } .xian-02__system .el-select .is-focus .el-input__suffix { - top: -5px; + display: flex; + justify-self: center; + align-items: center; } .xian-02__system .el-scrollbar__thumb { border-style:solid; diff --git a/src/jmapNew/theme/xian_02/menus/menuTrain.vue b/src/jmapNew/theme/xian_02/menus/menuTrain.vue index 7b608f3b8..5f6dacad8 100644 --- a/src/jmapNew/theme/xian_02/menus/menuTrain.vue +++ b/src/jmapNew/theme/xian_02/menus/menuTrain.vue @@ -10,6 +10,7 @@ + @@ -26,6 +27,7 @@ import TrainSetHead from './dialog/trainSetHead'; import TrainSetWork from './dialog/trainSetWork'; import trainSetWorkATP from './dialog/trainSetWorkATP'; import TrainDestination from './dialog/trainDestination'; +import TrainDelDestination from './dialog/trainDelDestination'; import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; @@ -46,7 +48,8 @@ export default { TrainSetHead, TrainSetWork, trainSetWorkATP, - TrainDestination, + TrainDestination, + TrainDelDestination, SetFault }, props: { @@ -77,7 +80,7 @@ export default { }, { label: '删除ID', - handler: this.undeveloped, + handler: this.deletDestionation, cmdType: CMD.TrainWindow.CMD_TRAIN_UPDATE_TYPE }, { @@ -562,7 +565,24 @@ export default { this.doClose(); } }); - } + }, + deletDestionation() { + const operate = { + start: true, + code: this.selected.code, + operation: OperationEvent.Train.deleteDestinationTrainId.menu.operation, + param: { + trainCode: this.selected.code + } + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) =>{ + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', {break: true}); + this.$refs.trainDelDestination.doShow(operate, this.selected); + this.doClose(); + } + }); + } } }; diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index 11debb539..207b22d6d 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -2181,7 +2181,14 @@ export const OperationEvent = { operation: '70h', domId: '_Tip-Train_routeBlockRun-Menu' } - } + }, + // 删除目的ID + deleteDestinationTrainId: { + menu: { + operation: '70i', + domId: '_Tips-Train-deleteDestinationTrainId-Menu' + } + }, }, // 取消全线临时限速 From 44791d3d546d8c03e536428628f9599d824dfd8b Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 24 Aug 2020 18:25:07 +0800 Subject: [PATCH 04/22] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=89=E5=8F=B7?= =?UTF-8?q?=E7=BA=BF=E8=8F=9C=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/ningbo_03/menus/menuBar.vue | 246 ++------------- .../menus/menuDialog/allocateTime.vue | 190 ++++++++++++ .../menus/menuDialog/arrangeRoute.vue | 54 +--- .../menus/menuDialog/detainTrainContorl.vue | 213 ------------- .../menuDialog/detainTrainContorlUpDown.vue | 209 ------------- .../ningbo_03/menus/menuDialog/helpAbout.vue | 131 -------- .../menus/menuDialog/intervalStopNumber.vue | 164 ++++++++++ .../ningbo_03/menus/menuDialog/manageUser.vue | 290 ------------------ .../menus/menuDialog/standControl.vue | 68 +--- .../menus/menuDialog/standDetain.vue | 175 +++++++++++ .../ningbo_03/menus/menuDialog/trainAdd.vue | 171 ----------- .../menus/menuDialog/trainDelete.vue | 154 ---------- .../menus/menuDialog/trainDistribution.vue | 59 +--- 13 files changed, 577 insertions(+), 1547 deletions(-) create mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/allocateTime.vue delete mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/detainTrainContorl.vue delete mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/detainTrainContorlUpDown.vue delete mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/helpAbout.vue create mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/intervalStopNumber.vue delete mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/manageUser.vue create mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/standDetain.vue delete mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/trainAdd.vue delete mode 100644 src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDelete.vue diff --git a/src/jmapNew/theme/ningbo_03/menus/menuBar.vue b/src/jmapNew/theme/ningbo_03/menus/menuBar.vue index ede2941ca..53177740e 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuBar.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuBar.vue @@ -86,31 +86,18 @@ - - - - - - - - + + + + diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/arrangeRoute.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/arrangeRoute.vue index 83b9ec6ae..ce2ee6602 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/arrangeRoute.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/arrangeRoute.vue @@ -36,7 +36,7 @@ - 确定(O) + 确定(O) 应用(A) @@ -55,8 +55,8 @@ - diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/detainTrainContorlUpDown.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/detainTrainContorlUpDown.vue deleted file mode 100644 index d3f0835a1..000000000 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/detainTrainContorlUpDown.vue +++ /dev/null @@ -1,209 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/helpAbout.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/helpAbout.vue deleted file mode 100644 index 0348a0cd8..000000000 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/helpAbout.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/intervalStopNumber.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/intervalStopNumber.vue new file mode 100644 index 000000000..af1a78823 --- /dev/null +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/intervalStopNumber.vue @@ -0,0 +1,164 @@ + + + + diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/manageUser.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/manageUser.vue deleted file mode 100644 index 6c22ac606..000000000 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/manageUser.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/standControl.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/standControl.vue index ded60c674..d63bc33f2 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/standControl.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/standControl.vue @@ -5,11 +5,7 @@ - + 打开 @@ -25,7 +21,7 @@ - 确定(O) + 确定(O) 应用(A) @@ -44,7 +40,7 @@ + diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainAdd.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainAdd.vue deleted file mode 100644 index ae759a395..000000000 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainAdd.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDelete.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDelete.vue deleted file mode 100644 index 5eaa74ee4..000000000 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDelete.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue index 3eda8e4b8..bc0846893 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue @@ -28,7 +28,7 @@ - 确定(O) + 确定(O) 应用(A) @@ -47,8 +47,8 @@ - diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainDelete.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainDelete.vue deleted file mode 100644 index 5f5e6eaae..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainDelete.vue +++ /dev/null @@ -1,167 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainMove.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainMove.vue deleted file mode 100644 index c01c67cb6..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainMove.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainSetHead.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainSetHead.vue deleted file mode 100644 index 6b627fc2f..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainSetHead.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainSetPlan.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainSetPlan.vue deleted file mode 100644 index 352cc5f35..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainSetPlan.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainSetWork.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainSetWork.vue deleted file mode 100644 index 8aba94cd9..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainSetWork.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainSetWorkATP.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainSetWorkATP.vue deleted file mode 100644 index d3b0b8b9a..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainSetWorkATP.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_02/menus/menuTrain.vue b/src/jmapNew/theme/xian_02/menus/menuTrain.vue index 5f6dacad8..1959b98a3 100644 --- a/src/jmapNew/theme/xian_02/menus/menuTrain.vue +++ b/src/jmapNew/theme/xian_02/menus/menuTrain.vue @@ -2,13 +2,6 @@
- - - - - - - @@ -19,20 +12,12 @@ import PopMenu from '@/components/PopMenu/index'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; -import TrainDelete from './dialog/trainDelete'; -import TrainDefine from './dialog/trainDefine'; -import TrainMove from './dialog/trainMove'; -import TrainSetPlan from './dialog/trainSetPlan'; -import TrainSetHead from './dialog/trainSetHead'; -import TrainSetWork from './dialog/trainSetWork'; -import trainSetWorkATP from './dialog/trainSetWorkATP'; import TrainDestination from './dialog/trainDestination'; import TrainDelDestination from './dialog/trainDelDestination'; import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; -// import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { menuOperate, commitOperate, commitTrainSend } from '@/jmapNew/theme/components/utils/menuOperate'; @@ -41,13 +26,6 @@ export default { components: { PopMenu, NoticeInfo, - TrainDelete, - TrainDefine, - TrainMove, - TrainSetPlan, - TrainSetHead, - TrainSetWork, - trainSetWorkATP, TrainDestination, TrainDelDestination, SetFault @@ -412,143 +390,6 @@ export default { } }); }, - // 设置车体号 - addTrainId() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.addTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainDefine.doShow(operate, this.selected); - } - }); - }, - // 删除车组号 - delTrainId() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.delTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainDelete.doShow(operate, this.selected); - } - }); - }, - // 移动车组号 - moveTrainId() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.moveTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainMove.doShow(operate, this.selected); - } - }); - }, - // 设置计划车 - setPlanTrain() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.editTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainSetPlan.doShow(operate, this.selected); - } - }); - }, - // 设置头码车 - setHeadTrain() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.editTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainSetHead.doShow(operate, this.selected); - } - }); - }, - // 设置人工车 - setWorkTrain() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.editTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainSetWork.doShow(operate, this.selected); - } - }); - }, - // 标记ATP切除 - setTrainATPdel() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.editTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainSetWorkATP.doShow(operate, this.selected); - } - }); - }, - // 标记ATP恢复 - setTrainATPRec() { - const operate = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.editTrainId.menu.operation, - param: { - sectionCode: this.$store.state.map.trainWindowSectionCode - } - }; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.trainSetWorkATP.doShow(operate, this.selected); - } - }); - }, updateDestination() { const operate = { start: true, From 65a10b26af08aa675e02a0ea2be964869e5b27ba Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Aug 2020 13:15:32 +0800 Subject: [PATCH 08/22] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=20=E5=AE=9E=E8=AE=AD=E6=93=8D=E4=BD=9C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=20=E5=89=A7=E6=9C=AC=E5=BD=95=E5=88=B6=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=81=8A=E5=A4=A9=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/haerbin_01/menus/menuButton.vue | 44 +++--- .../theme/haerbin_01/operationConfig.js | 128 +++++++++++++++++- src/scripts/cmdPlugin/OperationHandler.js | 53 +++++++- src/views/newMap/displayNew/menuLesson.vue | 19 ++- src/views/newMap/displayNew/scriptChat.vue | 3 +- 5 files changed, 215 insertions(+), 32 deletions(-) diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index 47a401201..afee2debb 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -197,21 +197,25 @@ export default { }, clickCommand(row) { this.clearAllMenuShow(); - const setList = ['ATP进路', '联锁进路', '引导进路']; - const cancleList = ['取消ATP', '取消联锁', '取消引导']; + const commandList = ['ATP进路', '取消ATP', '联锁进路', '取消联锁', '引导进路', '取消引导']; const routeList = [this.atpRoute, this.groundRoute, this.guideRoute]; - const setIndex = setList.indexOf(row.name); - const cancleIndex = cancleList.indexOf(row.name); - let currentIndex = -1; + const commandIndex = commandList.indexOf(row.name); + const currentIndex = Math.floor(commandIndex / 2); const step = {}; - if (setIndex >= 0) { currentIndex = setIndex; } - if (cancleIndex >= 0) { currentIndex = cancleIndex; } if (currentIndex >= 0) { this.route = routeList[currentIndex]; + this.tempData = []; this.tempData.push(this.route); - step.param = { - routeCode: this.route.code - }; + console.log(this.route); + if (currentIndex == 2) { + step.param = { + signalCode: this.route.startSignalCode + }; + } else { + step.param = { + routeCode: this.route.code + }; + } } if (this.tempData.length) { row.show = true; @@ -517,17 +521,17 @@ export default { { name: '关单信号', cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL, operate: OperationEvent.Signal.signalClose.menuButton, show: false } ]; this.stationParamList = this.$store.state.training.prdType === '01' ? [ - { name: '关站信号', cmdType: CMD.Station.CMD_STATION_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.closeAllSignal.menu, show: false } + { name: '关站信号', cmdType: CMD.Station.CMD_STATION_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.closeAllSignal.menuButton, show: false } // { name: '接收控制', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menu, show: false, disabledName: 'controlMode', mode: 'Center' }, // { name: '交出控制', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menu, show: false, disabledName: 'controlMode', mode: 'None' } ] : [ - { name: '接收控制', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menu, show: false, disabledName: 'controlMode', mode: 'Center' }, - { name: '交出控制', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menu, show: false, disabledName: 'controlMode', mode: 'None' }, - { name: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menu, show: false }, - { name: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menu, show: false }, - { name: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menu, show: false }, - { name: '自排全开', cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, operate: OperationEvent.Station.atsAutoControlALL.menu, show: false }, - { name: '自排全关', cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING, operate: OperationEvent.Station.humanControlALL.menu, show: false } + { name: '接收控制', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menuButton, show: false, disabledName: 'controlMode', mode: 'Center' }, + { name: '交出控制', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menuButton, show: false, disabledName: 'controlMode', mode: 'None' }, + { name: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menuButton, show: false }, + { name: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menuButton, show: false }, + { name: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menuButton, show: false }, + { name: '自排全开', cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, operate: OperationEvent.Station.atsAutoControlALL.menuButton, show: false }, + { name: '自排全关', cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING, operate: OperationEvent.Station.humanControlALL.menuButton, show: false } // { name: '关站信号', cmdType: CMD.Station.CMD_STATION_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.closeAllSignal.menu, show: false } ]; this.standParamList = this.$store.state.training.prdType === '01' ? [] : [ @@ -544,8 +548,8 @@ export default { this.routeParamList.push({ name: '取消ATP', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menuButton, show: false }); } if (this.ground) { - this.routeParamList.push({ name: '联锁进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menuButton, show: false }); - this.routeParamList.push({ name: '取消联锁', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menuButton, show: false }); + this.routeParamList.push({ name: '联锁进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.interlockRoute.menuButton, show: false }); + this.routeParamList.push({ name: '取消联锁', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelinterlock.menuButton, show: false }); } if (this.guide) { this.routeParamList.push({ name: '引导进路', cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE, operate: OperationEvent.Signal.guide.menuButton, show: false, securityCommand: true }); diff --git a/src/jmapNew/theme/haerbin_01/operationConfig.js b/src/jmapNew/theme/haerbin_01/operationConfig.js index 2bcf6f5c5..a0bb4f6fe 100644 --- a/src/jmapNew/theme/haerbin_01/operationConfig.js +++ b/src/jmapNew/theme/haerbin_01/operationConfig.js @@ -682,7 +682,7 @@ export default { stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'START_SIGNAL' }, { deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'END_SIGNAL' }, - { deviceType: '04', orderNum: 3, operateCode: '3013', tip: '鼠标左键点击【联锁进路】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '3191', tip: '鼠标左键点击【联锁进路】按钮' }, { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } ] }, @@ -698,7 +698,7 @@ export default { stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'START_SIGNAL' }, { deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'END_SIGNAL' }, - { deviceType: '04', orderNum: 3, operateCode: '3032', tip: '鼠标左键点击【取消联锁】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '3201', tip: '鼠标左键点击【取消联锁】按钮' }, { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } ] }, @@ -714,7 +714,7 @@ export default { stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'START_SIGNAL' }, { deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'END_SIGNAL' }, - { deviceType: '04', orderNum: 3, operateCode: '3013', tip: '鼠标左键点击【联锁进路】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '3191', tip: '鼠标左键点击【联锁进路】按钮' }, { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } ] }, @@ -730,7 +730,7 @@ export default { stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'START_SIGNAL' }, { deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'END_SIGNAL' }, - { deviceType: '04', orderNum: 3, operateCode: '3032', tip: '鼠标左键点击【取消联锁】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '3201', tip: '鼠标左键点击【取消联锁】按钮' }, { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } ] }, @@ -917,6 +917,126 @@ export default { { deviceType: '04', orderNum: 2, operateCode: '5035', tip: '鼠标左键点击【取消越站】按钮' }, { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'Station_Close_AllSignal', + skinCode: '07', + trainingName: '关站信号({10})', + trainingRemark: '关站信号', + trainingType: 'Station', + productTypes: ['01'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '6114', tip: '鼠标左键点击【关站信号】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'Station_Set_CI_Auto_Trigger', + skinCode: '07', + trainingName: '追踪全开({10})', + trainingRemark: '追踪全开', + trainingType: 'Station', + productTypes: ['02'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '6011', tip: '鼠标左键点击【追踪全开】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'Station_Cancel_CI_Auto_Trigger', + skinCode: '07', + trainingName: '追踪全关({10})', + trainingRemark: '追踪全关', + trainingType: 'Station', + productTypes: ['02'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '6021', tip: '鼠标左键点击【追踪全关】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'Station_Open_Auto_Setting', + skinCode: '07', + trainingName: '自排全开({10})', + trainingRemark: '自排全开', + trainingType: 'Station', + productTypes: ['02'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '6061', tip: '鼠标左键点击【自排全开】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'Station_Close_Auto_Setting', + skinCode: '07', + trainingName: '自排全关({10})', + trainingRemark: '自排全关', + trainingType: 'Station', + productTypes: ['02'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '6051', tip: '鼠标左键点击【自排全关】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'Station_CIArea_Close_AllSignal', + skinCode: '07', + trainingName: '关区信号({10})', + trainingRemark: '关区信号', + trainingType: 'Station', + productTypes: ['02'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '6124', tip: '鼠标左键点击【关区信号】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'CM_Receive_Control', + skinCode: '07', + trainingName: '接收控制({10})', + trainingRemark: '接收控制', + trainingType: 'ControlConvertMenu', + productTypes: ['02'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '2024', tip: '鼠标左键点击【接收控制】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] + }, + { + maxDuration: 15, + minDuration: 8, + operateType: 'CM_Surrender_Control', + skinCode: '07', + trainingName: '交出控制({10})', + trainingRemark: '交出控制', + trainingType: 'ControlConvertMenu', + productTypes: ['02'], + stepVOList: [ + { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该车站' }, + { deviceType: '04', orderNum: 2, operateCode: '2044', tip: '鼠标左键点击【交出控制】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } + ] } ] }; diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index 207b22d6d..d6a6883e3 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -641,6 +641,10 @@ export const OperationEvent = { confirm: { operation: '2023', domId: '_Tips-Control-Request-Confirm' + }, + menuButton: { + operation: '2024', + domId: '_Tips-Control-Request-Menu{BOTTOM}' } }, // 强行站控 @@ -687,6 +691,10 @@ export const OperationEvent = { confirm: { operation: '2043', domId: '_Tips-Control-Central-Confirm' + }, + menuButton: { + operation: '2044', + domId: '_Tips-Control-Central-Menu{BOTTOM}' } }, // 控制模式应答同意 @@ -1057,6 +1065,20 @@ export const OperationEvent = { operation: '3181', domId: '_Tips-Signal-cancelGuide-Confirm' } + }, + // 联锁进路 + interlockRoute:{ + menuButton: { + operation: '3191', + domId: '_Tips-Signal-interlockRoute-Menu{BOTTOM}' + } + }, + // 取消联锁 + cancelinterlock:{ + menuButton: { + operation: '3201', + domId: '_Tips-Signal-cancelinterlock-Menu{BOTTOM}' + } } }, @@ -1739,6 +1761,10 @@ export const OperationEvent = { menu: { operation: '601', domId: '_Tips-Station-SetAutoTrigger-Menu' + }, + menuButton: { + operation: '6011', + domId: '_Tips-Station-SetAutoTrigger-Menu{BOTTOM}' } }, // 全站取消联锁自动触发 @@ -1746,6 +1772,10 @@ export const OperationEvent = { menu: { operation: '602', domId: '_Tips-Station-CancelAutoTrigger-Menu' + }, + menuButton: { + operation: '6021', + domId: '_Tips-Station-CancelAutoTrigger-Menu{BOTTOM}' } }, // 上电解锁 @@ -1807,6 +1837,10 @@ export const OperationEvent = { menu: { operation: '605', domId: '_Tips-Station-HumanControlALL-Menu' + }, + menuButton: { + operation: '6051', + domId: '_Tips-Station-HumanControlALL-Menu{BOTTOM}' } }, // 所有进路自排开 @@ -1814,6 +1848,10 @@ export const OperationEvent = { menu: { operation: '606', domId: '_Tips-Station-AtsAutoControlALL-Menu' + }, + menuButton: { + operation: '6061', + domId: '_Tips-Station-AtsAutoControlALL-Menu{BOTTOM}' } }, split: { @@ -1866,6 +1904,7 @@ export const OperationEvent = { domId: '_Tips-Station-setBackStrategy-confirm' } }, + // 关站信号 closeAllSignal: { menu: { operation: '611', @@ -1882,6 +1921,10 @@ export const OperationEvent = { confirm: { operation: '6113', domId: '_Tips-Station-closeAllSignal-confirm' + }, + menuButton: { + operation: '6114', + domId: '_Tips-Station-closeAllSignal-menu{BOTTOM}' } }, ciAreaCloseAllSignal: { @@ -1900,6 +1943,10 @@ export const OperationEvent = { confirm: { operation: '6123', domId: '_Tips-Station-ciAreaCloseAllSignal-Confirm' + }, + menuButton: { + operation: '6124', + domId: '_Tips-Station-ciAreaCloseAllSignal-menu{BOTTOM}' } } }, @@ -2181,14 +2228,14 @@ export const OperationEvent = { operation: '70h', domId: '_Tip-Train_routeBlockRun-Menu' } - }, - // 删除目的ID + }, + // 删除目的ID deleteDestinationTrainId: { menu: { operation: '70i', domId: '_Tips-Train-deleteDestinationTrainId-Menu' } - }, + } }, // 取消全线临时限速 diff --git a/src/views/newMap/displayNew/menuLesson.vue b/src/views/newMap/displayNew/menuLesson.vue index b7d22f248..7d97493ac 100644 --- a/src/views/newMap/displayNew/menuLesson.vue +++ b/src/views/newMap/displayNew/menuLesson.vue @@ -213,10 +213,21 @@ export default { zIndex: 9999 }).then(() => { this.backDisable = false; - this.$store.dispatch('training/end', null); - this.$store.dispatch('training/setStopCountTime'); - this.$store.dispatch('training/setScore', 0); - this.$store.dispatch('training/emitTipFresh'); + const mode = { + mode: this.demoMode, + id: this.trainingObj.id, + lessonId: this.$route.query.lessonId, + usedTime: this.usedTime + }; + endTrainingNew(mode, this.group).then(response => { + // const data = response.data; + this.$store.dispatch('training/end', null); + this.$store.dispatch('training/setStopCountTime'); + this.$store.dispatch('training/setScore', 0); + this.$store.dispatch('training/emitTipFresh'); + }).catch(() => { + this.$messageBox(this.$t('display.lesson.endTrainingError')); + }); }).catch(() => { this.isDisable = true; this.backDisable = false; diff --git a/src/views/newMap/displayNew/scriptChat.vue b/src/views/newMap/displayNew/scriptChat.vue index b8029e02e..6f1025646 100644 --- a/src/views/newMap/displayNew/scriptChat.vue +++ b/src/views/newMap/displayNew/scriptChat.vue @@ -216,7 +216,8 @@ export default { memberList.push(member); } else { const member = this.memberData.find(member=>{ return member.id == id; }); - member.connect = false; + // member.connect = false; + member.connect = true; member && memberList.push(member); } }); From 17d3be79cfd5aae336e697bd2e961c37b6b00fb1 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Aug 2020 13:44:18 +0800 Subject: [PATCH 09/22] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E7=BC=96=E5=88=B6?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/ConstConfig.js | 3 ++- src/views/newMap/displayNew/scriptChat.vue | 2 +- .../jointTrainingNew/chatView/chatBox.vue | 17 +++++++++-------- .../chatView/chatMemberList.vue | 2 +- src/views/scriptManage/allScriptRole.vue | 2 ++ 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js index bcddccb54..968bf3b5f 100644 --- a/src/scripts/ConstConfig.js +++ b/src/scripts/ConstConfig.js @@ -204,7 +204,8 @@ export default { Station: {enlabel: 'Station training', label:'车站实训'}, ControlConvertMenu: {enlabel: 'Control mode training', label:'控制模式实训'}, LimitControl: {enlabel: 'Control mode limit', label:'全线限速实训'}, - TrainWindow: {enlabel: 'TrainWindow training', label:'车次窗实训'} + TrainWindow: {enlabel: 'TrainWindow training', label:'车次窗实训'}, + Driver:{enlabel: 'Driver training', label:'司机实训'} }, interfaceErrorConfig: { '500000': { type: '权限错误:', message: '您尚未有该操作权限!'}, diff --git a/src/views/newMap/displayNew/scriptChat.vue b/src/views/newMap/displayNew/scriptChat.vue index 6f1025646..3df043a23 100644 --- a/src/views/newMap/displayNew/scriptChat.vue +++ b/src/views/newMap/displayNew/scriptChat.vue @@ -95,7 +95,7 @@ export default { const device = this.$store.getters['map/getDeviceByCode'](member.deviceCode); if (device) { if (device._type == 'Train') { - member.deviceName = device.deviceCode; + member.deviceName = device.groupNumber; member.label = member.type + device.groupNumber + name + userName; lastMemberList.push(member); if (this.activeTrainList.length > 0) { diff --git a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue index f95eb1366..420ec5fad 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue @@ -224,7 +224,8 @@ export default { if (val.creatorId == id) { memberList.push({memberId:id, connect:true}); } else { - memberList.push({memberId:id, connect:false}); + // memberList.push({memberId:id, connect:false}); + memberList.push({memberId:id, connect:true}); } }); this.conversitionMemberList = memberList; @@ -580,13 +581,13 @@ export default { } this.cancelCommonConversation(); }, - connectMember(val) { - this.conversitionMemberList.forEach(member => { - if (member.memberId == val.memberId) { - member.connect = true; - } - }); - }, + // connectMember(val) { + // this.conversitionMemberList.forEach(member => { + // if (member.memberId == val.memberId) { + // member.connect = true; + // } + // }); + // }, sortByMessageTime(message1, message2) { const time1 = new Date(message1.time).valueOf(); const time2 = new Date(message2.time).valueOf(); diff --git a/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue b/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue index 5b8bafa63..7d8bccef5 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue @@ -42,7 +42,7 @@ export default { }, watch:{ '$store.state.socket.acceptConversionInvite':function(val) { - this.$emit('connectMember', val); + // this.$emit('connectMember', val); } }, mounted() { diff --git a/src/views/scriptManage/allScriptRole.vue b/src/views/scriptManage/allScriptRole.vue index 1134ed760..186405cdc 100644 --- a/src/views/scriptManage/allScriptRole.vue +++ b/src/views/scriptManage/allScriptRole.vue @@ -171,8 +171,10 @@ export default { this.$store.dispatch('training/setRoles', 'DISPATCHER'); } else if (role.type == '司机') { prdType = '04'; + this.$store.dispatch('training/setRoles', 'DRIVER'); } else if (role.type == '通号') { prdType = ''; + this.$store.dispatch('training/setRoles', 'MAINTAINER'); const routeData = this.$router.resolve({ path:'/jlmap3d/maintainer', query:{ From 13160dfc91216aa2f87332ca1495a234ef4dd0a0 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Tue, 25 Aug 2020 13:51:27 +0800 Subject: [PATCH 10/22] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A5=BF=E5=AE=89?= =?UTF-8?q?=E4=BA=8C=E5=8F=B7=E7=BA=BF=E5=88=97=E8=BD=A6=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xian_02/menus/dialog/trainAlertor.vue | 201 ++++++++++++++++ .../menus/dialog/trainDelDestination.vue | 19 +- .../xian_02/menus/dialog/trainDestination.vue | 175 +++++++------- .../xian_02/menus/dialog/trainRunLevel.vue | 180 ++++++++++++++ .../xian_02/menus/dialog/trainUpdatePlan.vue | 224 ++++++++++++++++++ src/jmapNew/theme/xian_02/menus/index.vue | 78 ++++++ src/jmapNew/theme/xian_02/menus/menuTrain.vue | 88 ++++++- 7 files changed, 858 insertions(+), 107 deletions(-) create mode 100644 src/jmapNew/theme/xian_02/menus/dialog/trainAlertor.vue create mode 100644 src/jmapNew/theme/xian_02/menus/dialog/trainRunLevel.vue create mode 100644 src/jmapNew/theme/xian_02/menus/dialog/trainUpdatePlan.vue diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainAlertor.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainAlertor.vue new file mode 100644 index 000000000..a590a8a73 --- /dev/null +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainAlertor.vue @@ -0,0 +1,201 @@ + + + + diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue index 307310272..ccaaf1fc7 100644 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainDelDestination.vue @@ -22,8 +22,7 @@ - - + 确定 @@ -48,11 +47,11 @@ export default { data() { return { trainNoList: [], - selected: null, + selected: null, addModel: { stationName: '', trainWindowCode: '', - groupNumber: '' + groupNumber: '' }, dialogShow: false, loading: false @@ -105,8 +104,8 @@ export default { commit() { const operate = { send: true, - operation: OperationEvent.Train.deleteDestinationTrainId.menu.operation, - cmdType: '', + operation: OperationEvent.Train.deleteDestinationTrainId.menu.operation, + cmdType: '', val: this.addModel.groupNumber }; @@ -155,7 +154,9 @@ export default { background-color: #F0F0F0; } .option_box{ - box-shadow: 1px 1px 3px #3a3a3a inset; + border-color: #3e6d67 #9ABFB2 #9ABFB2 #3e6d67; + border-width: 2px; + border-style: solid; padding: 4px; color: #191919; height: 155px; @@ -170,7 +171,9 @@ export default { } } .option_result_box{ - box-shadow: 1px 1px 3px #3a3a3a inset; + border-color: #3e6d67 #9ABFB2 #9ABFB2 #3e6d67; + border-width: 2px; + border-style: solid; padding: 4px; color: #191919; height: 90px; diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue index d478210e1..2dfcdf3fc 100644 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue @@ -22,38 +22,37 @@ - - - 实际的DID - - - - - - 被请求的DID - - - - - + + + 实际的DID + + + + + + 被请求的DID + + + + + DID浏览选项 - - - - + + + - -
{{ item.name }}
-
- - + +
{{ item.name }}
+
+ 确定 @@ -79,66 +78,66 @@ export default { data() { return { trainNoList: [], - selected: null, - optionObject: { - normal: [ - { name: '0001 北客站一韦曲南站 往返运营', id: 1 }, - { name: '0002 北客站一韦曲南站 北客站站前折返 往返运营', id: 2 }, - { name: '0003 北客站一韦曲南站 韦曲南站站前折返 往返运营', id: 3 }, - { name: '0004 北客站一韦曲南站 北客站和韦曲南站均站前折返 往返运营', id: 4 }, - { name: '0005 北客站一会展中心 往返运营', id: 5 }, - { name: '0006 北客站一会展中心 北客站站前折返 往返运营', id: 6 }, - { name: '0007 北客站一南稍门站 往返运营', id: 6 }, - { name: '0008 北客站一南稍门站 北客站站前折返 往返运营', id: 6 }, - { name: '0009 韦曲南一市图书馆 往返运营', id: 6 }, - { name: '0010 韦曲南一市图书馆 韦曲南站前折返 往返运营', id: 6 }, - { name: '0011 市图书馆站一会展中心站 往返运营', id: 1 }, - { name: '0030 运行至韦曲南站 末班运营', id: 6 }, - { name: '0031 下行方向运行至韦曲南站转上行方向 末班运营', id: 2 }, - { name: '0032 运行至北客站 末班运营', id: 1 }, - { name: '0033 下行方向运行至北客站站转上行方向 末班运营', id: 2 }, - { name: '0034 北客站一凤城五路站 末班运营', id: 4 }, - { name: '0035 韦曲南一市图书馆 末班运营', id: 5 }, - { name: '0036 北客站一南稍门站 末班运营', id: 6 }, - { name: '0037 韦曲南一体育场站 末班运营', id: 6 }, - { name: '0038 北客站一会展中心站 末班运营', id: 6 }, - { name: '0039 韦曲南一三爻站 末班运营', id: 6 } - ], - improper: [ - { name: '0050 北客站下行折1收车 非运营', id: 6 }, - { name: '0051 北客站下行折2收车 非运营', id: 1 }, - { name: '0052 北客站上行折2收车 非运营', id: 2 }, - { name: '0053 北客站上行折1收车 非运营', id: 3 }, - { name: '0054 韦曲南上行折2收车 非运营', id: 4 }, - { name: '0055 韦曲南上行折1收车 非运营', id: 5 }, - { name: '0056 韦曲南下行折1收车 非运营', id: 6 }, - { name: '0057 韦曲南下行折2收车 非运营', id: 6 }, - { name: '0058 凤城五路一市图书馆站 非运营', id: 6 }, - { name: '0059 运行至市图书馆站存车线 非运营', id: 6 }, - { name: '0060 运行至南稍门站存车线 非运营', id: 6 }, - { name: '0061 体育场一南稍门站 非运营', id: 1 }, - { name: '0062 运行至会展中心站存车线 非运营', id: 2 }, - { name: '0063 三爻一会展中心站 非运营', id: 3 }, - { name: '0064 运行至市图书馆存车线 非运营', id: 4 }, - { name: '0065 运行至南稍门站存车线 非运营', id: 5 }, - { name: '0070 运行至韦曲南站 非运营', id: 6 }, - { name: '0071 运行至北客站 非运营', id: 1 }, - { name: '0072 运行至会展中心站 非运营', id: 2 }, - { name: '0073 运行至橘河停车场入段线 非运营', id: 3 }, - { name: '0074 运行至橘河停车场出段线 非运营', id: 4 }, - { name: '0075 运行至渭河停车场入段线 非运营', id: 5 }, - { name: '0076 运行至渭河停车场出段线 非运营', id: 6 } - ] - }, - options: [ - { label: '日常运营', value: 'normal' }, - { label: '非运营', value: 'improper' } - ], + selected: null, + optionObject: { + normal: [ + { name: '0001 北客站一韦曲南站 往返运营', id: 1 }, + { name: '0002 北客站一韦曲南站 北客站站前折返 往返运营', id: 2 }, + { name: '0003 北客站一韦曲南站 韦曲南站站前折返 往返运营', id: 3 }, + { name: '0004 北客站一韦曲南站 北客站和韦曲南站均站前折返 往返运营', id: 4 }, + { name: '0005 北客站一会展中心 往返运营', id: 5 }, + { name: '0006 北客站一会展中心 北客站站前折返 往返运营', id: 6 }, + { name: '0007 北客站一南稍门站 往返运营', id: 7 }, + { name: '0008 北客站一南稍门站 北客站站前折返 往返运营', id: 8 }, + { name: '0009 韦曲南一市图书馆 往返运营', id: 9 }, + { name: '0010 韦曲南一市图书馆 韦曲南站前折返 往返运营', id: 10 }, + { name: '0011 市图书馆站一会展中心站 往返运营', id: 11 }, + { name: '0030 运行至韦曲南站 末班运营', id: 30 }, + { name: '0031 下行方向运行至韦曲南站转上行方向 末班运营', id: 31 }, + { name: '0032 运行至北客站 末班运营', id: 32 }, + { name: '0033 下行方向运行至北客站站转上行方向 末班运营', id: 33 }, + { name: '0034 北客站一凤城五路站 末班运营', id: 34 }, + { name: '0035 韦曲南一市图书馆 末班运营', id: 35 }, + { name: '0036 北客站一南稍门站 末班运营', id: 36 }, + { name: '0037 韦曲南一体育场站 末班运营', id: 37 }, + { name: '0038 北客站一会展中心站 末班运营', id: 38 }, + { name: '0039 韦曲南一三爻站 末班运营', id: 39 } + ], + improper: [ + { name: '0050 北客站下行折1收车 非运营', id: 50 }, + { name: '0051 北客站下行折2收车 非运营', id: 51 }, + { name: '0052 北客站上行折2收车 非运营', id: 52 }, + { name: '0053 北客站上行折1收车 非运营', id: 53 }, + { name: '0054 韦曲南上行折2收车 非运营', id: 54 }, + { name: '0055 韦曲南上行折1收车 非运营', id: 55 }, + { name: '0056 韦曲南下行折1收车 非运营', id: 56 }, + { name: '0057 韦曲南下行折2收车 非运营', id: 57 }, + { name: '0058 凤城五路一市图书馆站 非运营', id: 58 }, + { name: '0059 运行至市图书馆站存车线 非运营', id: 59 }, + { name: '0060 运行至南稍门站存车线 非运营', id: 60 }, + { name: '0061 体育场一南稍门站 非运营', id: 61 }, + { name: '0062 运行至会展中心站存车线 非运营', id: 62 }, + { name: '0063 三爻一会展中心站 非运营', id: 63 }, + { name: '0064 运行至市图书馆存车线 非运营', id: 64 }, + { name: '0065 运行至南稍门站存车线 非运营', id: 65 }, + { name: '0070 运行至韦曲南站 非运营', id: 70 }, + { name: '0071 运行至北客站 非运营', id: 71 }, + { name: '0072 运行至会展中心站 非运营', id: 72 }, + { name: '0073 运行至橘河停车场入段线 非运营', id: 73 }, + { name: '0074 运行至橘河停车场出段线 非运营', id: 74 }, + { name: '0075 运行至渭河停车场入段线 非运营', id: 75 }, + { name: '0076 运行至渭河停车场出段线 非运营', id: 76 } + ] + }, + options: [ + { label: '日常运营', value: 'normal' }, + { label: '非运营', value: 'improper' } + ], addModel: { stationName: '', trainWindowCode: '', - groupNumber: '', - operation: 'normal' + groupNumber: '', + operation: 'normal' }, dialogShow: false, loading: false @@ -261,7 +260,9 @@ export default { background-color: #F0F0F0; } .option_box{ - box-shadow: 1px 1px 3px #3a3a3a inset; + border-color: #3e6d67 #9ABFB2 #9ABFB2 #3e6d67; + border-width: 2px; + border-style: solid; padding: 4px; color: #191919; height: 155px; @@ -276,7 +277,9 @@ export default { } } .option_result_box{ - box-shadow: 1px 1px 3px #3a3a3a inset; + border-color: #3e6d67 #9ABFB2 #9ABFB2 #3e6d67; + border-width: 2px; + border-style: solid; padding: 4px; color: #191919; height: 90px; diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainRunLevel.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainRunLevel.vue new file mode 100644 index 000000000..f60e9e298 --- /dev/null +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainRunLevel.vue @@ -0,0 +1,180 @@ + + + + diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainUpdatePlan.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainUpdatePlan.vue new file mode 100644 index 000000000..6ed240653 --- /dev/null +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainUpdatePlan.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/jmapNew/theme/xian_02/menus/index.vue b/src/jmapNew/theme/xian_02/menus/index.vue index 1ccfc5883..1f99f5cce 100644 --- a/src/jmapNew/theme/xian_02/menus/index.vue +++ b/src/jmapNew/theme/xian_02/menus/index.vue @@ -473,4 +473,82 @@ export default { border-color: #335658 #99C1C3 #99C1C3 #335658; background: #518E86; } + .xian-02__system.train-updatePlan .el-dialog__body, + .xian-02__system.train-alertor .el-dialog__body, + .xian-02__system.train-runLevel .el-dialog__body { + color: #000!important; + } + .xian-02__system.train-runLevel .train-run-level-radio_box .el-radio__inner{ + border-radius: 0; + transform: rotate(45deg); + width: 12px; + border: none!important; + height: 12px; + background: #508F86; + border-color: #9ABFB2 #284743 #284743 #9ABFB2 !important; + border-width: 2px!important; + border-style: solid!important; + } + .xian-02__system.train-runLevel .train-run-level-radio_box .is-checked .el-radio__inner{ + background: #DEF003!important; + border-color: #284743 #9ABFB2 #9ABFB2 #284743 !important; + border-width: 2px!important; + border-style: solid!important; + } + .xian-02__system.train-runLevel .train-run-level-radio_box .is-checked .el-radio__inner::after{ + width: 0px!important; + height: 0px!important; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel { + width: 45%; + float: left; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer{ + overflow: hidden; + height: 190px; + padding: 10px; + padding-top: 0; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer__buttons { + width: 10%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + float: left; + padding: 0; + height: 100%; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer__buttons .el-button { + margin: 0; + margin-bottom: 10px; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel .el-transfer-panel__header { + height: 0; + overflow: hidden; + border: 0; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel__item .el-checkbox__input { + display: none; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel .el-transfer-panel__list, + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel .el-transfer-panel__body{ + height: 165px; + overflow: auto; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel__item.is-checked { + background: gray; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel__list { + overflow: auto; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel__item{ + width: 100%; + margin: 0; + padding-left: 3px; + height: 22px; + } + .xian-02__system.train-updatePlan .el-dialog .el-transfer-panel__item .el-checkbox__label { + padding: 0; + } diff --git a/src/jmapNew/theme/xian_02/menus/menuTrain.vue b/src/jmapNew/theme/xian_02/menus/menuTrain.vue index 2b8a9f3e0..249842122 100644 --- a/src/jmapNew/theme/xian_02/menus/menuTrain.vue +++ b/src/jmapNew/theme/xian_02/menus/menuTrain.vue @@ -3,7 +3,10 @@ - + + + +
@@ -16,6 +19,9 @@ import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; import TrainDestination from './dialog/trainDestination'; import ChangeTid from './dialog/changeTID'; import TrainDelDestination from './dialog/trainDelDestination'; +import TrainRunLevel from './dialog/trainRunLevel'; +import TrainAlertor from './dialog/trainAlertor'; +import TrainUpdatePlan from './dialog/trainUpdatePlan'; import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; @@ -28,10 +34,13 @@ export default { components: { PopMenu, NoticeInfo, - TrainDestination, - TrainDelDestination, + TrainDestination, + TrainDelDestination, ChangeTid, - SetFault + SetFault, + TrainRunLevel, + TrainAlertor, + TrainUpdatePlan }, props: { selected: { @@ -75,7 +84,7 @@ export default { }, { label: '运行等级', - handler: this.undeveloped, + handler: this.handleRunLevel, cmdType: CMD.TrainWindow.CMD_TRAIN_UPDATE_TYPE }, { @@ -180,14 +189,14 @@ export default { children: [ { label: '完整性报警确认', - handler: this.undeveloped, + handler: this.trainAlertor, cmdType: CMD.TrainWindow.CMD_TRAIN_UPDATE_TYPE } ] }, { label: '更新列车计划', - handler: this.undeveloped, + handler: this.updateTrainPlan, cmdType: CMD.TrainWindow.CMD_TRAIN_UPDATE_TYPE }, { @@ -400,8 +409,8 @@ export default { this.doClose(); } }); - }, - updateTid() { + }, + updateTid() { const operate = { start: true, code: this.selected.code, @@ -414,7 +423,7 @@ export default { } }); }, - switchTid() { + switchTid() { const operate = { start: true, code: this.selected.code, @@ -427,8 +436,8 @@ export default { } }); }, - deletDestionation() { - const operate = { + deletDestionation() { + const operate = { start: true, code: this.selected.code, operation: OperationEvent.Train.deleteDestinationTrainId.menu.operation, @@ -443,7 +452,60 @@ export default { this.doClose(); } }); - } + }, + handleRunLevel() { + const operate = { + start: true, + code: this.selected.code, + operation: OperationEvent.Train.deleteDestinationTrainId.menu.operation, + param: { + trainCode: this.selected.code + } + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) =>{ + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', {break: true}); + this.$refs.trainRunLevel.doShow(operate, this.selected); + this.doClose(); + } + }); + }, + // 列车报警确认 + trainAlertor() { + const operate = { + start: true, + code: this.selected.code, + operation: OperationEvent.Train.deleteDestinationTrainId.menu.operation, + param: { + trainCode: this.selected.code + } + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) =>{ + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', {break: true}); + this.$refs.trainAlertor.doShow(operate, this.selected); + this.doClose(); + } + }); + }, + // 更新列车计划 + updateTrainPlan() { + const operate = { + start: true, + code: this.selected.code, + operation: OperationEvent.Train.deleteDestinationTrainId.menu.operation, + param: { + trainCode: this.selected.code + } + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) =>{ + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', {break: true}); + this.$refs.trainUpdatePlan.doShow(operate, this.selected); + this.doClose(); + } + }); + } } }; From 2320ae42a961108a4d2c4e58c57eab0e59206ccc Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Aug 2020 14:17:04 +0800 Subject: [PATCH 11/22] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/haerbin_01/operationConfig.js | 4 ++-- src/views/newMap/displayNew/menuDemon.vue | 2 +- .../scriptDisplay/scriptPreview/scriptButtonGroup.vue | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/jmapNew/theme/haerbin_01/operationConfig.js b/src/jmapNew/theme/haerbin_01/operationConfig.js index a0bb4f6fe..14bc3942b 100644 --- a/src/jmapNew/theme/haerbin_01/operationConfig.js +++ b/src/jmapNew/theme/haerbin_01/operationConfig.js @@ -1013,7 +1013,7 @@ export default { minDuration: 8, operateType: 'CM_Receive_Control', skinCode: '07', - trainingName: '接收控制({10})', + trainingName: '接收控制({1})', trainingRemark: '接收控制', trainingType: 'ControlConvertMenu', productTypes: ['02'], @@ -1028,7 +1028,7 @@ export default { minDuration: 8, operateType: 'CM_Surrender_Control', skinCode: '07', - trainingName: '交出控制({10})', + trainingName: '交出控制({1})', trainingRemark: '交出控制', trainingType: 'ControlConvertMenu', productTypes: ['02'], diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue index bca9fcaec..76b6f01b7 100644 --- a/src/views/newMap/displayNew/menuDemon.vue +++ b/src/views/newMap/displayNew/menuDemon.vue @@ -377,7 +377,7 @@ export default { console.log(this.userRole, '11111111'); this.$store.dispatch('training/setPrdType', this.$route.query.prdType); this.$store.dispatch('training/setRoles', userRole); - this.$store.dispatch('scriptRecord/updateSimulationPause', false); + // this.$store.dispatch('scriptRecord/updateSimulationPause', false); }, clearAllData() { this.$refs.chatbox.clearAllData(); diff --git a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue index 3008375f6..45f900215 100644 --- a/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue +++ b/src/views/newMap/displayNew/scriptDisplay/scriptPreview/scriptButtonGroup.vue @@ -365,7 +365,6 @@ export default { scriptRePreview(this.group).then(resp=>{ getSimulationInfoNew(this.group).then(()=>{ this.isscriptRun = false; - this.$store.dispatch('scriptRecord/updateSimulationPause', false); this.$store.dispatch('scriptRecord/updateBgSet', false); // this.userRole = ''; this.$store.dispatch('training/setRoles', ''); From 5549b7bc9f5f6e1d8eaa5489bd92ab91466543ec Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Aug 2020 14:49:19 +0800 Subject: [PATCH 12/22] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=E5=AE=9E=E8=AE=AD=E6=93=8D=E4=BD=9C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/haerbin_01/menus/menuButton.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index afee2debb..15636775c 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -57,6 +57,7 @@ import { deepAssign } from '@/utils/index'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; +import { TrainingMode } from '@/scripts/ConstDic'; export default { components: { NoticeInfo @@ -158,7 +159,9 @@ export default { this.$refs.noticeInfo.doShow(error.message); }); } else { - this.handleBasicMenu(); + if (this.$store.state.training.mode != TrainingMode.TEACH) { + this.handleBasicMenu(); + } } }, '$store.state.training.prdType': function (val) { From 2dad56ac07b6949f5404d09a771f9efc7fa65df7 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Aug 2020 15:01:47 +0800 Subject: [PATCH 13/22] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=E5=AE=9E=E8=AE=AD=E6=93=8D=E4=BD=9C=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/haerbin_01/menus/menuButton.vue | 2 +- src/jmapNew/theme/haerbin_01/operationConfig.js | 8 ++++---- src/scripts/cmdPlugin/OperationHandler.js | 4 ++++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index 15636775c..4c78a4d43 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -556,7 +556,7 @@ export default { } if (this.guide) { this.routeParamList.push({ name: '引导进路', cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE, operate: OperationEvent.Signal.guide.menuButton, show: false, securityCommand: true }); - this.routeParamList.push({ name: '取消引导', cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE, operate: OperationEvent.Signal.humanTrainRoute.menuButton, show: false }); + this.routeParamList.push({ name: '取消引导', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_GUIDE, operate: OperationEvent.Signal.cancelGuide.menuButton, show: false }); } } } diff --git a/src/jmapNew/theme/haerbin_01/operationConfig.js b/src/jmapNew/theme/haerbin_01/operationConfig.js index 14bc3942b..d75ba6970 100644 --- a/src/jmapNew/theme/haerbin_01/operationConfig.js +++ b/src/jmapNew/theme/haerbin_01/operationConfig.js @@ -753,7 +753,7 @@ export default { { maxDuration: 15, minDuration: 8, - operateType: 'Signal_Human_Release_Route', + operateType: 'Signal_Cancel_Guide', skinCode: '07', trainingName: '取消引导({3})', trainingRemark: '取消引导', @@ -762,7 +762,7 @@ export default { stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'START_SIGNAL' }, { deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'END_SIGNAL' }, - { deviceType: '04', orderNum: 3, operateCode: '3052', tip: '鼠标左键点击【取消引导】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '3182', tip: '鼠标左键点击【取消引导】按钮' }, { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } ] }, @@ -785,7 +785,7 @@ export default { { maxDuration: 15, minDuration: 8, - operateType: 'Signal_Human_Release_Route', + operateType: 'Signal_Cancel_Guide', skinCode: '07', trainingName: '取消引导({3})', trainingRemark: '取消引导', @@ -794,7 +794,7 @@ export default { stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'START_SIGNAL' }, { deviceType: '04', orderNum: 2, operateCode: 'click', tip: '鼠标左键点击选择该信号机', codeType:'END_SIGNAL' }, - { deviceType: '04', orderNum: 3, operateCode: '3052', tip: '鼠标左键点击【取消引导】按钮' }, + { deviceType: '04', orderNum: 3, operateCode: '3182', tip: '鼠标左键点击【取消引导】按钮' }, { deviceType: '04', orderNum: 4, operateCode: '008', tip: '鼠标左键点击【执行】按钮' } ] }, diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index d6a6883e3..75c3f9503 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -1064,6 +1064,10 @@ export const OperationEvent = { confirm: { operation: '3181', domId: '_Tips-Signal-cancelGuide-Confirm' + }, + menuButton: { + operation: '3182', + domId: '_Tips-Signal-cancelGuide-Menu{BOTTOM}' } }, // 联锁进路 From f2957c370cc11a48fb60c49fb790912d6a391bb3 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Aug 2020 15:09:04 +0800 Subject: [PATCH 14/22] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=E5=AE=9E=E8=AE=AD=E6=93=8D=E4=BD=9C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/haerbin_01/menus/menuButton.vue | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index 4c78a4d43..11c0ee495 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -451,18 +451,20 @@ export default { }); }, doClose() { - this.deviceHighLight(this.oldDevice, false); // 当前选中 - this.operate = ''; // 清空指令 - this.cmdType = ''; - if (this.oldClickObj) { - this.deviceHighLight(this.oldClickObj, false); + if (this.$store.state.training.mode != TrainingMode.TEACH) { + this.deviceHighLight(this.oldDevice, false); // 当前选中 + this.operate = ''; // 清空指令 + this.cmdType = ''; + if (this.oldClickObj) { + this.deviceHighLight(this.oldClickObj, false); + } + this.handleBasicMenu(); + this.param = {}; + this.tempData = []; // 清空执行栏 + this.canCommand = true; // 执行变为禁用 + this.oldClickObj = null; // 清空上次点击信号机 + this.clearAllMenuShow(); } - this.handleBasicMenu(); - this.param = {}; - this.tempData = []; // 清空执行栏 - this.canCommand = true; // 执行变为禁用 - this.oldClickObj = null; // 清空上次点击信号机 - this.clearAllMenuShow(); }, initMenus() { this.basicParamList = this.$store.state.training.prdType === '01' ? [ From 1668b25337edf7c2b1c2f6eb96a7310c9ef956bb Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 25 Aug 2020 16:38:08 +0800 Subject: [PATCH 15/22] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=E5=AE=9E=E8=AE=AD=E6=93=8D=E4=BD=9C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/haerbin_01/menus/menuButton.vue | 36 +++++++++++-------- .../theme/haerbin_01/operationConfig.js | 24 ++++++++----- 2 files changed, 38 insertions(+), 22 deletions(-) diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index 11c0ee495..6cc0bd8c2 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -20,7 +20,7 @@