调整加入创建列车菜单问题

This commit is contained in:
fan 2020-05-21 17:03:30 +08:00
parent aed5802b7f
commit 4d9edad82b
9 changed files with 100 additions and 81 deletions

View File

@ -114,6 +114,17 @@ export default {
'buttonOperation' '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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -123,15 +134,6 @@ export default {
}, },
initMenu() { 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 = MenuContextHandler.covert(this.menuNormal);
// //

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -109,15 +120,6 @@ export default {
}, },
initMenu() { 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); this.menu = MenuContextHandler.covert(this.menuNormal);
// //

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -113,15 +124,6 @@ export default {
}, },
initMenu() { 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); this.menu = MenuContextHandler.covert(this.menuNormal);
// //

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -124,15 +135,6 @@ export default {
}, },
initMenu() { 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 = MenuContextHandler.covert(this.menuNormal);
// //
if (this.operatemode === OperateMode.FAULT) { if (this.operatemode === OperateMode.FAULT) {

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -171,15 +182,6 @@ export default {
}, },
initMenu() { 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 = MenuContextHandler.covert(this.menuNormal);
// //

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -118,15 +129,6 @@ export default {
}, },
initMenu() { 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); this.menu = MenuContextHandler.covert(this.menuNormal);
// //

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -142,15 +153,6 @@ export default {
}, },
initMenu() { 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 = MenuContextHandler.covert(this.menuNormal);
// //
if (this.operatemode === OperateMode.FAULT) { if (this.operatemode === OperateMode.FAULT) {

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -155,15 +166,7 @@ export default {
}, },
initMenu() { 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 = MenuContextHandler.covert(this.menuNormal);
// //

View File

@ -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: { methods: {
clickEvent() { clickEvent() {
const self = this; const self = this;
@ -161,15 +172,6 @@ export default {
}, },
initMenu() { 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 = MenuContextHandler.covert(this.menuNormal);
this.menu = this.menuNormal.Center; this.menu = this.menuNormal.Center;
// //