|
@@ -16,21 +16,13 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 章节目录 -->
|
|
<!-- 章节目录 -->
|
|
|
<template v-if="tab.name == '1'">
|
|
<template v-if="tab.name == '1'">
|
|
|
- <course-tree ref="courseTree" @backActiveSection="backActiveSection"> </course-tree>
|
|
|
|
|
|
|
+ <course-tree @backActiveSection="backActiveSection"> </course-tree>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 重修目录 -->
|
|
<!-- 重修目录 -->
|
|
|
- <!-- <template v-if="tab.name == '2' && rebuildCourseList.length">
|
|
|
|
|
- <Course-tree
|
|
|
|
|
- ref="courseTree"
|
|
|
|
|
- :courseList="rebuildCourseList"
|
|
|
|
|
- :goodsLearningOrder="businessData.goodsLearningOrder"
|
|
|
|
|
- :rebuild="1"
|
|
|
|
|
- :sectionItem.sync="sectionItem"
|
|
|
|
|
- :sectionMaxNum="goodsData.sectionMaxNum"
|
|
|
|
|
- @getResource="getResource"
|
|
|
|
|
- >
|
|
|
|
|
- </Course-tree>
|
|
|
|
|
- </template> -->
|
|
|
|
|
|
|
+ <template v-if="tab.name == '2'">
|
|
|
|
|
+ <course-tree @backActiveSection="backActiveSection" :rebuild="1">
|
|
|
|
|
+ </course-tree>
|
|
|
|
|
+ </template>
|
|
|
<template v-if="tab.name == '3'">
|
|
<template v-if="tab.name == '3'">
|
|
|
<answer-questions ref="answerQuestions"></answer-questions>
|
|
<answer-questions ref="answerQuestions"></answer-questions>
|
|
|
</template>
|
|
</template>
|
|
@@ -70,7 +62,7 @@ export default {
|
|
|
provide() {
|
|
provide() {
|
|
|
return {
|
|
return {
|
|
|
getPlayer: () => this.player,
|
|
getPlayer: () => this.player,
|
|
|
- getActiveSection: () => this.activeSection,
|
|
|
|
|
|
|
+ getActiveSection: () => this.activeSection
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -132,7 +124,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
// await this.confirmInfoDetail(); //判断开通信息推送是否成功
|
|
// await this.confirmInfoDetail(); //判断开通信息推送是否成功
|
|
|
await this.getRebuildCourse(); //获取重修列表
|
|
await this.getRebuildCourse(); //获取重修列表
|
|
|
- this.courseTabIndex = "1";
|
|
|
|
|
},
|
|
},
|
|
|
//提交完资料返回判断是否已开班
|
|
//提交完资料返回判断是否已开班
|
|
|
getGradeInfo() {
|
|
getGradeInfo() {
|
|
@@ -281,16 +272,18 @@ export default {
|
|
|
goodsId: this.goodsData.goodsId,
|
|
goodsId: this.goodsData.goodsId,
|
|
|
rebuild: 1,
|
|
rebuild: 1,
|
|
|
gradeId: this.goodsData.gradeId,
|
|
gradeId: this.goodsData.gradeId,
|
|
|
- orderGoodsId:this.goodsData.orderGoodsId
|
|
|
|
|
|
|
+ orderGoodsId: this.goodsData.orderGoodsId
|
|
|
})
|
|
})
|
|
|
.then(async res => {
|
|
.then(async res => {
|
|
|
if (res.data.length > 0) {
|
|
if (res.data.length > 0) {
|
|
|
- console.log(res.data,'resda')
|
|
|
|
|
- // this.rebuildCourseList = [res.data[0]];
|
|
|
|
|
|
|
+ console.log(res.data, "resda");
|
|
|
this.menuTab.splice(1, 0, {
|
|
this.menuTab.splice(1, 0, {
|
|
|
name: "2",
|
|
name: "2",
|
|
|
label: "重修目录"
|
|
label: "重修目录"
|
|
|
});
|
|
});
|
|
|
|
|
+ this.courseTabIndex = "2";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.courseTabIndex = "1";
|
|
|
}
|
|
}
|
|
|
resolve();
|
|
resolve();
|
|
|
})
|
|
})
|
|
@@ -307,7 +300,7 @@ export default {
|
|
|
this.player = player;
|
|
this.player = player;
|
|
|
},
|
|
},
|
|
|
backActiveSection(item) {
|
|
backActiveSection(item) {
|
|
|
- console.log(item,'ttt')
|
|
|
|
|
|
|
+ console.log(item, "ttt");
|
|
|
this.activeSection = item;
|
|
this.activeSection = item;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|