From 4d9edad82ba137385be1e74c7d58161ba510f98b Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 21 May 2020 17:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8A=A0=E5=85=A5=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=88=97=E8=BD=A6=E8=8F=9C=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/beijing_01/menus/menuSection.vue | 20 ++++++++++-------- .../theme/chengdu_01/menus/menuSection.vue | 20 ++++++++++-------- .../theme/chengdu_03/menus/menuSection.vue | 20 ++++++++++-------- .../theme/foshan_01/menus/menuSection.vue | 20 ++++++++++-------- .../theme/fuzhou_01/menus/menuSection.vue | 20 ++++++++++-------- .../theme/haerbin_01/menus/menuSection.vue | 20 ++++++++++-------- .../theme/ningbo_01/menus/menuSection.vue | 20 ++++++++++-------- .../theme/xian_01/menus/menuSection.vue | 21 +++++++++++-------- .../theme/xian_02/menus/menuSection.vue | 20 ++++++++++-------- 9 files changed, 100 insertions(+), 81 deletions(-) diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue index c5dcb92cd..8e00fb8d6 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue @@ -114,6 +114,17 @@ export default { 'buttonOperation' ]) }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push({ + label: '新建计划车', + handler: this.addPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -123,15 +134,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push({ - label: '新建计划车', - handler: this.addPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 diff --git a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue index 1b3127bd7..3d3a14e09 100644 --- a/src/jmapNew/theme/chengdu_01/menus/menuSection.vue +++ b/src/jmapNew/theme/chengdu_01/menus/menuSection.vue @@ -100,6 +100,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push( { + label: '新建计划列车', + handler: this.createPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -109,15 +120,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push( { - label: '新建计划列车', - handler: this.createPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue index 36b004c4c..a3887cd9f 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSection.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSection.vue @@ -104,6 +104,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push( { + label: '新建计划列车', + handler: this.createPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -113,15 +124,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push( { - label: '新建计划列车', - handler: this.createPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue index 1c1bb8ceb..7dc6a3c01 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue @@ -115,6 +115,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push({ + label: '新建计划车', + handler: this.addPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -124,15 +135,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push({ - label: '新建计划车', - handler: this.addPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue index 1027abe11..8a1f9400d 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue @@ -162,6 +162,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push({ + label: '新建计划车', + handler: this.addPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -171,15 +182,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push({ - label: '新建计划车', - handler: this.addPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue index 310b8efae..3b8ac85f5 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue @@ -109,6 +109,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push({ + label: '新建计划车', + handler: this.createPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -118,15 +129,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push({ - label: '新建计划车', - handler: this.createPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue index ddf118855..db836d290 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue @@ -133,6 +133,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push({ + label: '新建计划车', + handler: this.addPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -142,15 +153,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push({ - label: '新建计划车', - handler: this.addPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { diff --git a/src/jmapNew/theme/xian_01/menus/menuSection.vue b/src/jmapNew/theme/xian_01/menus/menuSection.vue index 7bbbab41f..1c6d56ccd 100644 --- a/src/jmapNew/theme/xian_01/menus/menuSection.vue +++ b/src/jmapNew/theme/xian_01/menus/menuSection.vue @@ -146,6 +146,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push({ + label: '新建计划车', + handler: this.addPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -155,15 +166,7 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push({ - label: '新建计划车', - handler: this.addPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } + this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 diff --git a/src/jmapNew/theme/xian_02/menus/menuSection.vue b/src/jmapNew/theme/xian_02/menus/menuSection.vue index 6c52d91f1..71bbb31aa 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSection.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSection.vue @@ -152,6 +152,17 @@ export default { } } }, + mounted() { + const isDev = process.env.NODE_ENV === 'development'; + const isTest = process.env.NODE_ENV === 'test'; + if (isDev || isTest) { + this.menuNormal.Center.push({ + label: '新建计划车', + handler: this.addPlanTrain, + cmdType: CMD.Section.CMD_Train_Init_Plan + }); + } + }, methods: { clickEvent() { const self = this; @@ -161,15 +172,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - const isDev = process.env.NODE_ENV === 'development'; - const isTest = process.env.NODE_ENV === 'test'; - if (isDev || isTest) { - this.menuNormal.Center.push({ - label: '新建计划车', - handler: this.addPlanTrain, - cmdType: CMD.Section.CMD_Train_Init_Plan - }); - } // this.menu = MenuContextHandler.covert(this.menuNormal); this.menu = this.menuNormal.Center; // 故障模式菜单列表