代码调整

This commit is contained in:
joylink_cuiweidong 2022-09-26 10:38:27 +08:00
parent bea349a439
commit 4238abdeb5

View File

@ -259,81 +259,88 @@ export default {
// {value: 'richor_cxjs', label: ''},
// {value: 'hyd_railway', label: ''},
// {value: 'wh', label: '8线'}
projectMenuMap:{
//
'bjd':[
{label:'切换客流数据', name:'changeFlowData', click:this.changeFlowData, isShow:true},
{label:'大客流策略', name:'bigLPFStrategy', click:this.bigLPFStrategy, isShow:true},
{label:'权限分发', name:'distribute', click:this.distribute, isShow:true},
// {label:'', name:'messageBoard', click:this.messageBoard, isShow:true},
{label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
{label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
{label:'初始化', name:'initialize', click:this.initialize, isShow:true},
{label:'返回', name:'backBJD', click:this.backBJD, isShow:true}
// ATS
],
'designBjd':[
// projectMenuMap:{
// //
// 'bjd':[
// {label:'', name:'changeFlowData', click:this.changeFlowData, isShow:true},
// {label:'', name:'bigLPFStrategy', click:this.bigLPFStrategy, isShow:true},
// {label:'', name:'distribute', click:this.distribute, isShow:true},
// // {label:'', name:'messageBoard', click:this.messageBoard, isShow:true},
// {label:'', name:'contectUs', click:this.contectUs, isShow:true},
// {label:'', name:'drivingPlan', click:this.drivingPlan, isShow:true},
// {label:'', name:'initialize', click:this.initialize, isShow:true},
// {label:'', name:'backBJD', click:this.backBJD, isShow:true}
// // ATS
// ],
// 'designBjd':[
],
//
'urtss':[
// ],
// //
// 'urtss':[
],
//
'wjls':[
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
{label:'经典案例分析', name:'caseAnalysis ', click:this.caseAnalysis, isShow:true},
{label:'规范学习', name:'normativeStudy', click:this.normativeStudy, isShow:true},
{label:'占线板', name:'lineBoard', click:this.lineBoard, isShow:true},
{label:this.$store.state.socket.simulationPause ? '开始' : '暂停', name:'startOrPause', click:this.startOrPause, isShow:true}, // /
{label:'初始化', name:'initialize', click:this.end, isShow:true},
{label:'返回', name:'backWJLS', click:this.backWJLS, isShow:true}
],
'login':[
{label:'路票', name:'trainTicket ', click:this.trainTicket, isShow:true},
{label:'簿册', name:'registerBook ', click:this.registerBook, isShow:true},
// {label:'', name:'digitalStand ', click:this.digitalStand, isShow:true},
{label:'派班计划加载', name:'schedulingLoad', click:this.schedulingLoad, isShow:true},
{label:'派班计划预览', name:'schedulingView', click:this.schedulingView, isShow:true},
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
{label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
{label:['16', '19'].includes(this.$route.query.lineCode) ? '修改系统时间' : '按计划行车', name:'modifyOrDriving', click:this.modifyOrDriving, isShow:true },
{label:'初始化', name:'initialize', click:this.initialize, isShow:true},
{label:this.$route.query.projectDevice ? '退出' : '返回', name:'backOrQuit', click:this.back, isShow:true }
// ],
// //
// 'wjls':[
// {label:'', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
// {label:'', name:'caseAnalysis ', click:this.caseAnalysis, isShow:true},
// {label:'', name:'normativeStudy', click:this.normativeStudy, isShow:true},
// {label:'线', name:'lineBoard', click:this.lineBoard, isShow:true},
// {label:this.$store.state.socket.simulationPause ? '' : '', name:'startOrPause', click:this.startOrPause, isShow:true}, // /
// {label:'', name:'initialize', click:this.end, isShow:true},
// {label:'', name:'backWJLS', click:this.backWJLS, isShow:true}
// ],
// 'login':[
// {label:'', name:'trainTicket ', click:this.trainTicket, isShow:true},
// {label:'簿', name:'registerBook ', click:this.registerBook, isShow:true},
// // {label:'', name:'digitalStand ', click:this.digitalStand, isShow:true},
// {label:'', name:'schedulingLoad', click:this.schedulingLoad, isShow:true},
// {label:'', name:'schedulingView', click:this.schedulingView, isShow:true},
// {label:'', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
// {label:'', name:'contectUs', click:this.contectUs, isShow:true},
// {label:['16', '19'].includes(this.$route.query.lineCode) ? '' : '', name:'modifyOrDriving', click:this.modifyOrDriving, isShow:true },
// {label:'', name:'initialize', click:this.initialize, isShow:true},
// {label:this.$route.query.projectDevice ? '退' : '', name:'backOrQuit', click:this.back, isShow:true }
],
'design':[
{label:'路票', name:'trainTicket ', click:this.trainTicket, isShow:true},
{label:'簿册', name:'registerBook ', click:this.registerBook, isShow:true},
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
{label:['16', '19'].includes(this.$route.query.lineCode) ? '修改系统时间' : '按计划行车', name:'modifyOrDriving', click:this.modifyOrDriving, isShow:true },
{label:'初始化', name:'initialize', click:this.initialize, isShow:true},
{label:this.$route.query.projectDevice ? '退出' : '返回', name:'backOrQuit', click:this.back, isShow:true }
],
//
'drts':[
{label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
{label:'实操练习', name:'fieldPractice', click:this.fieldPractice, isShow:true},
{label:'理论考试', name:'theoryQuiz', click:this.theoryQuiz, isShow:true},
{label:'运行图预览', name:'runPlanView', click:this.runPlanView, isShow:true},
{label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
{label:'初始化', name:'initialize', click:this.end, isShow:true},
{label:'返回', name:'backBJD', click:this.backBJD, isShow:true}
],
//
'zzww':[
]
// <el-button v-if="isContest" size="small" :disabled="practiceDisabled" @click="fieldPractice"></el-button>
// <el-button v-if="isContest" size="small" @click="goTheoryQuiz"></el-button>
// showRegisterBookBtn() {
// const roleList = ['STATION_SUPERVISOR', 'STATION_ASSISTANT', 'STATION_SIGNALER', 'STATION_SWITCH_MAN', 'STATION_MASTER', 'STATION_WORKER', 'DEVICE_MANAGER'];
// return this.$route.query.lineCode === '16' && roleList.includes(this.$store.state.training.userRole);
// }
// srsandbox jxgm ===> noChat
// 'say':{}, //
// 'teaching':{} //
},
// ],
// 'design':[
// {label:'', name:'trainTicket ', click:this.trainTicket, isShow:true},
// {label:'簿', name:'registerBook ', click:this.registerBook, isShow:true},
// {label:'', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
// {label:['16', '19'].includes(this.$route.query.lineCode) ? '' : '', name:'modifyOrDriving', click:this.modifyOrDriving, isShow:true },
// {label:'', name:'initialize', click:this.initialize, isShow:true},
// {label:this.$route.query.projectDevice ? '退' : '', name:'backOrQuit', click:this.back, isShow:true }
// ],
// //
// 'drts':[
// {label:'', name:'contectUs', click:this.contectUs, isShow:true},
// {label:'', name:'fieldPractice', click:this.fieldPractice, isShow:true},
// {label:'', name:'theoryQuiz', click:this.theoryQuiz, isShow:true},
// {label:'', name:'runPlanView', click:this.runPlanView, isShow:true},
// {label:'', name:'drivingPlan', click:this.drivingPlan, isShow:true},
// {label:'', name:'initialize', click:this.end, isShow:true},
// {label:'', name:'backBJD', click:this.backBJD, isShow:true}
// ],
// //
// 'zzww':[
// ]
// // <el-button v-if="isContest" size="small" :disabled="practiceDisabled" @click="fieldPractice"></el-button>
// // <el-button v-if="isContest" size="small" @click="goTheoryQuiz"></el-button>
// // showRegisterBookBtn() {
// // const roleList = ['STATION_SUPERVISOR', 'STATION_ASSISTANT', 'STATION_SIGNALER', 'STATION_SWITCH_MAN', 'STATION_MASTER', 'STATION_WORKER', 'DEVICE_MANAGER'];
// // return this.$route.query.lineCode === '16' && roleList.includes(this.$store.state.training.userRole);
// // }
// // srsandbox jxgm ===> noChat
// // 'say':{}, //
// // 'teaching':{} //
// },
allMenuList:[
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
{label:['16', '19'].includes(this.$route.query.lineCode) ? '修改系统时间' : '按计划行车', name:'modifyOrDriving', click:this.modifyOrDriving, isShow:true },
{label:'初始化', name:'initialize', click:this.end, isShow:true},
{label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
{label:'权限分发', name:'distribute', click:this.distribute, isShow:true},
{label:this.$route.query.projectDevice ? '退出' : '返回', name:'backOrQuit', click:this.back, isShow:true }
],
deviceif:false,
deviceShow: true
};
@ -392,7 +399,8 @@ export default {
// }
// });
// });
this.menuList = this.projectMenuMap[this.project];
// this.menuList = this.projectMenuMap[this.project];
this.menuList = this.allMenuList;
window.addEventListener('click', this.close, false);
},
beforeDestroy() {