mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
提交讲师
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
:default-active="activeMenu"
|
||||
router
|
||||
active-text-color="#3379FB"
|
||||
:default-openeds="['manageTodo','manageFinish','teacherTodo','teacherFinish','myqa','notice','mystudy', 'course', 'exam', 'u001', 'u002', 'u003', 'u004','mylecnotes','mycaseRecord']"
|
||||
:default-openeds="['manageTodo','manageFinish','teacherTodo','teacherFinish','lecturer','myqa','notice','mystudy', 'course', 'exam', 'u001', 'u002', 'u003', 'u004','mylecnotes','mycaseRecord']"
|
||||
class="el-menu-vertical"
|
||||
@open="handleOpen"
|
||||
@close="handleClose"
|
||||
@@ -166,7 +166,6 @@
|
||||
<span slot="title" class="textl">已审核的课程</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/need/qafinish">
|
||||
<!-- <i class="el-icon-menu"></i> -->
|
||||
<span slot="title" class="textl">已回答问题</span>
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
@@ -195,10 +194,13 @@
|
||||
</el-menu-item>
|
||||
-->
|
||||
</el-submenu>
|
||||
<!-- <el-menu-item index="/user/tools" v-show="curIdentity == 2">
|
||||
<i class="el-icon-menu"></i>
|
||||
<span slot="title">功能百宝箱</span>
|
||||
</el-menu-item> -->
|
||||
<el-menu-item index="/need/lecturer" v-show="curIdentity == 2">
|
||||
<template slot="title">
|
||||
<svg-icon icon-class="lecturer" style="font-size:16px"></svg-icon>
|
||||
<span>讲师认证</span>
|
||||
<div v-if="instructor==''" style="position: absolute;right: 70px;top: 0;background-color: red;width: 15px;height: 15px;color: #fff;border-radius: 50%;display: flex;justify-content: center;align-items: center">1</div>
|
||||
</template>
|
||||
</el-menu-item>
|
||||
<el-submenu index="u004" v-show="curIdentity == 2">
|
||||
<template slot="title">
|
||||
<i class="el-icon-s-grid" style="color:#0165FF"></i>
|
||||
@@ -381,6 +383,7 @@
|
||||
import { mapGetters } from 'vuex';
|
||||
import apiCourse from '../../api/modules/course.js';
|
||||
import apicourseStudy from "../../api/modules/courseStudy.js"
|
||||
import pageList from "../../api/modules/lecturer.js"
|
||||
import courseImage from "@/components/Course/courseImage.vue"
|
||||
import testUser from '@/utils/testUsers.js'
|
||||
export default {
|
||||
@@ -409,13 +412,16 @@ export default {
|
||||
badge: 0,
|
||||
isCollapse: false,
|
||||
lastStudy:{},
|
||||
overlayShow: false
|
||||
overlayShow: false,
|
||||
instructor:''
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$store.dispatch('refrashReviewed');
|
||||
this.$store.dispatch('refrashStudyTaskCount');
|
||||
this.getLastStudy();
|
||||
//获取讲师认证中条数
|
||||
this.instructorCertification()
|
||||
},
|
||||
mounted() {
|
||||
//console.log(this.userInfo.loginName,'this.userInfo.loginName');
|
||||
@@ -428,6 +434,12 @@ export default {
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
//讲师认证条数
|
||||
instructorCertification(){
|
||||
pageList({ teacherNo:'',courseName:'', pageIndex: 1, pageSize: 1}).then(res=>{
|
||||
this.instructor=res.data.count
|
||||
})
|
||||
},
|
||||
toCourseDetail(item){
|
||||
if(isNaN(item.courseType)){
|
||||
return `${this.webBaseUrl}/course/boeframe?id=${item.courseId}&type=${item.courseId}`;
|
||||
|
||||
Reference in New Issue
Block a user