代码调整
This commit is contained in:
parent
bab3449b9a
commit
67bc0ba2db
@ -63,7 +63,7 @@ export default {
|
||||
menuMap:{
|
||||
'demon':[
|
||||
{label:'仿真操作', name:'simulationOprate', isShow:true, children:[
|
||||
{label:'修改系统时间', name:'modifySysTime', click:this.modifySysTime, isShow:true},
|
||||
{label:'修改系统时间', name:'modifySysTime', click:this.modifySysTime, isShow:false},
|
||||
{label:'退出剧本', name:'quitScript', click:this.quitScript, isShow:true},
|
||||
{label:'开始', name:'start', click:this.startSimulation, isShow:true}, // 暂停
|
||||
{label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
|
||||
@ -74,7 +74,7 @@ export default {
|
||||
{label:'cctv视图', name:'cctvView', click:this.cctvView, isShow:false},
|
||||
{label:'故障设备', name:'jlmap3dFault', click:this.jlmap3dFault, isShow:false},
|
||||
{label:'司机视角', name:'jlmap3dDriver', click:this.jlmap3dDriver, isShow:true},
|
||||
{label:'设备视图', name:'jl3dmodel', click:this.jlmap3dmodel, isShow:false},
|
||||
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:false},
|
||||
{label:'IBP盘', name:'IBP', click:this.IBP, isShow:true}
|
||||
]},
|
||||
{label:'竞赛管理', name:'competitionManage', isShow:true, children:[
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
'joint':[
|
||||
{label:'仿真操作', name:'simulationOprate', isShow:true, children:[
|
||||
{label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
|
||||
{label:'修改系统时间', name:'modifySysTime', click:this.modifySysTime, isShow:true},
|
||||
{label:'修改系统时间', name:'modifySysTime', click:this.modifySysTime, isShow:false},
|
||||
{label:'开始', name:'start', click:this.startSimulation, isShow:true}, // 暂停
|
||||
{label:'初始化', name:'initialize', click:this.initialize, isShow:true}
|
||||
]},
|
||||
@ -214,18 +214,20 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
const messageBoard = this.judgeMessageBoard();
|
||||
const contectUs = this.judgeContectUs();
|
||||
const jlmap3dmodel = this.judgeJlmap3dmodel();
|
||||
const modifySysTime = this.datie;
|
||||
const cctvView = this.judgeCctvView();
|
||||
//
|
||||
const list = ['messageBoard', 'contectUs', 'jlmap3dmodel'];
|
||||
// jl3dmodel
|
||||
const dataMap = {
|
||||
'messageBoard':this.judgeMessageBoard(),
|
||||
'contectUs':this.judgeContectUs(),
|
||||
'jlmap3dmodel':this.judgeJlmap3dmodel(),
|
||||
'modifySysTime':this.judgeModifySysTime(),
|
||||
'cctvView':this.judgeCctvView()
|
||||
};
|
||||
const list = ['messageBoard', 'contectUs', 'jlmap3dmodel', 'modifySysTime', 'cctvView'];
|
||||
this.menuList = this.menuMap[this.mode];
|
||||
this.menuList.map(each=>{
|
||||
each.children && each.children.map(menu=>{
|
||||
if (list.includes(menu.name)) {
|
||||
menu.isShow = [menu.name];
|
||||
menu.isShow = dataMap[menu.name];
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -242,6 +244,9 @@ export default {
|
||||
close() {
|
||||
this.hideMenuList();
|
||||
},
|
||||
judgeModifySysTime() {
|
||||
return this.datie;
|
||||
},
|
||||
// cctv 视图
|
||||
judgeCctvView() {
|
||||
// demon
|
||||
|
Loading…
Reference in New Issue
Block a user