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-03-26 13:31:12 +08:00
|
|
|
<el-button type="text" style="position: fixed;right: 20px;top: 70px;" @click="back">返回</el-button>
|
2021-03-30 15:51:15 +08:00
|
|
|
<div style="width: 96%;margin: 0 auto;overflow: hidden;">
|
2021-03-11 18:09:26 +08:00
|
|
|
<el-menu
|
|
|
|
style="width: 200px;float: left;"
|
2021-03-18 09:03:15 +08:00
|
|
|
default-active="2-1"
|
2021-03-11 18:09:26 +08:00
|
|
|
>
|
|
|
|
<el-menu-item index="1" @click="clickMenu">
|
2021-03-16 19:06:25 +08:00
|
|
|
<img :src="classIcon" style="width: 18px;height: 18px;margin-right: 8px;">
|
2021-03-18 09:03:15 +08:00
|
|
|
<span style="font-size: 18px;" :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-03-16 19:06:25 +08:00
|
|
|
<img :src="lessonIcon" style="width: 18px;height: 18px;margin-right: 8px;">
|
|
|
|
<span style="font-size: 18px;">课程管理</span>
|
2021-03-11 18:09:26 +08:00
|
|
|
</template>
|
|
|
|
<el-menu-item-group>
|
2021-03-18 09:03:15 +08:00
|
|
|
<el-menu-item index="2-1" style="font-size: 16px;" :style="{color: $route.path.includes('lessonManage')?'#5BDBFF': '#000'}" @click="clickMenu">发布课程管理</el-menu-item>
|
|
|
|
<el-menu-item index="2-2" style="font-size: 16px;" :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-03-16 19:06:25 +08:00
|
|
|
<img :src="examIcon" style="width: 18px;height: 18px;margin-right: 8px;">
|
2021-03-18 09:03:15 +08:00
|
|
|
<span slot="title" style="font-size: 18px;" :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-03-16 19:06:25 +08:00
|
|
|
<img :src="ruleIcon" style="width: 18px;height: 18px;margin-right: 8px;">
|
2021-03-18 09:03:15 +08:00
|
|
|
<span slot="title" :style="{color: $route.path.includes('ruleManage')?'#5BDBFF': '#000'}" style="font-size: 18px;">评价管理</span>
|
2021-03-11 18:09:26 +08:00
|
|
|
</el-menu-item>
|
|
|
|
</el-menu>
|
|
|
|
<div style="width: calc(100% - 200px);margin-left: 200px;">
|
2021-03-18 09:03:15 +08:00
|
|
|
<router-view />
|
2021-03-11 18:09:26 +08:00
|
|
|
</div>
|
|
|
|
</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-01-05 13:56:51 +08:00
|
|
|
.back_box {
|
2021-03-11 18:09:26 +08:00
|
|
|
height: 20px;
|
2021-01-05 13:56:51 +08:00
|
|
|
z-index: 36;
|
2021-01-12 10:19:43 +08:00
|
|
|
width: 40px;
|
2021-01-05 13:56:51 +08:00
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
2021-03-11 18:09:26 +08:00
|
|
|
right: 20px;
|
|
|
|
top: -20px;
|
2021-01-06 13:23:16 +08:00
|
|
|
}
|
2021-03-16 19:06:25 +08:00
|
|
|
.title_content {
|
|
|
|
width: 100%;
|
|
|
|
margin: 20px 0 30px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 28px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-12-31 09:32:25 +08:00
|
|
|
</style>
|