教学管理菜单调整

This commit is contained in:
dong 2022-10-12 10:33:36 +08:00
parent f20a7f9b66
commit d00133aa55
3 changed files with 46 additions and 7 deletions

View File

@ -57,7 +57,7 @@
</el-menu-item> </el-menu-item>
</template> </template>
<template v-else :to="child.path+'/'+grandchild.path"> <template v-else :to="child.path+'/'+grandchild.path">
<el-submenu v-for="(mgChild,mgdx) in grandchild.children" :key="mgChild" :index="item.redirect ? item.redirect : (item.path+'/'+child.path+'/'+grandchild.path+'/'+mgChild.path)" :show-timeout="100" :hide-timeout="100"> <el-submenu v-for="(mgChild,mgdx) in grandchild.children" :key="mgdx" :index="item.redirect ? item.redirect : (item.path+'/'+child.path+'/'+grandchild.path+'/'+mgChild.path)" :show-timeout="100" :hide-timeout="100">
<template slot="title"> <template slot="title">
<span v-if="mgChild.meta" slot="title">{{ $t(mgChild.meta.i18n) }}</span> <span v-if="mgChild.meta" slot="title">{{ $t(mgChild.meta.i18n) }}</span>
</template> </template>

View File

@ -1372,7 +1372,7 @@ export const asyncRouter = [
meta: { meta: {
i18n: 'router.frontProjectConfigManage' i18n: 'router.frontProjectConfigManage'
} }
}, }
] ]
}, },
// { // {
@ -1600,10 +1600,30 @@ export const asyncRouter = [
i18n: 'newRouter.teachingManagement' i18n: 'newRouter.teachingManagement'
}, },
children: [ children: [
{ { // 班级管理
path:'classManage', path:'classManage',
component: OrgClassManage, component: OrgClassManage,
hidden: true hidden: true
},
{ // 学生管理
path: 'studentManage',
component: Temporary,
hidden: true
},
{ // 实训教学管理
path: 'trainingManage',
component: Temporary,
hidden: true
},
{ // 理论题目管理
path: 'theoryManage',
component: Temporary,
hidden: true
},
{ // 考试管理
path: 'examManage',
component: Temporary,
hidden: true
} }
] ]
} }

View File

@ -8,7 +8,20 @@
<img :src="classIcon" class="teachMenu"> <img :src="classIcon" class="teachMenu">
<span class="teachMenuTitle" :style="{color: $route.path.includes('classManage')?'#5BDBFF': '#000'}">班级管理</span> <span class="teachMenuTitle" :style="{color: $route.path.includes('classManage')?'#5BDBFF': '#000'}">班级管理</span>
</el-menu-item> </el-menu-item>
<el-submenu index="2"> <el-menu-item index="5" @click="clickMenu">
<!-- <img :src="classIcon" class="teachMenu"> -->
<i class="el-icon-user" />
<span class="teachMenuTitle" :style="{color: $route.path.includes('studentManage')?'#5BDBFF': '#000'}">学生管理</span>
</el-menu-item>
<el-menu-item index="6" @click="clickMenu">
<img :src="ruleIcon" class="teachMenu">
<span class="teachMenuTitle" :style="{color: $route.path.includes('trainingManage')?'#5BDBFF': '#000'}">实训教学管理</span>
</el-menu-item>
<el-menu-item index="7" @click="clickMenu">
<img :src="lessonIcon" class="teachMenu">
<span class="teachMenuTitle" :style="{color: $route.path.includes('theoryManage')?'#5BDBFF': '#000'}">理论题目管理</span>
</el-menu-item>
<!-- <el-submenu index="2">
<template slot="title"> <template slot="title">
<img :src="lessonIcon" class="teachMenu"> <img :src="lessonIcon" class="teachMenu">
<span class="teachMenuTitle">课程管理</span> <span class="teachMenuTitle">课程管理</span>
@ -17,15 +30,15 @@
<el-menu-item index="2-1" class="lessonIcon" :style="{color: $route.path.includes('lessonManage')?'#5BDBFF': '#000'}" @click="clickMenu">发布课程管理</el-menu-item> <el-menu-item index="2-1" class="lessonIcon" :style="{color: $route.path.includes('lessonManage')?'#5BDBFF': '#000'}" @click="clickMenu">发布课程管理</el-menu-item>
<el-menu-item index="2-2" class="lessonIcon" :style="{color: $route.path.includes('draftLessonManage')?'#5BDBFF': '#000'}" @click="clickMenu">草稿课程管理</el-menu-item> <el-menu-item index="2-2" class="lessonIcon" :style="{color: $route.path.includes('draftLessonManage')?'#5BDBFF': '#000'}" @click="clickMenu">草稿课程管理</el-menu-item>
</el-menu-item-group> </el-menu-item-group>
</el-submenu> </el-submenu> -->
<el-menu-item index="3" @click="clickMenu"> <el-menu-item index="3" @click="clickMenu">
<img :src="examIcon" class="teachMenu"> <img :src="examIcon" class="teachMenu">
<span slot="title" class="teachMenuTitle" :style="{color: $route.path.includes('examManage')?'#5BDBFF': '#000'}">考试管理</span> <span slot="title" class="teachMenuTitle" :style="{color: $route.path.includes('examManage')?'#5BDBFF': '#000'}">考试管理</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="4" @click="clickMenu"> <!-- <el-menu-item index="4" @click="clickMenu">
<img :src="ruleIcon" class="teachMenu"> <img :src="ruleIcon" class="teachMenu">
<span slot="title" :style="{color: $route.path.includes('ruleManage')?'#5BDBFF': '#000'}" class="teachMenuTitle">评价管理</span> <span slot="title" :style="{color: $route.path.includes('ruleManage')?'#5BDBFF': '#000'}" class="teachMenuTitle">评价管理</span>
</el-menu-item> </el-menu-item> -->
</el-menu> </el-menu>
<div class="lessonManageOther"> <div class="lessonManageOther">
<router-view /> <router-view />
@ -79,6 +92,12 @@ export default {
this.$router.replace('/info/organization/examManage'); this.$router.replace('/info/organization/examManage');
} else if (val.index === '4') { } else if (val.index === '4') {
this.$router.replace('/info/organization/ruleManage'); this.$router.replace('/info/organization/ruleManage');
} else if (val.index === '5') {
this.$router.replace('/info/organization/studentManage');
} else if (val.index === '6') {
this.$router.replace('/info/organization/trainingManage');
} else if (val.index === '7') {
this.$router.replace('/info/organization/theoryManage');
} }
}, },
back() { back() {