2020-12-31 09:32:25 +08:00
|
|
|
<template>
|
2021-03-16 19:06:25 +08:00
|
|
|
<div>
|
|
|
|
<div class="title_content">{{ $store.state.user.companyName + '教学管理' }}</div>
|
2021-04-16 09:48:03 +08:00
|
|
|
<el-button type="text" class="lessonManageBack" @click="back">返回</el-button>
|
|
|
|
<div class="lessonManageInfo">
|
|
|
|
<el-menuclass="lessonManageMenu" default-active="2-1">
|
2021-03-11 18:09:26 +08:00
|
|
|
<el-menu-item index="1" @click="clickMenu">
|
2021-04-16 09:48:03 +08:00
|
|
|
<img :src="classIcon" class="teachMenu">
|
|
|
|
<span class="teachMenuTitle" :style="{color: $route.path.includes('classManage')?'#5BDBFF': '#000'}">班级管理</span>
|
2021-03-11 18:09:26 +08:00
|
|
|
</el-menu-item>
|
|
|
|
<el-submenu index="2">
|
|
|
|
<template slot="title">
|
2021-04-16 09:48:03 +08:00
|
|
|
<img :src="lessonIcon" class="teachMenu">
|
|
|
|
<span class="teachMenuTitle">课程管理</span>
|
2021-03-11 18:09:26 +08:00
|
|
|
</template>
|
|
|
|
<el-menu-item-group>
|
2021-04-16 09:48:03 +08:00
|
|
|
<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>
|
2021-03-11 18:09:26 +08:00
|
|
|
</el-menu-item-group>
|
|
|
|
</el-submenu>
|
|
|
|
<el-menu-item index="3" @click="clickMenu">
|
2021-04-16 09:48:03 +08:00
|
|
|
<img :src="examIcon" class="teachMenu">
|
|
|
|
<span slot="title" class="teachMenuTitle" :style="{color: $route.path.includes('examManage')?'#5BDBFF': '#000'}">考试管理</span>
|
2021-03-11 18:09:26 +08:00
|
|
|
</el-menu-item>
|
|
|
|
<el-menu-item index="4" @click="clickMenu">
|
2021-04-16 09:48:03 +08:00
|
|
|
<img :src="ruleIcon" class="teachMenu">
|
|
|
|
<span slot="title" :style="{color: $route.path.includes('ruleManage')?'#5BDBFF': '#000'}" class="teachMenuTitle">评价管理</span>
|
2021-03-11 18:09:26 +08:00
|
|
|
</el-menu-item>
|
2021-04-16 09:48:03 +08:00
|
|
|
</el-menu>
|
|
|
|
<div class="lessonManageOther">
|
|
|
|
<router-view />
|
|
|
|
</div>
|
|
|
|
</el-menuclass="lessonmanagemenu"></div>
|
2020-12-31 16:40:13 +08:00
|
|
|
</div>
|
2020-12-31 09:32:25 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-03-11 18:09:26 +08:00
|
|
|
import ClassIcon from '@/assets/teachManage/class.png';
|
|
|
|
import LessonIcon from '@/assets/teachManage/lesson.png';
|
|
|
|
import ExamIcon from '@/assets/teachManage/exam.png';
|
|
|
|
import RuleIcon from '@/assets/teachManage/rule.png';
|
2021-03-12 18:44:43 +08:00
|
|
|
|
2020-12-31 09:32:25 +08:00
|
|
|
export default {
|
|
|
|
name: 'Organization',
|
|
|
|
data() {
|
|
|
|
return {
|
2021-03-11 18:09:26 +08:00
|
|
|
classIcon: ClassIcon,
|
|
|
|
lessonIcon: LessonIcon,
|
|
|
|
examIcon: ExamIcon,
|
|
|
|
ruleIcon: RuleIcon,
|
2021-03-18 09:03:15 +08:00
|
|
|
|
2021-03-12 18:44:43 +08:00
|
|
|
mapIdList: [],
|
2021-03-16 19:06:25 +08:00
|
|
|
lessonList: [],
|
2021-03-18 09:03:15 +08:00
|
|
|
classList: []
|
|
|
|
|
2020-12-31 09:32:25 +08:00
|
|
|
};
|
|
|
|
},
|
2021-01-06 13:23:16 +08:00
|
|
|
computed: {
|
2021-03-11 18:09:26 +08:00
|
|
|
|
2021-03-16 19:06:25 +08:00
|
|
|
},
|
|
|
|
created() {
|
2021-03-18 09:03:15 +08:00
|
|
|
|
2021-01-06 13:23:16 +08:00
|
|
|
},
|
2021-03-18 09:03:15 +08:00
|
|
|
|
2021-03-11 18:09:26 +08:00
|
|
|
methods:{
|
|
|
|
clickMenu(val) {
|
2021-03-12 18:44:43 +08:00
|
|
|
if (val.index === '2-1') {
|
2021-03-18 09:03:15 +08:00
|
|
|
this.$router.replace('/info/organization/lessonManage');
|
2021-03-12 18:44:43 +08:00
|
|
|
} else if (val.index === '2-2') {
|
2021-03-18 09:03:15 +08:00
|
|
|
this.$router.replace('/info/organization/draftLessonManage');
|
2021-03-16 19:06:25 +08:00
|
|
|
} else if (val.index === '1') {
|
2021-03-18 09:03:15 +08:00
|
|
|
this.$router.replace('/info/organization/classManage');
|
2021-03-16 19:06:25 +08:00
|
|
|
} else if (val.index === '3') {
|
2021-03-18 09:03:15 +08:00
|
|
|
this.$router.replace('/info/organization/examManage');
|
|
|
|
} else if (val.index === '4') {
|
|
|
|
this.$router.replace('/info/organization/ruleManage');
|
2021-03-16 19:06:25 +08:00
|
|
|
}
|
2021-03-26 13:31:12 +08:00
|
|
|
},
|
|
|
|
back() {
|
|
|
|
this.$router.go(-1);
|
2020-12-31 09:32:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2021-04-16 09:48:03 +08:00
|
|
|
.back_box {height: 20px;z-index: 36;width: 40px;text-align: center;position: absolute;right: 20px;top: -20px;}
|
|
|
|
.title_content {width: 100%;margin: 20px 0 30px;text-align: center;font-size: 28px;font-weight: bold;}
|
|
|
|
.teachMenu{width: 18px;height: 18px;margin-right: 8px;}
|
|
|
|
.lessonIcon{font-size: 16px;}
|
|
|
|
.teachMenuTitle{font-size: 18px;}
|
|
|
|
.lessonManageBack{position: fixed;right: 20px;top: 70px;}
|
|
|
|
.lessonManageOther{width: calc(100% - 200px);margin-left: 200px;}
|
|
|
|
.lessonManageInfo{width: 96%;margin: 0 auto;overflow: hidden;}
|
|
|
|
.lessonManageMenu{width: 200px;float: left;}
|
2020-12-31 09:32:25 +08:00
|
|
|
</style>
|