|
@@ -16356,7 +16356,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
openTask(s, n, i,ctype) {
|
|
|
- console.log(s, n, i,ctype)
|
|
|
if (this.IsFollow && this.tType == 2) {
|
|
|
this.$message.error("已经开启跟随模式,请认真跟堂听讲");
|
|
|
return;
|
|
@@ -16421,8 +16420,10 @@ export default {
|
|
|
this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
|
].isLook = true;
|
|
|
- this.addCourseState(3);
|
|
|
+ let yym = JSON.parse(JSON.stringify(this.chapInfoList))
|
|
|
+ this.addCourseState(3,yym);
|
|
|
}
|
|
|
+
|
|
|
for (let ci = 0; ci < this.isCloseList.length; ci++) {
|
|
|
this.isCloseList[ci].isClose = 0;
|
|
|
this.isCloseList[ci].isCloseBoolean = false;
|
|
@@ -17543,8 +17544,9 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- addCourseState(type) {
|
|
|
- let _state = this.chapInfoList;
|
|
|
+ addCourseState(type,val = '') {
|
|
|
+ let _state = val ? val : this.chapInfoList;
|
|
|
+
|
|
|
// this.courseType this.taskCount
|
|
|
if (type == 1 || type == 2) {
|
|
|
for (var i = 0; i < _state.length; i++) {
|