浏览代码

跟随模式跳转

11wqe1 2 月之前
父节点
当前提交
019e76e544

+ 12 - 6
src/components/easy2/studyStudent.vue

@@ -21397,6 +21397,9 @@ export default {
       this.getHomeWork();
       this.getCourseDetail(2);
       this.$forceUpdate();
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
     },
     openTask(s, n, i) {
       this.refreshAssembly();
@@ -21526,6 +21529,9 @@ export default {
           }</span>`
         );
       }
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
     },
 
     get(i) {
@@ -22118,9 +22124,9 @@ export default {
           _this.selectStudent();
           _this.selectSLook();
           _this.getPick();
-          if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-            _this.setCTask();
-          }
+          // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+          //   _this.setCTask();
+          // }
           if (_this.dialogVisibleGroup) {
             _this.groupJson =
               _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
@@ -22144,9 +22150,9 @@ export default {
             _this.selectSLook();
             _this.getPick();
             // _this.getSplitScreenData();
-            if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-              _this.setCTask();
-            }
+            // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+            //   _this.setCTask();
+            // }
             if (_this.dialogVisibleGroup) {
               _this.groupJson =
                 _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[

+ 12 - 6
src/components/easy3/studyStudent.vue

@@ -16978,6 +16978,9 @@ export default {
       this.getHomeWork();
       this.getCourseDetail(2);
       this.$forceUpdate();
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
     },
     openTask(s, n, i) {
       if (this.IsFollow && this.tType == 2) {
@@ -17087,6 +17090,9 @@ export default {
       this.selectPz();
       this.getHomeWork();
       this.getCourseDetail(2);
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
 			if(flag){
 				this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
 			}else{
@@ -17615,9 +17621,9 @@ export default {
           _this.selectSLook();
           _this.getPick();
 
-          if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-            _this.setCTask();
-          }
+          // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+          //   _this.setCTask();
+          // }
           if (_this.dialogVisibleGroup) {
             _this.groupJson =
               _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
@@ -17641,9 +17647,9 @@ export default {
             _this.selectSLook();
             _this.getPick();
 						// _this.getSplitScreenData();//获取分屏数据
-            if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-              _this.setCTask();
-            }
+            // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+            //   _this.setCTask();
+            // }
             if (_this.dialogVisibleGroup) {
               _this.groupJson =
                 _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[

+ 13 - 7
src/components/studyStudent.vue

@@ -13323,7 +13323,7 @@ export default {
 					this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
 				}
       }
-
+      
       // var b = this.$refs["bz" + k][0];
       // a.scrollTop = b.offsetTop;
     },
@@ -16914,6 +16914,9 @@ export default {
       this.getHomeWork();
       this.getCourseDetail(2);
       this.$forceUpdate();
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
     },
 
     openTask(s, n, i,ctype) {
@@ -17029,6 +17032,9 @@ export default {
       this.selectPz();
       this.getHomeWork();
       this.getCourseDetail(2);
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
 			if(flag){
 				this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
 			}else{
@@ -17559,9 +17565,9 @@ export default {
           _this.selectStudent();
           _this.selectSLook();
           _this.getPick();
-          if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-            _this.setCTask();
-          }
+          // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+          //   _this.setCTask();
+          // }
           if (_this.dialogVisibleGroup) {
             _this.groupJson =
               _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
@@ -17586,9 +17592,9 @@ export default {
             _this.getPick();
 						// _this.getSplitScreenData();
 
-            if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-              _this.setCTask();
-            }
+            // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+            //   _this.setCTask();
+            // }
             if (_this.dialogVisibleGroup) {
               _this.groupJson =
                 _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[

+ 12 - 6
src/components/studySutdentClass/studyStudent.vue

@@ -20875,6 +20875,9 @@ export default {
       this.getHomeWork();
       this.getCourseDetail(2);
       this.$forceUpdate();
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
     },
     openTask(s, n, i) {
       if (this.IsFollow && this.tType == 2) {
@@ -20989,6 +20992,9 @@ export default {
 			}else{
 				this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
 			}
+      if (this.courseDetail.userid == this.userid && this.IsFollow) {
+        this.setCTask();
+      }
     },
 
     get(i) {
@@ -21589,9 +21595,9 @@ export default {
           _this.selectSLook();
           _this.getPick();
 
-          if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-            _this.setCTask();
-          }
+          // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+          //   _this.setCTask();
+          // }
           if (_this.dialogVisibleGroup) {
             _this.groupJson =
               _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
@@ -21614,9 +21620,9 @@ export default {
             _this.selectStudent();
             _this.selectSLook();
             _this.getPick();
-            if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
-              _this.setCTask();
-            }
+            // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+            //   _this.setCTask();
+            // }
             if (_this.dialogVisibleGroup) {
               _this.groupJson =
                 _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[