Browse Source

阶段跟随

SanHQin 3 months ago
parent
commit
93e5bd98fa

+ 5 - 3
src/components/easy2/studyStudent.vue

@@ -21605,7 +21605,7 @@ export default {
             this.getCourseState(1);
           }
 
-          if (this.IsFollow && this.tType == 2) {
+					if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
             this.setContent2(false);
             let _followC = res.data[0][0].followC.split("-");
             if (
@@ -24615,8 +24615,10 @@ export default {
           } else if (behavior.code === 1) {
             //关于选择题的作业详细的操作
             // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
-            this.courseType = behavior.form.courseType;
-            this.taskCount = behavior.form.taskCount;
+						if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
+							this.courseType = behavior.form.courseType;
+            	this.taskCount = behavior.form.taskCount;
+						}
             this.$nextTick(() => {
               if (this.$refs.choseWorksDetailDialogRef.show) {
                 //已经打开了

+ 5 - 3
src/components/easy3/studyStudent.vue

@@ -17296,7 +17296,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.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
             this.setContent2(false);
             let _followC = res.data[0][0].followC.split("-");
             if (
@@ -20245,8 +20245,10 @@ export default {
           } else if (behavior.code === 1) {
             //关于选择题的作业详细的操作
             // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
-            this.courseType = behavior.form.courseType;
-            this.taskCount = behavior.form.taskCount;
+            if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
+							this.courseType = behavior.form.courseType;
+            	this.taskCount = behavior.form.taskCount;
+						}
             this.$nextTick(() => {
               if (this.$refs.choseWorksDetailDialogRef.show) {
                 //已经打开了

+ 6 - 3
src/components/studyStudent.vue

@@ -17288,7 +17288,7 @@ export default {
             this.getCourseState(1);
           }
 
-          if ((this.IsFollow && this.tType == 2) || this.splitScreenData.isOpen) {
+          if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
             this.setContent2(false);
             let _followC = res.data[0][0].followC.split("-");
             if (
@@ -20235,8 +20235,11 @@ export default {
           } else if (behavior.code === 1) {
             //关于选择题的作业详细的操作
             // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
-            this.courseType = behavior.form.courseType;
-            this.taskCount = behavior.form.taskCount;
+						if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
+							this.courseType = behavior.form.courseType;
+            	this.taskCount = behavior.form.taskCount;
+						}
+            
             this.$nextTick(() => {
               if (this.$refs.choseWorksDetailDialogRef.show) {
                 //已经打开了