代码调整
This commit is contained in:
parent
bea349a439
commit
4238abdeb5
@ -259,81 +259,88 @@ export default {
|
|||||||
// {value: 'richor_cxjs', label: '长兴技校'},
|
// {value: 'richor_cxjs', label: '长兴技校'},
|
||||||
// {value: 'hyd_railway', label: '哈盈达大铁'},
|
// {value: 'hyd_railway', label: '哈盈达大铁'},
|
||||||
// {value: 'wh', label: '武汉8号线'}
|
// {value: 'wh', label: '武汉8号线'}
|
||||||
projectMenuMap:{
|
// projectMenuMap:{
|
||||||
// 北交大
|
// // 北交大
|
||||||
'bjd':[
|
// 'bjd':[
|
||||||
{label:'切换客流数据', name:'changeFlowData', click:this.changeFlowData, isShow:true},
|
// {label:'切换客流数据', name:'changeFlowData', click:this.changeFlowData, isShow:true},
|
||||||
{label:'大客流策略', name:'bigLPFStrategy', click:this.bigLPFStrategy, isShow:true},
|
// {label:'大客流策略', name:'bigLPFStrategy', click:this.bigLPFStrategy, isShow:true},
|
||||||
{label:'权限分发', name:'distribute', click:this.distribute, isShow:true},
|
// {label:'权限分发', name:'distribute', click:this.distribute, isShow:true},
|
||||||
// {label:'留言板', name:'messageBoard', click:this.messageBoard, isShow:true},
|
// // {label:'留言板', name:'messageBoard', click:this.messageBoard, isShow:true},
|
||||||
{label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
|
// {label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
|
||||||
{label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
|
// {label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
|
||||||
{label:'初始化', name:'initialize', click:this.initialize, isShow:true},
|
// {label:'初始化', name:'initialize', click:this.initialize, isShow:true},
|
||||||
{label:'返回', name:'backBJD', click:this.backBJD, isShow:true}
|
// {label:'返回', name:'backBJD', click:this.backBJD, isShow:true}
|
||||||
// ATS行调工作站
|
// // ATS行调工作站
|
||||||
],
|
// ],
|
||||||
'designBjd':[
|
// 'designBjd':[
|
||||||
|
|
||||||
],
|
// ],
|
||||||
// 陪标项目
|
// // 陪标项目
|
||||||
'urtss':[
|
// 'urtss':[
|
||||||
|
|
||||||
],
|
// ],
|
||||||
// 微机联锁
|
// // 微机联锁
|
||||||
'wjls':[
|
// 'wjls':[
|
||||||
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
|
// {label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
|
||||||
{label:'经典案例分析', name:'caseAnalysis ', click:this.caseAnalysis, isShow:true},
|
// {label:'经典案例分析', name:'caseAnalysis ', click:this.caseAnalysis, isShow:true},
|
||||||
{label:'规范学习', name:'normativeStudy', click:this.normativeStudy, isShow:true},
|
// {label:'规范学习', name:'normativeStudy', click:this.normativeStudy, isShow:true},
|
||||||
{label:'占线板', name:'lineBoard', click:this.lineBoard, isShow:true},
|
// {label:'占线板', name:'lineBoard', click:this.lineBoard, isShow:true},
|
||||||
{label:this.$store.state.socket.simulationPause ? '开始' : '暂停', name:'startOrPause', click:this.startOrPause, 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:'initialize', click:this.end, isShow:true},
|
||||||
{label:'返回', name:'backWJLS', click:this.backWJLS, isShow:true}
|
// {label:'返回', name:'backWJLS', click:this.backWJLS, isShow:true}
|
||||||
],
|
// ],
|
||||||
'login':[
|
// 'login':[
|
||||||
{label:'路票', name:'trainTicket ', click:this.trainTicket, isShow:true},
|
// {label:'路票', name:'trainTicket ', click:this.trainTicket, isShow:true},
|
||||||
{label:'簿册', name:'registerBook ', click:this.registerBook, isShow:true},
|
// {label:'簿册', name:'registerBook ', click:this.registerBook, isShow:true},
|
||||||
// {label:'数字沙盘', name:'digitalStand ', click:this.digitalStand, isShow:true},
|
// // {label:'数字沙盘', name:'digitalStand ', click:this.digitalStand, isShow:true},
|
||||||
{label:'派班计划加载', name:'schedulingLoad', click:this.schedulingLoad, isShow:true},
|
// {label:'派班计划加载', name:'schedulingLoad', click:this.schedulingLoad, isShow:true},
|
||||||
{label:'派班计划预览', name:'schedulingView', click:this.schedulingView, isShow:true},
|
// {label:'派班计划预览', name:'schedulingView', click:this.schedulingView, isShow:true},
|
||||||
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
|
// {label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, isShow:true},
|
||||||
{label:'联系方式', name:'contectUs', click:this.contectUs, 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:['16', '19'].includes(this.$route.query.lineCode) ? '修改系统时间' : '按计划行车', name:'modifyOrDriving', click:this.modifyOrDriving, isShow:true },
|
||||||
{label:'初始化', name:'initialize', click:this.initialize, isShow:true},
|
// {label:'初始化', name:'initialize', click:this.initialize, isShow:true},
|
||||||
{label:this.$route.query.projectDevice ? '退出' : '返回', name:'backOrQuit', click:this.back, isShow:true }
|
// {label:this.$route.query.projectDevice ? '退出' : '返回', name:'backOrQuit', click:this.back, isShow:true }
|
||||||
|
|
||||||
],
|
// ],
|
||||||
'design':[
|
// 'design':[
|
||||||
{label:'路票', name:'trainTicket ', click:this.trainTicket, isShow:true},
|
// {label:'路票', name:'trainTicket ', click:this.trainTicket, isShow:true},
|
||||||
{label:'簿册', name:'registerBook ', click:this.registerBook, isShow:true},
|
// {label:'簿册', name:'registerBook ', click:this.registerBook, isShow:true},
|
||||||
{label:'设备视图', name:'jlmap3dmodel', click:this.jlmap3dmodel, 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:['16', '19'].includes(this.$route.query.lineCode) ? '修改系统时间' : '按计划行车', name:'modifyOrDriving', click:this.modifyOrDriving, isShow:true },
|
||||||
{label:'初始化', name:'initialize', click:this.initialize, isShow:true},
|
// {label:'初始化', name:'initialize', click:this.initialize, isShow:true},
|
||||||
{label:this.$route.query.projectDevice ? '退出' : '返回', name:'backOrQuit', click:this.back, isShow:true }
|
// {label:this.$route.query.projectDevice ? '退出' : '返回', name:'backOrQuit', click:this.back, isShow:true }
|
||||||
],
|
// ],
|
||||||
// 调度大赛
|
// // 调度大赛
|
||||||
'drts':[
|
// 'drts':[
|
||||||
{label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
|
// {label:'联系方式', name:'contectUs', click:this.contectUs, isShow:true},
|
||||||
{label:'实操练习', name:'fieldPractice', click:this.fieldPractice, isShow:true},
|
// {label:'实操练习', name:'fieldPractice', click:this.fieldPractice, isShow:true},
|
||||||
{label:'理论考试', name:'theoryQuiz', click:this.theoryQuiz, isShow:true},
|
// {label:'理论考试', name:'theoryQuiz', click:this.theoryQuiz, isShow:true},
|
||||||
{label:'运行图预览', name:'runPlanView', click:this.runPlanView, isShow:true},
|
// {label:'运行图预览', name:'runPlanView', click:this.runPlanView, isShow:true},
|
||||||
{label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
|
// {label:'按计划行车', name:'drivingPlan', click:this.drivingPlan, isShow:true},
|
||||||
{label:'初始化', name:'initialize', click:this.end, isShow:true},
|
// {label:'初始化', name:'initialize', click:this.end, isShow:true},
|
||||||
{label:'返回', name:'backBJD', click:this.backBJD, isShow:true}
|
// {label:'返回', name:'backBJD', click:this.backBJD, isShow:true}
|
||||||
],
|
// ],
|
||||||
// 郑州共赢
|
// // 郑州共赢
|
||||||
'zzww':[
|
// 'zzww':[
|
||||||
|
// ]
|
||||||
]
|
// // <el-button v-if="isContest" size="small" :disabled="practiceDisabled" @click="fieldPractice">实操练习</el-button>
|
||||||
// <el-button v-if="isContest" size="small" :disabled="practiceDisabled" @click="fieldPractice">实操练习</el-button>
|
// // <el-button v-if="isContest" size="small" @click="goTheoryQuiz">理论考试</el-button>
|
||||||
// <el-button v-if="isContest" size="small" @click="goTheoryQuiz">理论考试</el-button>
|
// // showRegisterBookBtn() {
|
||||||
// showRegisterBookBtn() {
|
// // const roleList = ['STATION_SUPERVISOR', 'STATION_ASSISTANT', 'STATION_SIGNALER', 'STATION_SWITCH_MAN', 'STATION_MASTER', 'STATION_WORKER', 'DEVICE_MANAGER'];
|
||||||
// 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);
|
||||||
// return this.$route.query.lineCode === '16' && roleList.includes(this.$store.state.training.userRole);
|
// // }
|
||||||
// }
|
// // srsandbox jxgm ===> noChat
|
||||||
// srsandbox jxgm ===> noChat
|
// // 'say':{}, // 苏安院
|
||||||
// 'say':{}, // 苏安院
|
// // 'teaching':{} // 教学通用
|
||||||
// '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,
|
deviceif:false,
|
||||||
deviceShow: true
|
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);
|
window.addEventListener('click', this.close, false);
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user