|
@@ -511,6 +511,7 @@ export default {
|
|
|
data: null,
|
|
|
testJson: null,
|
|
|
testJsonCopy: null,
|
|
|
+ screenCopy:'',
|
|
|
testData: null,
|
|
|
toolIndex: null,
|
|
|
worksStudent: [],
|
|
@@ -807,11 +808,11 @@ export default {
|
|
|
this.dialogVisibleWordCloud = true
|
|
|
},
|
|
|
StudentWork(val){
|
|
|
- console.log('val',val);
|
|
|
+ console.log('splitScreenFn',val);
|
|
|
|
|
|
// console.log('val',JSON.parse(val));
|
|
|
console.log('toolType',this.toolType);
|
|
|
- // console.log('this.testData',this.testData);
|
|
|
+ console.log('this.worksStudent',this.worksStudent);
|
|
|
|
|
|
|
|
|
|
|
@@ -831,15 +832,16 @@ export default {
|
|
|
console.log('this.testJson',JSON.parse(JSON.stringify(this.testJsonCopy)));
|
|
|
|
|
|
this.showType = 0;
|
|
|
- // this.$emit("changeSplitScreenBehavior",{code: 1,
|
|
|
- // form: {
|
|
|
- // toolIndex: this.toolIndex,
|
|
|
- // courseType: this.courseType,
|
|
|
- // taskCount: this.taskCount,
|
|
|
- // type: this.showType,
|
|
|
- // showStatisticsType:this.showStatisticsType,
|
|
|
- // lookWorks:val.id
|
|
|
- // }})
|
|
|
+ this.$emit("changeSplitScreenBehavior",{code: 1,
|
|
|
+ form: {
|
|
|
+ toolType:this.toolType,
|
|
|
+ toolIndex: this.toolIndex,
|
|
|
+ courseType: this.courseType,
|
|
|
+ taskCount: this.taskCount,
|
|
|
+ type: this.showType,
|
|
|
+ showStatisticsType:this.showStatisticsType,
|
|
|
+ lookWorks:val.wid
|
|
|
+ }})
|
|
|
},
|
|
|
setData() {
|
|
|
if (this.show && this.toolIndex !== null) {
|
|
@@ -887,6 +889,7 @@ export default {
|
|
|
this.showType = type;
|
|
|
this.$emit("changeSplitScreenBehavior",{code: 1,
|
|
|
form: {
|
|
|
+ toolType:this.toolType,
|
|
|
toolIndex: this.toolIndex,
|
|
|
courseType: this.courseType,
|
|
|
taskCount: this.taskCount,
|
|
@@ -910,6 +913,7 @@ export default {
|
|
|
this.showStatisticsType = type;
|
|
|
this.$emit("changeSplitScreenBehavior",{code: 1,
|
|
|
form: {
|
|
|
+ toolType:this.toolType,
|
|
|
toolIndex: this.toolIndex,
|
|
|
courseType: this.courseType,
|
|
|
taskCount: this.taskCount,
|
|
@@ -927,8 +931,12 @@ export default {
|
|
|
if(data.toolType!==undefined){
|
|
|
this.toolType = data.toolType;
|
|
|
}
|
|
|
- if(data.lookWorks!==undefined){
|
|
|
- // this.StudentWork(item)
|
|
|
+
|
|
|
+ if(data.lookWorks !== undefined){
|
|
|
+ let work = this.worksStudent.find(e=>e.wid==data.lookWorks);
|
|
|
+ if(work){
|
|
|
+ this.StudentWork(work)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|