|
@@ -69,6 +69,10 @@
|
|
</div>
|
|
</div>
|
|
<!-- 章节目录 -->
|
|
<!-- 章节目录 -->
|
|
<template v-if="tab.name == '1'">
|
|
<template v-if="tab.name == '1'">
|
|
|
|
+ <div v-if="teacherList && teacherList.length > 0">
|
|
|
|
+ <el-button v-for="(tea, index) in teacherList" :key="index" type="info" @click="activeFunc(tea.courseId)" round>
|
|
|
|
+ {{tea.aliasName}}</el-button>
|
|
|
|
+ </div>
|
|
<div class="right-box__body">
|
|
<div class="right-box__body">
|
|
<div
|
|
<div
|
|
class="item"
|
|
class="item"
|
|
@@ -2601,9 +2605,11 @@
|
|
}}</span>
|
|
}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-for="(courseItem, index) in goodsTeacher" :key="index">
|
|
<div class="height_style">
|
|
<div class="height_style">
|
|
<div
|
|
<div
|
|
- v-for="(item, index) in courseList"
|
|
|
|
|
|
+ v-for="(item, index) in courseItem.courseList"
|
|
|
|
+ v-if="item.show == 1"
|
|
:key="index"
|
|
:key="index"
|
|
class="list_style"
|
|
class="list_style"
|
|
:style="
|
|
:style="
|
|
@@ -2616,8 +2622,13 @@
|
|
<span style="font-weight: bold; font-size: 16px">{{
|
|
<span style="font-weight: bold; font-size: 16px">{{
|
|
item.courseName
|
|
item.courseName
|
|
}}</span>
|
|
}}</span>
|
|
|
|
+ <span v-if="courseItem.teaList && courseItem.teaList.length > 0" v-for="(tea, index) in courseItem.teaList" :key="index">
|
|
|
|
+ <el-button type="info" round>{{tea.aliasName}}</el-button>
|
|
|
|
+ </span
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<div id="printTable"></div>
|
|
<div id="printTable"></div>
|
|
<!-- <ToolBar></ToolBar> -->
|
|
<!-- <ToolBar></ToolBar> -->
|
|
@@ -2968,6 +2979,8 @@ export default {
|
|
needOpen: true, //是否需要展开第一章节
|
|
needOpen: true, //是否需要展开第一章节
|
|
menuIndex: [],
|
|
menuIndex: [],
|
|
clickLock: false,
|
|
clickLock: false,
|
|
|
|
+ goodsTeacher: [],
|
|
|
|
+ teacherList: [],
|
|
liveLast: null,
|
|
liveLast: null,
|
|
apply_post_disabled: false,
|
|
apply_post_disabled: false,
|
|
disName: false, // 姓名是否禁止输入
|
|
disName: false, // 姓名是否禁止输入
|
|
@@ -4841,7 +4854,13 @@ export default {
|
|
this.getMenuList(); //学习目录
|
|
this.getMenuList(); //学习目录
|
|
this.getReMenuList(); //获取重修目录
|
|
this.getReMenuList(); //获取重修目录
|
|
this.getNoteList(); //获取节笔记
|
|
this.getNoteList(); //获取节笔记
|
|
-
|
|
|
|
|
|
+ //更新老师信息
|
|
|
|
+ this.goodsTeacher.forEach((item) => {
|
|
|
|
+ if(item.courseList.some(x => x.courseId == this.courseId)){
|
|
|
|
+ this.teacherList = item.teaList
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log(this.teacherList,'this.teacherList');
|
|
resolve();
|
|
resolve();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -6975,6 +6994,76 @@ export default {
|
|
this.param.gradeId = this.gradeId;
|
|
this.param.gradeId = this.gradeId;
|
|
this.$request.courseCourseList(this.param).then(async (res) => {
|
|
this.$request.courseCourseList(this.param).then(async (res) => {
|
|
console.log(res, "resresresres");
|
|
console.log(res, "resresresres");
|
|
|
|
+ //获取商品双师资模板
|
|
|
|
+ this.$request.courseTeacherList({
|
|
|
|
+ goodsId: this.goodsId
|
|
|
|
+ }).then((res1) => {
|
|
|
|
+ console.log(res1,'res1');
|
|
|
|
+ if(res1.data && res1.data.length > 0){
|
|
|
|
+ //课程老师模板
|
|
|
|
+ let teacherTel = res1.data;
|
|
|
|
+ //商品课程
|
|
|
|
+ let courses = res.rows;
|
|
|
|
+ teacherTel.forEach((tea) => {
|
|
|
|
+ let dataList = []
|
|
|
|
+ let teacherList = []
|
|
|
|
+ courses.forEach((item) => {
|
|
|
|
+ if(tea.courseIds.search(item.courseId) > -1){
|
|
|
|
+ dataList.push(item)
|
|
|
|
+ teacherList = tea.courseList
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ let result = {
|
|
|
|
+ teaList:teacherList,
|
|
|
|
+ courseList:dataList
|
|
|
|
+ }
|
|
|
|
+ this.goodsTeacher.push(result)
|
|
|
|
+ })
|
|
|
|
+ if(this.goodsTeacher && this.goodsTeacher.length > 0){
|
|
|
|
+ let courseIds = []
|
|
|
|
+ this.goodsTeacher.forEach((item) => {
|
|
|
|
+ item.courseList.forEach((course) => {
|
|
|
|
+ courseIds.push(course.courseId)
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ if(courseIds.length > 0){
|
|
|
|
+ courses.forEach((item) => {
|
|
|
|
+ if(!courseIds.includes(item.courseId)){
|
|
|
|
+ let data = {
|
|
|
|
+ teaList:[],
|
|
|
|
+ courseList: []
|
|
|
|
+ }
|
|
|
|
+ data.courseList.push(item)
|
|
|
|
+ this.goodsTeacher.push(data)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ this.goodsTeacher.forEach((item) => {
|
|
|
|
+ if(item.courseList && item.courseList.length > 0){
|
|
|
|
+ item.courseList[0].show = 1
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ //没有双师资模板
|
|
|
|
+ res.rows.forEach((item) => {
|
|
|
|
+ item.show = 1
|
|
|
|
+ let data = {
|
|
|
|
+ teaList:[],
|
|
|
|
+ courseList: []
|
|
|
|
+ }
|
|
|
|
+ data.courseList.push(item)
|
|
|
|
+ this.goodsTeacher.push(data)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ console.log(this.goodsTeacher,'this.goodsTeacher');
|
|
|
|
+ this.goodsTeacher.forEach((item) => {
|
|
|
|
+ if(item.courseList.some(x => x.courseId == this.courseId)){
|
|
|
|
+ this.teacherList = item.teaList
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log(this.teacherList,'this.teacherList');
|
|
|
|
+ })
|
|
this.courseList.push(...res.rows);
|
|
this.courseList.push(...res.rows);
|
|
this.courseTotal = res.total
|
|
this.courseTotal = res.total
|
|
// console.log('courseTotal::', this.courseTotal)
|
|
// console.log('courseTotal::', this.courseTotal)
|
|
@@ -6988,6 +7077,7 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
|
|
download(url, fileName) {
|
|
download(url, fileName) {
|
|
let xhr = new XMLHttpRequest();
|
|
let xhr = new XMLHttpRequest();
|