From 45572a9f2aa1f4e6886aa83aaa9d73f88d225708 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 29 Jan 2021 09:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/chengdu_03/menus/menuButton.vue | 37 +- .../dialog/childDialog/confirmControl.vue | 370 -------------- .../childDialog/confirmControlSpeed.vue | 144 ------ .../childDialog/confirmSignalUnlock.vue | 126 ----- .../menus/dialog/sectionCmdControl.vue | 419 --------------- .../menus/dialog/switchCmdControl.vue | 482 ------------------ .../dialog/childDialog/confirmControl.vue | 365 ------------- .../childDialog/confirmControlSpeed.vue | 144 ------ .../childDialog/confirmSignalUnlock.vue | 126 ----- 9 files changed, 21 insertions(+), 2192 deletions(-) delete mode 100644 src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControl.vue delete mode 100644 src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControlSpeed.vue delete mode 100644 src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmSignalUnlock.vue delete mode 100644 src/jmapNew/theme/haerbin_01/menus/dialog/sectionCmdControl.vue delete mode 100644 src/jmapNew/theme/haerbin_01/menus/dialog/switchCmdControl.vue delete mode 100644 src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControl.vue delete mode 100644 src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControlSpeed.vue delete mode 100644 src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmSignalUnlock.vue diff --git a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue index 00d6ef30c..a87f759fd 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue @@ -144,7 +144,7 @@ export default { }; }, computed: { - ...mapGetters('training', [ + ...mapGetters('training', [ 'operatemode' ]), ...mapGetters('map', [ @@ -152,7 +152,7 @@ export default { 'routeData', 'signalList', 'autoReentryList', - 'autoReentryData', + 'autoReentryData' ]), Switch() { return OperationEvent.Switch; @@ -333,7 +333,7 @@ export default { const operate = { operation: this.$store.state.menuOperation.buttonOperation }; - let isArrangementRoute = false; + let isArrangementRoute = false; if (deviceList.length === 1) { const signal = deviceList[0]; const sectionModel = this.$store.getters['map/getDeviceByCode'](signal.sectionCode); @@ -385,6 +385,7 @@ export default { } } }, + // handelFunctionButton(model, subType) { // debugger; const operate = { @@ -395,35 +396,37 @@ export default { }; if (model._type === 'StationStand' && subType === 'StopJumpLamp') { operate.cmdType = CMD.Stand.CMD_STAND_SET_JUMP_STOP; - operate.param = {standCode: model.code, trainGroupNumber: ''}; - operate.code = model.code; + operate.param = {standCode: model.code, trainGroupNumber: ''}; + operate.code = model.code; } else if (model._type === 'StationStand' && subType === 'CancelStopJumpLamp') { operate.cmdType = CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP; - operate.param = {standCode: model.code, trainGroupNumber: ''}; - operate.code = model.code; + operate.param = {standCode: model.code, trainGroupNumber: ''}; + operate.code = model.code; } else if (model._type === 'AutoTurnBack' ) { operate.cmdType = CMD.Signal.CMD_SIGNAL_SET_AUTO_TURN_BACK; operate.param = {cycleCode: model.cycleCode}; + operate.code = model.code; } else if (model._type === 'AutomaticRoute') { const route = this.routeData[model.automaticRouteCode]; operate.cmdType = CMD.Signal.CMD_SIGNAL_SET_CI_AUTO; operate.param = {signalCode: route.startSignalCode}; + operate.code = model.code; } else if (model._type === 'Station') { switch (subType) { case 'substation': - operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL; - operate.param = {stationCodes: [model.code]}; - operate.code = model.code; + operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL; + operate.param = {stationCodes: [model.code]}; + operate.code = model.code; break; case 'center': operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL; - operate.param = {stationCodes: [model.code]}; - operate.code = model.code; + operate.param = {stationCodes: [model.code]}; + operate.code = model.code; break; case 'emergency': operate.cmdType = CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL; - operate.param = {stationCodes: [model.code]}; - operate.code = model.code; + operate.param = {stationCodes: [model.code]}; + operate.code = model.code; break; } } @@ -460,10 +463,12 @@ export default { } else if (model._type === 'AutoTurnBack') { operate.cmdType = CMD.Signal.CMD_SIGNAL_CANCEL_AUTO_TURN_BACK; operate.param = {cycleCode: model.cycleCode, cancelRoute: false}; + operate.code = model.code; } else if (model._type === 'AutomaticRoute') { const route = this.routeData[model.automaticRouteCode]; operate.cmdType = CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO; operate.param = {signalCode: route.startSignalCode}; + operate.code = model.code; } this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {}).catch((error) => { this.deviceList = []; @@ -697,8 +702,8 @@ export default { this.clearOperate(); } } else { - this.clearOperate(); - this.operatemode != OperateMode.FAULT && this.$message.info('请先切换到站控或紧急站控'); + this.clearOperate(); + this.operatemode != OperateMode.FAULT && this.$message.info('请先切换到站控或紧急站控'); } } } diff --git a/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControl.vue b/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControl.vue deleted file mode 100644 index 8555ce074..000000000 --- a/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControl.vue +++ /dev/null @@ -1,370 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControlSpeed.vue deleted file mode 100644 index 67a0a32c5..000000000 --- a/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmControlSpeed.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmSignalUnlock.vue b/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmSignalUnlock.vue deleted file mode 100644 index bf590181f..000000000 --- a/src/jmapNew/theme/haerbin_01/menus/dialog/childDialog/confirmSignalUnlock.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/haerbin_01/menus/dialog/sectionCmdControl.vue b/src/jmapNew/theme/haerbin_01/menus/dialog/sectionCmdControl.vue deleted file mode 100644 index dd0db453f..000000000 --- a/src/jmapNew/theme/haerbin_01/menus/dialog/sectionCmdControl.vue +++ /dev/null @@ -1,419 +0,0 @@ - - diff --git a/src/jmapNew/theme/haerbin_01/menus/dialog/switchCmdControl.vue b/src/jmapNew/theme/haerbin_01/menus/dialog/switchCmdControl.vue deleted file mode 100644 index 2fa60ef77..000000000 --- a/src/jmapNew/theme/haerbin_01/menus/dialog/switchCmdControl.vue +++ /dev/null @@ -1,482 +0,0 @@ - - diff --git a/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControl.vue b/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControl.vue deleted file mode 100644 index 079b94fb9..000000000 --- a/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControl.vue +++ /dev/null @@ -1,365 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControlSpeed.vue deleted file mode 100644 index 67a0a32c5..000000000 --- a/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmControlSpeed.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmSignalUnlock.vue b/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmSignalUnlock.vue deleted file mode 100644 index bf590181f..000000000 --- a/src/jmapNew/theme/nanjing_02/menus/dialog/childDialog/confirmSignalUnlock.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - -