From 3e14220cfc79b579747f9f86181ae68ac8cd90a0 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 20 Mar 2020 11:20:13 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=BC=E5=90=88?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=AB=99=E5=8F=B0=E6=95=B0=E6=8D=AE=EF=BC=8C?= =?UTF-8?q?=E5=8F=8A=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iscs/iscsSystem/config/bas/controlBAS.vue | 170 ++++++++------ .../config/broadcast/centerHome.vue | 212 ++++++++++-------- .../config/broadcast/homeScreen.vue | 2 +- src/views/iscs/iscsSystem/config/index.vue | 6 +- .../iscs/iscsSystem/config/pis/mainScreen.vue | 108 ++------- 5 files changed, 242 insertions(+), 256 deletions(-) diff --git a/src/views/iscs/iscsSystem/config/bas/controlBAS.vue b/src/views/iscs/iscsSystem/config/bas/controlBAS.vue index c67973b00..4612fcdf4 100644 --- a/src/views/iscs/iscsSystem/config/bas/controlBAS.vue +++ b/src/views/iscs/iscsSystem/config/bas/controlBAS.vue @@ -39,7 +39,7 @@
状态比较
- + \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue index 5422480fa..d4d6e3abb 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeHandControl.vue @@ -80,7 +80,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import OperationHandler from '@/scripts/cmdPlugin/OperationHandler'; import { mouseCancelState } from '../utils/menuItemStatus'; import NoticeInfo from './childDialog/childDialog/noticeInfo'; -import CMD from '@/scripts/cmdPlugin/CommandEnum'; +import {menuOperate, commitOperate} from '../utils/menuOperate'; export default { name: 'RouteHandControl', @@ -278,47 +278,24 @@ export default { }, // 进路交人工控 humanControl() { - const operate = { - over: true, - operation: OperationEvent.Signal.humanControl.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING, - param:{ - routeCodeList:this.selection - } - }; this.loading = true; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - this.loading = false; - if (valid) { - this.doClose(); - } + commitOperate(menuOperate.Signal.humanControl, {routeCodeList:this.selection}, 2).then((data)=>{ + this.doClose(); }).catch((error) => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow({}, error.message); }); }, // 进路交自动控 atsAutoControl() { - const operate = { - over: true, - operation: OperationEvent.Signal.atsAutoControl.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING, - param:{ - routeCodeList:this.selection - } - }; - this.loading = true; - this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { - this.loading = false; - if (valid) { - this.doClose(); - } + commitOperate(menuOperate.Signal.atsAutoControl, {routeCodeList:this.selection}, 2).then((data)=>{ + this.doClose(); }).catch((error) => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(operate, error.message); + this.$refs.noticeInfo.doShow({}, error.message); }); }, cancel() { diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue index c192bb5b6..acf3dee42 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeSelection.vue @@ -61,11 +61,11 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/standControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/standControl.vue index c085f2079..cf415927c 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/standControl.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/standControl.vue @@ -110,10 +110,11 @@