|
@@ -15526,6 +15526,7 @@
|
|
:groupStudent="groupStudent"
|
|
:groupStudent="groupStudent"
|
|
:oid="oid"
|
|
:oid="oid"
|
|
:org="org"
|
|
:org="org"
|
|
|
|
+ @getCourseDetail="getCourseDetail"
|
|
@selectSLook="selectSLook"
|
|
@selectSLook="selectSLook"
|
|
@selectSWorks="selectSWorks"
|
|
@selectSWorks="selectSWorks"
|
|
@selectStudent="selectStudent"
|
|
@selectStudent="selectStudent"
|
|
@@ -20892,6 +20893,8 @@ export default {
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+ this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
|
|
|
|
+
|
|
if (type != 2) {
|
|
if (type != 2) {
|
|
loading.close();
|
|
loading.close();
|
|
if (
|
|
if (
|
|
@@ -21383,9 +21386,9 @@ export default {
|
|
_this.timer = setInterval(function() {
|
|
_this.timer = setInterval(function() {
|
|
// _this.getCourseDetail(2);
|
|
// _this.getCourseDetail(2);
|
|
if (_this.tcid) {
|
|
if (_this.tcid) {
|
|
- _this.getCourseGroup(gindex);
|
|
|
|
|
|
+ _this.getCourseGroup();
|
|
} else {
|
|
} else {
|
|
- _this.selectSWorks(gindex);
|
|
|
|
|
|
+ _this.selectSWorks();
|
|
}
|
|
}
|
|
|
|
|
|
_this.selectStudent();
|
|
_this.selectStudent();
|
|
@@ -21815,9 +21818,10 @@ export default {
|
|
this.IsFollow = res.data[0][0].follow == 1 ? false : true;
|
|
this.IsFollow = res.data[0][0].follow == 1 ? false : true;
|
|
if (!this.IsLookOpen) {
|
|
if (!this.IsLookOpen) {
|
|
this.setNavList();
|
|
this.setNavList();
|
|
- } else {
|
|
|
|
|
|
+ }
|
|
|
|
+ // else {
|
|
this.getCourseState(1);
|
|
this.getCourseState(1);
|
|
- }
|
|
|
|
|
|
+ // }
|
|
// || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
|
|
// || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
|
|
if ((this.IsFollow && this.tType == 2)) {
|
|
if ((this.IsFollow && this.tType == 2)) {
|
|
this.setContent2(false);
|
|
this.setContent2(false);
|
|
@@ -21915,8 +21919,11 @@ export default {
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "getCourseState", params)
|
|
.get(this.$store.state.api + "getCourseState", params)
|
|
.then(res => {
|
|
.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);
|
|
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);
|
|
console.log("this.chapInfoList", this.chapInfoList);
|
|
console.log("this.chapInfoList", this.chapInfoList);
|
|
this.setNavList();
|
|
this.setNavList();
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|