|
@@ -310,7 +310,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="toolType == 15">
|
|
|
- <choseWordCloud :data="wordCloudData" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
|
|
|
+ <choseWordCloud :data="cy" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -735,7 +735,18 @@ export default {
|
|
|
}
|
|
|
return _result;
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ cy(){
|
|
|
+ let _result = []
|
|
|
+ if(this.toolType===15){
|
|
|
+ let array = this.worksStudent.map(e=>{
|
|
|
+ return {name: JSON.parse(e.works)[0].answer}
|
|
|
+ });
|
|
|
+ _result = array;
|
|
|
+ }
|
|
|
+
|
|
|
+ return _result;
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
worksStudentData: {
|
|
@@ -785,10 +796,10 @@ export default {
|
|
|
},
|
|
|
openWordCloud() {
|
|
|
|
|
|
- let array = this.worksStudent.map(e=>{
|
|
|
- return {name: JSON.parse(e.works)[0].answer}
|
|
|
- });
|
|
|
- console.log('array',array);
|
|
|
+ // let array = this.worksStudent.map(e=>{
|
|
|
+ // return {name: JSON.parse(e.works)[0].answer}
|
|
|
+ // });
|
|
|
+ // console.log('array',array);
|
|
|
|
|
|
// for (var i = 0; i < this.worksStudent.length; i++) {
|
|
|
// let works = JSON.parse(this.worksStudent[i].works)[0].answer;
|
|
@@ -804,15 +815,15 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
- this.wordCloudData = array;
|
|
|
+ // this.wordCloudData = array;
|
|
|
this.dialogVisibleWordCloud = true
|
|
|
},
|
|
|
StudentWork(val){
|
|
|
- console.log('splitScreenFn',val);
|
|
|
+ // console.log('splitScreenFn',val);
|
|
|
|
|
|
// console.log('val',JSON.parse(val));
|
|
|
- console.log('toolType',this.toolType);
|
|
|
- console.log('this.worksStudent',this.worksStudent);
|
|
|
+ // console.log('toolType',this.toolType);
|
|
|
+ // console.log('this.worksStudent',this.worksStudent);
|
|
|
|
|
|
|
|
|
|
|
@@ -829,7 +840,7 @@ export default {
|
|
|
this.testJsonCopy=JSON.parse(val.works)[0]
|
|
|
}
|
|
|
|
|
|
- console.log('this.testJson',JSON.parse(JSON.stringify(this.testJsonCopy)));
|
|
|
+ // console.log('this.testJson',JSON.parse(JSON.stringify(this.testJsonCopy)));
|
|
|
|
|
|
this.showType = 0;
|
|
|
this.$emit("changeSplitScreenBehavior",{code: 1,
|