|
@@ -20,6 +20,7 @@
|
|
|
<div class="title">
|
|
|
<span>{{ changeName(courseId) }}</span>
|
|
|
<el-button
|
|
|
+ v-if="courseTotal > 1"
|
|
|
size="mini"
|
|
|
type="primary"
|
|
|
plain
|
|
@@ -2972,6 +2973,7 @@ export default {
|
|
|
disName: false, // 姓名是否禁止输入
|
|
|
disCard: false, // 身份证是否禁止输入
|
|
|
clickSectionItem: {}, // 点击节的内容
|
|
|
+ courseTotal: 0,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -4825,9 +4827,9 @@ export default {
|
|
|
this.nowTime = Number(new Date().getTime() / 1000).toFixed(0);
|
|
|
this.courseDetail(); //课程详情
|
|
|
this.getAnswerList(); //答疑列表
|
|
|
- this.answerTimer = setInterval(() => {
|
|
|
- this.getAnswerList();
|
|
|
- }, 5000);
|
|
|
+ // this.answerTimer = setInterval(() => {
|
|
|
+ // this.getAnswerList();
|
|
|
+ // }, 5000);
|
|
|
this.getMenuList(); //学习目录
|
|
|
this.getReMenuList(); //获取重修目录
|
|
|
this.getNoteList(); //获取节笔记
|
|
@@ -6963,8 +6965,10 @@ export default {
|
|
|
this.param.goodsId = this.goodsId;
|
|
|
this.param.gradeId = this.gradeId;
|
|
|
this.$request.courseCourseList(this.param).then(async (res) => {
|
|
|
- console.log(res.rows, "resresresres");
|
|
|
+ console.log(res, "resresresres");
|
|
|
this.courseList.push(...res.rows);
|
|
|
+ this.courseTotal = res.total
|
|
|
+ // console.log('courseTotal::', this.courseTotal)
|
|
|
if (!this.courseId) {
|
|
|
this.courseId = this.courseList[0].courseId;
|
|
|
}
|