Parcourir la source

分屏任务跟随

SanHQin il y a 2 mois
Parent
commit
6522230a28

+ 39 - 8
src/components/easy2/studyStudent.vue

@@ -9514,7 +9514,7 @@
                                     w.ateacher == userid,
                                 }"
                               >
-                                {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}    
+                                {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
                             </div> -->
 
                             <!-- @show="handleShow(toolIndex,wIndex)"
@@ -16294,7 +16294,7 @@ export default {
         #评分资料#
         评价标准:${std}
         评价细则:${laws}
-        作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text} 
+        作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
         任务描述:${taskDetail}
         工具描述:${toolDetail}
 
@@ -16372,15 +16372,15 @@ export default {
         }
 
         # Format example
-        == 
+        ==
         0 星,作业内容与作业要求无关;
         1 星,没有识别问题和需求;
         2 星,问题或需求没有被清晰理解或准确识别;
         3 星,问题或需求的一部分被识别;
         4 星,问题或需求的大部分被识别;
-        5 星,问题或需求都被识别。 
+        5 星,问题或需求都被识别。
         ==
-        
+
         `;
 
       let params = {
@@ -16866,6 +16866,7 @@ export default {
         this.courseType = i;
         // this.navId = l;
         this.taskCount = j;
+        this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
         this.selectPz();
         this.getHomeWork();
         this.getCourseDetail(2);
@@ -16911,7 +16912,7 @@ export default {
       //     type: 2
       //   }
       // });
-      
+
       // var b = this.$refs["bz" + k][0];
       // a.scrollTop = b.offsetTop;
     },
@@ -20594,6 +20595,7 @@ export default {
       this.courseType = s;
       this.navId = i;
       this.taskCount = n;
+      this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,navId:this.navId}})
       this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
         this.courseType
       ].task[this.taskCount].isOpen;
@@ -24584,6 +24586,7 @@ export default {
           this.$message.success("已开启分屏");
           this.studentFreePreview(true);
           this.OpenJobPreview(true);
+          this.changeSplitScreenBehavior({form:{}})
           // this.followingMode(true);
         } else {
           this.splitScreenData.isOpen = false;
@@ -24696,8 +24699,31 @@ export default {
       				});
 						}
 					}
+          if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
+            if(this.courseType !=behavior.form.courseType){
+              this.courseType = behavior.form.courseType;
+            }
+            if(this.taskCount !=behavior.form.taskCount){
+              this.taskCount = behavior.form.taskCount;
+            }
+
+              var a = document.scrollingElement;
+                let target = document.querySelector(`#gj${behavior.form.toolType}`);
+                if (target) {
+                  target.scrollIntoView(true);
+                  setTimeout(() => {
+                    a.scrollTop = 0
+                  }, 0);
+                }
+
+            if(behavior.form.navId){
+              this.navId = behavior.form.navId
+            }
+
+            this.setContent2(false)
+          }
         } else {
-        } 
+        }
       }
     },
     updateSplitScreenData(empty = 0) {
@@ -24764,7 +24790,12 @@ export default {
         this.splitScreenData.isOpen &&
         this.splitScreenData.uid == this.splitScreenData.myUid
       ) {
-        let _behavior = newValue;
+        let _behavior = null;
+        if(!newValue){
+          _behavior = {}
+        }else{
+          _behavior = newValue
+        }
         if(_behavior.form){
           _behavior.form.taskCount = this.taskCount;
           _behavior.form.courseType = this.courseType

+ 84 - 44
src/components/easy3/studyStudent.vue

@@ -7954,7 +7954,7 @@
                     margin-top: 20px;
                     box-shadow: 3px 1px 15px 3px #e0e0e0;
                   "
-                  :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}" 
+                  :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
                 >
                   <div class="e_add_top">
                     <div class="e_add_title" style="width: 100%">
@@ -11963,24 +11963,24 @@
         </div>
       </div>
     </el-dialog>
-    <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog' 
-    :englishVoiceJson='englishVoiceJson' 
-    :userid="userid" 
-    :id="id" 
-    :courseType="courseType" 
-    :taskCount="taskCount" 
-    :toolindex="toolindex" 
-    @selectSWorks="selectSWorks" 
+    <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
+    :englishVoiceJson='englishVoiceJson'
+    :userid="userid"
+    :id="id"
+    :courseType="courseType"
+    :taskCount="taskCount"
+    :toolindex="toolindex"
+    @selectSWorks="selectSWorks"
     @selectStudent="selectStudent"
     :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
-    <checkEnglishVoice :englishVoiceJson='englishVoiceJson'  
-    :userid="userid" 
+    <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
+    :userid="userid"
     :dialogVisibleENScore.sync='dialogVisibleENScore'
-    :commentDetail="commentDetail" 
-    :courseDetail="courseDetail" 
+    :commentDetail="commentDetail"
+    :courseDetail="courseDetail"
     :wScore="wScore"
     :scoreDetail="scoreDetail"
-    @selectSWorks="selectSWorks" 
+    @selectSWorks="selectSWorks"
     @selectStudent="selectStudent"></checkEnglishVoice>
 		<statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh"  @changeSplitScreenBehavior="changeSplitScreenBehavior"  :courseType="courseType" :taskCount="taskCount"/>
 		<choseWorksDetailDialog
@@ -12069,7 +12069,7 @@ const getFile = (url) => {
           resolve({ data: 1 });
         }else {
           resolve({ data: data.Body });
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
@@ -12478,7 +12478,7 @@ export default {
       englishVoiceJsonWork:[],
 			scoreList:{
 				listdata:[],
-				isScoreList:[],	
+				isScoreList:[],
 			},
 			classRoomHelperWidth: '85px',
 			orgArray:[],
@@ -12623,7 +12623,7 @@ export default {
           console.log(err);
           loading.close();
         }
-      );      
+      );
     },
     addToolChoose() {
       if (!this.checktoolArray.length) {
@@ -12728,7 +12728,7 @@ export default {
               type: "success",
             });
             this.toolDetailIndex = null;
-            
+
             this.updateToolDetailInner = "";
             this.getCourseDetail(2);
             this.$forceUpdate();
@@ -12757,7 +12757,7 @@ export default {
               message: "修改成功",
               type: "success",
             });
-            
+
             this.toolDetailIndex = i;
             this.isUpdateToolDetail1 = true;
             setTimeout(() => {
@@ -12808,6 +12808,7 @@ export default {
         this.selectPz();
         this.getHomeWork();
         this.getCourseDetail(2);
+        this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
 				if(flag){
 					if(flag2){
 						this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
@@ -14327,7 +14328,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
               .toolChoose[index].englishVoiceJson
           : {};
-        
+
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
       }
 			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
@@ -16157,7 +16158,7 @@ export default {
                 !this.navList[b].task[this.navList[b].task.length - 1].isLook
               ) {
                 if (
-                  this.courseDetail.userid != this.userid && 
+                  this.courseDetail.userid != this.userid &&
                   (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1))
@@ -16206,7 +16207,7 @@ export default {
             if (
               !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
                 .isLook &&
-              this.courseDetail.userid != this.userid && 
+              this.courseDetail.userid != this.userid &&
               (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
@@ -16232,7 +16233,7 @@ export default {
             var bbb = parseInt(this.courseType) + 1;
             if (
               !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
-              this.courseDetail.userid != this.userid && 
+              this.courseDetail.userid != this.userid &&
               (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
@@ -16250,7 +16251,7 @@ export default {
             if (
               !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
                 .isLook &&
-              this.courseDetail.userid != this.userid && 
+              this.courseDetail.userid != this.userid &&
               (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
@@ -16316,7 +16317,7 @@ export default {
       if (this.IsLookOpen) {
         if (
           !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
-          this.courseDetail.userid != this.userid && 
+          this.courseDetail.userid != this.userid &&
           (!this.courseDetail.course_teacher ||
           (this.courseDetail.course_teacher &&
           this.courseDetail.course_teacher.indexOf(this.userid) == -1))
@@ -16357,10 +16358,11 @@ export default {
 
 			let flag = this.courseType==s;
 
-	
+
       this.courseType = s;
       this.navId = i;
       this.taskCount = n;
+      this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,navId:this.navId}})
       this.navList[this.courseType].task[this.taskCount].isOpen =
         !this.navList[this.courseType].task[this.taskCount].isOpen;
       if (this.IsLookOpen) {
@@ -16881,7 +16883,7 @@ export default {
           _this.selectStudent();
           _this.selectSLook();
           _this.getPick();
-					
+
           if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
             _this.setCTask();
           }
@@ -17328,7 +17330,7 @@ export default {
             this.getCourseState(1);
           }
 
-					if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
+					if ((this.IsFollow && this.tType == 2)) {
             this.setContent2(false);
             let _followC = res.data[0][0].followC.split("-");
             if (
@@ -18050,7 +18052,7 @@ export default {
         //     index
         //   ].toolChoose[i].videoJson;
 				this.dialogVisibleVideo = true;
-				
+
       }
       //  else if (t == 15) {
       //   this.answerQ = "";
@@ -18388,7 +18390,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
               .toolChoose[i].englishList
           : {};
-        
+
         this.englishToolIndex = i;
         this.myAnList = this.myAnswerList1;
         this.engDialogVisible = true;
@@ -18411,7 +18413,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
               .toolChoose[i].englishVoiceJson
           : {};
-        
+
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
         this.EnglishVoiceDialog = true;
       } else if (t == 65) {
@@ -19099,11 +19101,11 @@ export default {
           a.href = url;
           a.download = f.name;
           a.click();
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
-      
+
       return;
       let url = f.url;
       let _url = "";
@@ -19176,11 +19178,11 @@ export default {
           a.href = url;
           a.download = name;
           a.click();
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
-      
+
       return;
       let _this = this;
       let _url = "";
@@ -19955,7 +19957,7 @@ export default {
             this.newEnglishList.engText = z.engText;
           }else{
             var a = res.data[0];
-            var ppp = JSON.parse(JSON.stringify(res.data[0])); 
+            var ppp = JSON.parse(JSON.stringify(res.data[0]));
             if(this.userMes[0].type == 2){
               var snum = 0;
               for(var i = 0;i<a.length;i++){
@@ -20116,7 +20118,7 @@ export default {
         _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
       }
       // console.log(_url)
-      return _url 
+      return _url
     },
 		getScoreList(){
 			let params = {
@@ -20199,7 +20201,7 @@ export default {
         this.splitScreenData.uid = this.splitScreenData.myUid;
         this.splitScreenData.behavior = null;
         let status = await this.updateSplitScreenData(0);
-
+        this.changeSplitScreenBehavior({form:{}})
         if (status == 1) {
           this.$message.success("已开启分屏");
           this.studentFreePreview(true);
@@ -20316,6 +20318,29 @@ export default {
       				});
 						}
 					}
+          if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
+            if(this.courseType !=behavior.form.courseType){
+              this.courseType = behavior.form.courseType;
+            }
+            if(this.taskCount !=behavior.form.taskCount){
+              this.taskCount = behavior.form.taskCount;
+            }
+
+              var a = document.scrollingElement;
+                let target = document.querySelector(`#gj${behavior.form.toolType}`);
+                if (target) {
+                  target.scrollIntoView(true);
+                  setTimeout(() => {
+                    a.scrollTop = 0
+                  }, 0);
+                }
+
+            if(behavior.form.navId){
+              this.navId = behavior.form.navId
+            }
+
+            this.setContent2(false)
+          }
         } else {
         }
       }
@@ -20384,7 +20409,22 @@ export default {
         this.splitScreenData.isOpen &&
         this.splitScreenData.uid == this.splitScreenData.myUid
       ) {
-        this.splitScreenData.behavior = newValue;
+        let _behavior = null;
+        if(!newValue){
+          _behavior = {}
+        }else{
+          _behavior = newValue
+        }
+        if(_behavior.form){
+          _behavior.form.taskCount = this.taskCount;
+          _behavior.form.courseType = this.courseType
+        }else{
+          _behavior.form = {
+            taskCount:this.taskCount,
+            courseType:this.courseType
+          }
+        }
+        this.splitScreenData.behavior = _behavior;
         this.updateSplitScreenData(0);
       }
     },
@@ -20444,7 +20484,7 @@ export default {
     this.timer = null;
     clearInterval(this.opertimer);
     this.opertimer = null;
-		this.updateSplitScreenData(1); 
+		this.updateSplitScreenData(1);
   },
   computed: {
     getHeight(){
@@ -23304,7 +23344,7 @@ export default {
 .checkbox>.cb-tabList{
 	display:flex;
 	align-items:center;
-	
+
 }
 
 .cb-tabList>div{
@@ -24893,7 +24933,7 @@ ol {
   display: flex;
   flex-direction: row;
   flex-wrap: nowrap;
-  align-items: flex-start;    
+  align-items: flex-start;
   padding: 0 20px 20px 20px;
   box-sizing: border-box;
 }
@@ -24982,7 +25022,7 @@ ol {
 }
 
 .isUpdateToolDetailClass{
- padding: 0 !important; 
+ padding: 0 !important;
 }
 
 .isUpdateToolDetailClass textarea{
@@ -25026,4 +25066,4 @@ ol {
   background: #409eff;
   color: #fff;
 }
-</style>
+</style>

+ 95 - 56
src/components/studyStudent.vue

@@ -86,7 +86,7 @@
             <div
               class="stageBoxCss"
               @click="get(stageIndex)"
-              :class="{ 
+              :class="{
                 // stageBoxIsCss: stageIndex == courseType,
                }"
             >
@@ -228,7 +228,7 @@
                       <div v-if="t.tool == 26">课程设计</div>
                       <div v-if="t.tool == 62">交互视频</div>
                       <div v-if="t.tool == 71">AI智能体</div>
-											
+
                     </div>
                   </div>
                 </div>
@@ -1005,7 +1005,7 @@
                               style="position: absolute;right: 33px;top: -30px;">
                               统计分析
                             </div>
-														
+
                           </div>
                           <div v-if="tooC == 45">
                             <img
@@ -7923,7 +7923,7 @@
                     margin-top: 20px;
                     box-shadow: 3px 1px 15px 3px #e0e0e0;
                   "
-                  :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}" 
+                  :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
                 >
                   <div class="e_add_top">
                     <div class="e_add_title" style="width: 100%">
@@ -11904,24 +11904,24 @@
         </div>
       </div>
     </el-dialog>
-    <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog' 
-    :englishVoiceJson='englishVoiceJson' 
-    :userid="userid" 
-    :id="id" 
-    :courseType="courseType" 
-    :taskCount="taskCount" 
-    :toolindex="toolindex" 
-    @selectSWorks="selectSWorks" 
+    <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
+    :englishVoiceJson='englishVoiceJson'
+    :userid="userid"
+    :id="id"
+    :courseType="courseType"
+    :taskCount="taskCount"
+    :toolindex="toolindex"
+    @selectSWorks="selectSWorks"
     @selectStudent="selectStudent"
     :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
-    <checkEnglishVoice :englishVoiceJson='englishVoiceJson'  
-    :userid="userid" 
+    <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
+    :userid="userid"
     :dialogVisibleENScore.sync='dialogVisibleENScore'
-    :commentDetail="commentDetail" 
-    :courseDetail="courseDetail" 
+    :commentDetail="commentDetail"
+    :courseDetail="courseDetail"
     :wScore="wScore"
     :scoreDetail="scoreDetail"
-    @selectSWorks="selectSWorks" 
+    @selectSWorks="selectSWorks"
     @selectStudent="selectStudent"></checkEnglishVoice>
 		<statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh"  @changeSplitScreenBehavior="changeSplitScreenBehavior"  :courseType="courseType" :taskCount="taskCount"/>
 		<choseWorksDetailDialog
@@ -12009,7 +12009,7 @@ const getFile = (url) => {
           resolve({ data: 1 });
         }else {
           resolve({ data: data.Body });
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
@@ -12416,7 +12416,7 @@ export default {
       englishVoiceJsonWork:[],
 			scoreList:{
 				listdata:[],
-				isScoreList:[],	
+				isScoreList:[],
 			},
       classRoomHelperWidth: '85px',
 			orgArray:[],
@@ -12601,7 +12601,7 @@ export default {
           console.log(err);
           loading.close();
         }
-      );      
+      );
     },
     addToolChoose() {
       if (!this.checktoolArray.length) {
@@ -12706,7 +12706,7 @@ export default {
               type: "success",
             });
             this.toolDetailIndex = null;
-            
+
             this.updateToolDetailInner = "";
             this.getCourseDetail(2);
             this.$forceUpdate();
@@ -12735,7 +12735,7 @@ export default {
               message: "修改成功",
               type: "success",
             });
-            
+
             this.toolDetailIndex = i;
             this.isUpdateToolDetail1 = true;
             setTimeout(() => {
@@ -12782,10 +12782,11 @@ export default {
         this.courseType = i;
         // this.navId = l;
         this.taskCount = j;
-				
+
         this.selectPz();
         this.getHomeWork();
         this.getCourseDetail(2);
+        this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
 				if(flag){
 					if(flag2){
 						this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
@@ -14259,7 +14260,7 @@ export default {
       }
     },
     async openScore(w, index) {
-			
+
       this.wScore = 0;
       this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
       this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
@@ -14304,13 +14305,13 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
               .toolChoose[index].englishVoiceJson
           : {};
-        
+
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
       }
 			this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
     },
     addComment(wid, uid, t,detail) {
-			
+
       if (this.commentText == "") {
         this.$message.error("请输入评论");
         return;
@@ -14393,7 +14394,7 @@ export default {
         });
     },
     openXz(w, i) {
-			
+
       this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
         .taskJson[this.taskCount].toolChoose[i].selectJson
         ? JSON.parse(
@@ -16141,7 +16142,7 @@ export default {
                 !this.navList[b].task[this.navList[b].task.length - 1].isLook
               ) {
                 if (
-                  this.courseDetail.userid != this.userid && 
+                  this.courseDetail.userid != this.userid &&
                   (!this.courseDetail.course_teacher ||
                   (this.courseDetail.course_teacher &&
                   this.courseDetail.course_teacher.indexOf(this.userid) == -1))
@@ -16341,13 +16342,13 @@ export default {
       }
 			let flag = this.courseType==s;
 
-			
+
       this.courseType = s;
-			
+
       this.navId = i;
       this.taskCount = n;
-			
-			
+      this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,navId:this.navId}})
+
       if(ctype == 2){
         this.navList[s].task[n].isOpen = true
       }else{
@@ -17049,7 +17050,7 @@ export default {
           this.$message.error("添加失败");
           console.error(err);
         });
-				
+
     },
     setReplyIndex(id, i) {
       this.replyIndex = i;
@@ -17319,7 +17320,7 @@ export default {
             this.getCourseState(1);
           }
 
-          if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
+          if ((this.IsFollow && this.tType == 2)) {
             this.setContent2(false);
             let _followC = res.data[0][0].followC.split("-");
             if (
@@ -17588,7 +17589,7 @@ export default {
       this.tableJson = JSON.parse(f.works);
       this.dialogVisibleTable3 = true;
 			this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
-	
+
     },
     doUrl(url, i) {
       this.isClickNav = "";
@@ -17999,7 +18000,7 @@ export default {
         });
     },
     openTools(t, i, index, c, sName,id) {
-			
+
       var z = JSON.parse(c);
       this.noteName = sName;
       if (t == 4) {
@@ -18378,7 +18379,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
               .toolChoose[i].englishList
           : {};
-        
+
         this.englishToolIndex = i;
         this.myAnList = this.myAnswerList1;
         this.engDialogVisible = true;
@@ -18401,7 +18402,7 @@ export default {
           ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
               .toolChoose[i].englishVoiceJson
           : {};
-        
+
         this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
         this.EnglishVoiceDialog = true;
       } else if (t == 65) {
@@ -18950,7 +18951,7 @@ export default {
     },
     async checkFileFull1(t, f) {
 
-			
+
 
       this.fullDialogVisible = true;
       if (t == 6) {
@@ -19093,11 +19094,11 @@ export default {
           a.href = url;
           a.download = f.name;
           a.click();
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
-      
+
       return;
       let url = f.url;
       let _url = "";
@@ -19165,11 +19166,11 @@ export default {
           a.href = url;
           a.download = name;
           a.click();
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
-      
+
       return;
       let _this = this;
       let _url = "";
@@ -19900,7 +19901,7 @@ export default {
     },
     setEngText(i){
       this.newEngIndex = i;
-			
+
       this.$forceUpdate();
     },
     addCorrect(){
@@ -19944,7 +19945,7 @@ export default {
             this.newEnglishList.engText = z.engText;
           }else{
             var a = res.data[0];
-            var ppp = JSON.parse(JSON.stringify(res.data[0])); 
+            var ppp = JSON.parse(JSON.stringify(res.data[0]));
             if(this.userMes[0].type == 2){
               var snum = 0;
               for(var i = 0;i<a.length;i++){
@@ -20105,7 +20106,7 @@ export default {
         _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
       }
       // console.log(_url)
-      return _url 
+      return _url
     },
 		getScoreList(){
 			let params = {
@@ -20188,7 +20189,7 @@ export default {
         this.splitScreenData.uid = this.splitScreenData.myUid;
         this.splitScreenData.behavior = null;
         let status = await this.updateSplitScreenData(0);
-
+        this.changeSplitScreenBehavior({form:{}})
         if (status == 1) {
           this.$message.success("已开启分屏");
           this.studentFreePreview(true);
@@ -20305,6 +20306,29 @@ export default {
       				});
 						}
 					}
+          if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
+            if(this.courseType !=behavior.form.courseType){
+              this.courseType = behavior.form.courseType;
+            }
+            if(this.taskCount !=behavior.form.taskCount){
+              this.taskCount = behavior.form.taskCount;
+            }
+
+              var a = document.scrollingElement;
+                let target = document.querySelector(`#gj${behavior.form.toolType}`);
+                if (target) {
+                  target.scrollIntoView(true);
+                  setTimeout(() => {
+                    a.scrollTop = 0
+                  }, 0);
+                }
+
+            if(behavior.form.navId){
+              this.navId = behavior.form.navId
+            }
+
+            this.setContent2(false)
+          }
         } else {
         }
       }
@@ -20374,7 +20398,22 @@ export default {
         this.splitScreenData.isOpen &&
         this.splitScreenData.uid == this.splitScreenData.myUid
       ) {
-        this.splitScreenData.behavior = newValue;
+        let _behavior = null;
+        if(!newValue){
+          _behavior = {}
+        }else{
+          _behavior = newValue
+        }
+        if(_behavior.form){
+          _behavior.form.taskCount = this.taskCount;
+          _behavior.form.courseType = this.courseType
+        }else{
+          _behavior.form = {
+            taskCount:this.taskCount,
+            courseType:this.courseType
+          }
+        }
+        this.splitScreenData.behavior = _behavior;
         this.updateSplitScreenData(0);
       }
     },
@@ -20382,7 +20421,7 @@ export default {
       this.IsLookOpen = flag;
 			this.updateLookOpen();
 			this.followingMode(flag)
-      
+
     },
     OpenJobPreview(flag) {
       this.sIsOpen = flag;
@@ -20435,7 +20474,7 @@ export default {
     this.timer = null;
     clearInterval(this.opertimer);
     this.opertimer = null;
-		this.updateSplitScreenData(1); 
+		this.updateSplitScreenData(1);
   },
   computed: {
     contentConvent() {
@@ -20533,7 +20572,7 @@ export default {
           //       }else if(a[k].removed == true){
           //         w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
           //       }
-              
+
           //   }else{
           //     if(k == a.length - 1){
           //       if(a[k].added == true){
@@ -20557,7 +20596,7 @@ export default {
         return c;
       };
     },
-		
+
   },
   mounted() {
     document.body.addEventListener("click", (e) => {
@@ -23287,7 +23326,7 @@ export default {
 .checkbox>.cb-tabList{
 	display:flex;
 	align-items:center;
-	
+
 }
 
 .cb-tabList>div{
@@ -24899,7 +24938,7 @@ ol {
   display: flex;
   flex-direction: row;
   flex-wrap: nowrap;
-  align-items: flex-start;    
+  align-items: flex-start;
   padding: 0 20px 20px 20px;
   box-sizing: border-box;
 }
@@ -24988,7 +25027,7 @@ ol {
 }
 
 .isUpdateToolDetailClass{
- padding: 0 !important; 
+ padding: 0 !important;
 }
 
 .isUpdateToolDetailClass textarea{
@@ -25032,4 +25071,4 @@ ol {
   background: #409eff;
   color: #fff;
 }
-</style>
+</style>