diff --git a/src/scripts/ProjectConfig.js b/src/scripts/ProjectConfig.js index e10d7eb89..d18cab427 100644 --- a/src/scripts/ProjectConfig.js +++ b/src/scripts/ProjectConfig.js @@ -408,6 +408,7 @@ export const MainBodyNoShow = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'd export const GenerateRouteProjectList = ['jsxt', 'refereeJsxt'];// 需要在公共路由中生成登录页面的项目 export const ProjectLoginStyleList = ['jsxt', 'refereeJsxt', 'gzb', 'designgzb', 'xty', 'designxty', 'xadt', 'designxadt', 'tky', 'designtky', 'jyd', 'designjyd', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'drts', 'hyd', 'designhyd', 'nty', 'designnty', 'bjd', 'designbjd']; // 登录页样式 export const NoQrcodeList = ['heb', 'designheb']; +export const NoSimulationQrCodeList = ['heb', 'bjd']; export const goOtherPlatformMenu = { // 导航栏快速切换平台 login: '/design/login', design: '/login', diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 42867cdb8..f6362b26d 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -7,22 +7,21 @@
菜单
- {{ $t('display.demon.deviceView') }} + {{ $t('display.demon.deviceView') }} - {{ jl3dname }} + {{ jl3dname }} {{ $t('display.demon.passengerflow') }} - {{ $t('display.demon.maintainer') }} + {{ $t('display.demon.maintainer') }} - 生成二维码 - 成员管理 - 设备管理 - 教学系统 - 考试系统 + 生成二维码 + 成员管理 + 设备管理 + 教学系统 + 考试系统 @@ -60,10 +59,9 @@ import { exitFullscreen } from '@/utils/screen'; import { getSimulationQrcode } from '@/api/jointSimulation'; import { getSessionStorage } from '@/utils/auth'; import { refereeExitSimulation, quitCurrentRace, startPracticalCompetition, submitPracticalCompetition } from '@/api/competition'; -import { NoQrcodeList } from '@/scripts/ProjectConfig'; +import { NoSimulationQrCodeList } from '@/scripts/ProjectConfig'; import { getPublishLessonListByMapId } from '@/api/jmap/lesson'; import localStore from 'storejs'; -import { OperateMode } from '@/scripts/ConstDic'; export default { name: 'MenuDemonJoint', @@ -119,12 +117,11 @@ export default { chatShow: true, jsStart: true, isGoback: false, - noQrcodeList: NoQrcodeList, + noSimulationQrCodeList: NoSimulationQrCodeList, isShow3dmodel :false, jl3dname: this.$t('display.demon.threeDimensionalView'), hoverBtn: false, - btnWidth: 0, - faultMode: false + btnWidth: 0 }; }, computed: { @@ -155,7 +152,7 @@ export default { if ((this.isShow3dmodel && this.isShowScheduling) || (this.isShowScheduling || this.isDriver) || (this.isShowScheduling || this.isStationSupervisor) || - (this.isAdmin && !this.noQrcodeList.includes(this.project)) || + (this.isAdmin && !this.noSimulationQrCodeList.includes(this.project)) || (this.isAdmin) || (this.isAdmin && this.isProject) || this.isDeviceLogin || this.$route.query.type === 'IM') { num++; } @@ -165,6 +162,23 @@ export default { const typeList = ['LW', 'CW']; return typeList.includes(this.$route.query.type); }, + examSystemShow() { + const typeList = ['LW', 'CW', 'IM']; + return typeList.includes(this.$route.query.type); + }, + teachSystemShow() { + const typeList = ['LW', 'CW']; + return typeList.includes(this.$route.query.type); + }, + memberManageShow() { + return this.isAdmin && this.$route.query.type !== 'ILW' && this.project !== 'bjd'; + }, + deviceManageShow() { + return (this.isAdmin && this.isProject && this.project !== 'bjd') || this.$route.query.type === 'ILW'; + }, + qrCodeShow() { + return this.isAdmin && !this.noSimulationQrCodeList.includes(this.project) && this.$route.query.type !== 'ILW'; + }, isDisable() { return this.$store.state.training.started; }, @@ -503,14 +517,6 @@ export default { }); } }, - changeOperateMode() { - this.faultMode = !this.faultMode; - let mode = OperateMode.NORMAL; - if (this.faultMode) { - mode = OperateMode.FAULT; - } - this.$store.dispatch('training/changeOperateMode', { mode: mode }); - }, loadRunPlan() { this.$emit('runPlanLoadShow'); },