From bbcf5b3fec5d90badd7efd259f2cdcc967901a0c Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 8 Dec 2022 16:28:22 +0800
Subject: [PATCH] =?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/foshan_01/menus/dispatchWorkMenu.vue | 4 +++-
src/jmapNew/theme/foshan_01/menus/localWorkMenu.vue | 3 ++-
src/jmapNew/theme/foshan_01/menus/menuAutoTrunRoute.vue | 2 +-
src/jmapNew/theme/foshan_01/menus/menuSection.vue | 6 ++++--
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/jmapNew/theme/foshan_01/menus/dispatchWorkMenu.vue b/src/jmapNew/theme/foshan_01/menus/dispatchWorkMenu.vue
index be131a132..4d040eb7a 100644
--- a/src/jmapNew/theme/foshan_01/menus/dispatchWorkMenu.vue
+++ b/src/jmapNew/theme/foshan_01/menus/dispatchWorkMenu.vue
@@ -7,7 +7,7 @@
-
+
@@ -23,6 +23,7 @@ import MenuSignal from './menuSignal';
import MenuSection from './menuSection';
import MenuTrain from './menuTrain';
import MenuLimit from './menuLimit';
+import MenuAutoTrunRoute from './menuAutoTrunRoute';
import PassiveAlarm from './passiveDialog/alarm';
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
import PassiveTimeout from './passiveDialog/timeout';
@@ -37,6 +38,7 @@ export default {
MenuTrain,
MenuLimit,
PassiveAlarm,
+ MenuAutoTrunRoute,
PassiveContorl,
PassiveTimeout
},
diff --git a/src/jmapNew/theme/foshan_01/menus/localWorkMenu.vue b/src/jmapNew/theme/foshan_01/menus/localWorkMenu.vue
index d75495e45..72912c00a 100644
--- a/src/jmapNew/theme/foshan_01/menus/localWorkMenu.vue
+++ b/src/jmapNew/theme/foshan_01/menus/localWorkMenu.vue
@@ -26,6 +26,7 @@ import MenuSection from './menuSection';
import MenuStation from './menuStation';
import MenuLimit from './menuLimit';
import MenuAxleReset from './menuAxleReset';
+import MenuAutoTrunRoute from './menuAutoTrunRoute';
import PassiveAlarm from './passiveDialog/alarm';
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
@@ -43,7 +44,7 @@ export default {
MenuStation,
MenuLimit,
MenuAxleReset,
-
+ MenuAutoTrunRoute,
PassiveAlarm,
PassiveContorl,
PassiveTimeout
diff --git a/src/jmapNew/theme/foshan_01/menus/menuAutoTrunRoute.vue b/src/jmapNew/theme/foshan_01/menus/menuAutoTrunRoute.vue
index e64eb6ea6..aafc7f28f 100644
--- a/src/jmapNew/theme/foshan_01/menus/menuAutoTrunRoute.vue
+++ b/src/jmapNew/theme/foshan_01/menus/menuAutoTrunRoute.vue
@@ -15,7 +15,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
export default {
- name: 'MenuLimit',
+ name: 'MenuAutoTurnRoute',
components: {
PopMenu,
TurnBackControl
diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
index 4759d57f5..f51940abf 100644
--- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue
+++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue
@@ -146,10 +146,12 @@ export default {
mounted() {
const isDev = process.env.NODE_ENV === 'development';
if (isDev) {
- this.menuNormal.Center.push({
+ // Center
+ this.menuNormal.push({
label: '新建计划车',
handler: this.addPlanTrain,
- cmdType: CMD.Section.CMD_Train_Init_Plan
+ cmdType: CMD.Section.CMD_Train_Init_Plan,
+ isShow: (signalDevice, work) => work === 'dispatchWork'
});
}
},