|
@@ -12008,6 +12008,7 @@
|
|
|
:groupStudent="groupStudent"
|
|
|
:oid="oid"
|
|
|
:org="org"
|
|
|
+ @getCourseDetail="getCourseDetail"
|
|
|
@selectSLook="selectSLook"
|
|
|
@selectSWorks="selectSWorks"
|
|
|
@selectStudent="selectStudent"
|
|
@@ -16642,6 +16643,8 @@ export default {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
|
.then((res) => {
|
|
|
+ this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
|
|
|
+
|
|
|
if (type != 2) {
|
|
|
loading.close();
|
|
|
if (
|
|
@@ -17064,9 +17067,9 @@ export default {
|
|
|
_this.timer = setInterval(function () {
|
|
|
// _this.getCourseDetail(2);
|
|
|
if (_this.tcid) {
|
|
|
- _this.getCourseGroup(gindex);
|
|
|
+ _this.getCourseGroup();
|
|
|
} else {
|
|
|
- _this.selectSWorks(gindex);
|
|
|
+ _this.selectSWorks();
|
|
|
}
|
|
|
|
|
|
_this.selectStudent();
|
|
@@ -17496,9 +17499,10 @@ export default {
|
|
|
this.IsFollow = res.data[0][0].follow == 1 ? false : true;
|
|
|
if (!this.IsLookOpen) {
|
|
|
this.setNavList();
|
|
|
- } else {
|
|
|
- this.getCourseState(1);
|
|
|
}
|
|
|
+ // else {
|
|
|
+ this.getCourseState(1);
|
|
|
+ // }
|
|
|
|
|
|
if ((this.IsFollow && this.tType == 2)) {
|
|
|
this.setContent2(false);
|
|
@@ -17596,8 +17600,11 @@ export default {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "getCourseState", params)
|
|
|
.then((res) => {
|
|
|
- if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
|
|
|
+ if (res.data[0].length > 0) {
|
|
|
this.chapInfoList = JSON.parse(res.data[0][0].state);
|
|
|
+ }
|
|
|
+ if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
|
|
|
+ // this.chapInfoList = JSON.parse(res.data[0][0].state);
|
|
|
this.setNavList();
|
|
|
this.$forceUpdate();
|
|
|
} else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
|