From 67bc0ba2dbfa98ddf9b3ac9472f756acd98ae06c Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 14 Sep 2022 16:45:08 +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/views/newMap/display/simulationMenu.vue | 27 ++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/views/newMap/display/simulationMenu.vue b/src/views/newMap/display/simulationMenu.vue index 7d4f57652..43e2a746c 100644 --- a/src/views/newMap/display/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu.vue @@ -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