From cfdb7d31872bcf374fd059829a72ef19bb43d17e Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 2 Nov 2020 17:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=85=E9=9A=9C=E6=93=8D=E4=BD=9C=20=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=8B=E5=8A=A8=E5=BC=80=E5=90=AF=E5=B1=8F?= =?UTF-8?q?=E8=94=BD=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/components/utils/menuOperate.js | 5 +++++ src/jmapNew/theme/race_01/menus/menuStationStand.vue | 12 ++++++++++++ src/scripts/cmdPlugin/CommandEnum.js | 4 +++- src/scripts/cmdPlugin/OperationHandler.js | 7 +++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js index 63c8a2ac4..e8fba250f 100644 --- a/src/jmapNew/theme/components/utils/menuOperate.js +++ b/src/jmapNew/theme/components/utils/menuOperate.js @@ -302,6 +302,11 @@ export const menuOperate = { // 批量取消扣车 operation: OperationEvent.StationStand.cancelBulkBuckleTrain.menu.operation, cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN_ALL + }, + openPsdByHand:{ + // 手动开启屏蔽门 + operation: OperationEvent.StationStand.openPsdByHand.menu.operation, + cmdType:CMD.Stand.CMD_STAND_OPEN_PSD } }, StationControl:{ diff --git a/src/jmapNew/theme/race_01/menus/menuStationStand.vue b/src/jmapNew/theme/race_01/menus/menuStationStand.vue index 5351e65fb..afda4eb76 100644 --- a/src/jmapNew/theme/race_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/race_01/menus/menuStationStand.vue @@ -149,6 +149,11 @@ export default { handler: this.cancelStoppage, cmdType:CMD.Stand.CMD_STAND_REMOVE_FAULT }, + { + label: '手动开启屏蔽门', + handler: this.openPsdByHand, + cmdType: CMD.Stand.CMD_STAND_OPEN_PSD + }, { label: '触发故障管理', handler: this.triggerFaultManagement, @@ -317,6 +322,13 @@ export default { }, triggerFaultManagement() { this.$store.dispatch('training/setTriggerFaultCount', this.selected); + }, + // 手动开启屏蔽门 + openPsdByHand() { + commitOperate(menuOperate.StationStand.openPsdByHand, {standCode:this.selected.code}, 3).then(({valid, operate})=>{ + }).catch(error=>{ + this.$refs.noticeInfo.doShow({}, error.message); + }); } } }; diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index 1a5ce4016..332779ef3 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -183,7 +183,9 @@ export default { /** 查看站台状态 */ CMD_STAND_VIEW_STATUS:{value:'Stand_View_Status', label: '查看站台状态'}, /** 站台总取消 */ - CMD_STAND_TOTAL_CANCLE:{value:'Stand_Total_Cancle', label: '站台总取消'} + CMD_STAND_TOTAL_CANCLE:{value:'Stand_Total_Cancle', label: '站台总取消'}, + /** 手动开启屏蔽门 */ + CMD_STAND_OPEN_PSD:{value:'Stand_Open_Psd', label: '手动开启屏蔽门'} }, Station: { diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index 1702248f2..a063c08e8 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -1766,6 +1766,13 @@ export const OperationEvent = { operation: '518', domId: '_Tips-Stand-cancelDetainTrainAuto-Menu' } + }, + // 手动开启屏蔽门 + openPsdByHand:{ + menu: { + operation: '519', + domId: '_Tips-Stand-openPsdByHand-Menu' + } } },