From 2c4848f4db96bd1892691aa95bfd748c74e94bbb Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Fri, 20 Mar 2020 14:48:22 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8C=97=E4=BA=AC=E4=B8=80=E5=8F=B7=E7=BA=BF?=
=?UTF-8?q?=E6=8C=87=E4=BB=A4=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
---
.../beijing_01/menus/dialog/routeControl.vue | 59 ++------
.../beijing_01/menus/dialog/routeDetail.vue | 134 ++++++++++--------
.../menus/dialog/routeHandControl.vue | 37 +----
.../menus/dialog/routeSelection.vue | 25 +---
.../menus/dialog/sectionControl.vue | 49 ++-----
.../menus/dialog/standBackStrategy.vue | 129 +++++++++--------
.../beijing_01/menus/dialog/standControl.vue | 63 ++------
.../menus/dialog/standJumpStopControl.vue | 55 ++-----
.../beijing_01/menus/dialog/standRunLevel.vue | 22 +--
.../beijing_01/menus/dialog/standStopTime.vue | 23 +--
.../theme/beijing_01/menus/menuSection.vue | 2 +-
11 files changed, 210 insertions(+), 388 deletions(-)
diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue b/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue
index 97c59122f..3e3e986fb 100644
--- a/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue
+++ b/src/jmapNew/theme/beijing_01/menus/dialog/routeControl.vue
@@ -36,13 +36,13 @@
\ 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 @@