代码调整

This commit is contained in:
joylink_cuiweidong 2022-09-15 10:20:45 +08:00
parent 67bc0ba2db
commit b72736813a
2 changed files with 26 additions and 4 deletions

View File

@ -89,7 +89,6 @@ export default {
const resp = await getSimulationInfoNew(this.group);
if (resp && resp.code == 200 && resp.data) {
if (!resp.data.dataError) {
debugger;
// this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause); //
// this.$store.dispatch('training/setInitTime', +new Date(`${new Date().toLocaleDateString()} ${timeFormat(resp.data.systemTime)}`));
if (resp.data.prodType === '03') {

View File

@ -70,7 +70,7 @@ export default {
{label:'初始化', name:'initialize', click:this.initialize, isShow:true}
]},
{label:'设备操作', name:'deviceOprate', isShow:true, children:[
{label:'数字沙盘', name:'noEvent', click:this.noEvent, isShow:true},
{label:'数字沙盘', name:'digitalStand ', click:this.digitalStand, isShow:true},
{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},
@ -220,9 +220,10 @@ export default {
'contectUs':this.judgeContectUs(),
'jlmap3dmodel':this.judgeJlmap3dmodel(),
'modifySysTime':this.judgeModifySysTime(),
'cctvView':this.judgeCctvView()
'cctvView':this.judgeCctvView(),
'digitalStand':this.judgeDigitalStand()
};
const list = ['messageBoard', 'contectUs', 'jlmap3dmodel', 'modifySysTime', 'cctvView'];
const list = ['messageBoard', 'contectUs', 'jlmap3dmodel', 'modifySysTime', 'cctvView', 'digitalStand'];
this.menuList = this.menuMap[this.mode];
this.menuList.map(each=>{
each.children && each.children.map(menu=>{
@ -247,6 +248,13 @@ export default {
judgeModifySysTime() {
return this.datie;
},
judgeDigitalStand() {
// demon
const ignoreProject = ['bjd', 'teaching', 'drts'];
const includejlmap3dmodel = ['demon', 'joint'];
return includejlmap3dmodel.includes(this.mode) && !ignoreProject.includes(this.project) &&
this.lineCode != '16' && !this.isShowScheduling && !this.isDrive;
},
// cctv
judgeCctvView() {
// demon
@ -331,6 +339,21 @@ export default {
}
},
//
digitalStand() {
this.hideMenuList();
const routeData = this.$router.resolve({
path:'/jlmap3d/sandbox',
query:{
mapid:this.mapId,
group:this.group,
token:getToken(),
project: this.project,
noPreLogout: true
}
});
window.open(routeData.href, '_blank');
},
//
contectUs() {
this.hideMenuList();