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; // 故障模式菜单列表