11wqe1 2 mesi fa
parent
commit
e084e0f9bd

+ 6 - 2
src/components/components/choseWordCloud.vue

@@ -1,6 +1,6 @@
 <template>
   <div v-loading="loading">
-	<div class="chart" id="charts_canvas" ref="chartRef"></div>
+	  <div class="chart" id="charts_canvas" ref="chartRef"></div>
   </div>
 </template>
 
@@ -33,6 +33,8 @@ export default {
   methods: {
     //添加云图
     addNephogram() {
+      if (!this.cloudData.length) return
+
         this.loading=true
       const _msg = `NOTICE
         Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
@@ -81,7 +83,7 @@ export default {
             {"value":4,"name":"饱和溶液","textStyle":{"color":"#e3adb9"}}
         ]
 
-        ## 课堂实录 
+        ## 学生回答 
         ${this.cloudData ? this.cloudData : ""}
         `;
       const _uuid = uuidv4();
@@ -136,6 +138,8 @@ export default {
         .catch(e => {
           console.log(e);
           this.$message.error("生成词云图失败");
+          this.loading=false
+
         })
         .finally(_ => {
         });

+ 9 - 3
src/components/components/choseWorksDetailDialog.vue

@@ -189,7 +189,7 @@
                     </div>
 									</div>
 								</div>
-
+                
                 <div v-if="[40].includes(toolType)" class="s_b_m_b_i_m_evaluation">
                   <div class="middleBox">
                     <div class="pfBox" v-for="(e, eIndex) in testData.rateJson" :key="eIndex">
@@ -260,6 +260,11 @@
                     <div  class="cont" v-if="testData && testData.tableJson && testData.tableJson.text" v-html="testData.tableJson.text"></div>                
                   </el-form>
                 </div>
+                <div v-if="[52].includes(toolType)" class="s_b_m_b_i_m_evaluation">
+                  <div v-if="testData && testData.wordJson && testData.wordJson.text">
+                    <div v-html="testData.wordJson.text"></div>
+                  </div>
+                </div>
                 <div v-if="[7,1].includes(toolType)" class="s_b_m_b_i_m_evaluation">
                   <!-- {{ testData }} -->
                   <!-- <img src="" alt=""> -->
@@ -665,6 +670,7 @@ export default {
 			toolList:[
 				{label:"选择题",value:45,img:require("../../assets/icon/thirdToolList/choose.png")},
 				{label:"表格",value:48,img:require("../../assets/icon/fourthToolList/table.png")},
+        {label:"文档",value:52,img:require("../../assets/icon/fourthToolList/text.png")},
 				{label:"学生分组",value:49,img:require("../../assets/icon/fourthToolList/group.png")},
 				{label:"电子白板",value:1,img:require("../../assets/icon/secondToolList/whiteBoard.png")},
 				{label:"问答题",value:15,img:require("../../assets/icon/thirdToolList/answer.png")},
@@ -1010,14 +1016,14 @@ export default {
         this.noWorksStudent = JSON.parse(
           JSON.stringify(this.noWorksSData[this.toolIndex])
         );
-        if(![52].includes(this.toolType)){
+        // if(![52].includes(this.toolType)){
           let _tempData = this.chapInfoListData[this.courseType].chapterInfo[0]
             .taskJson[this.taskCount].toolChoose[this.toolIndex];
           this.testData = _tempData ? _tempData : null;
           this.testJson = this.testData.testJson
             ? this.testData.testJson.testJson
             : null;
-        }
+        // }
       }
     },
     close() {

+ 2 - 2
src/components/easy2/commpont/markDialog.vue

@@ -1713,8 +1713,8 @@ export default {
   height: 100%;
 }
 .left {
-  /* overflow: auto; */
-  width: 310px;
+  overflow: auto;
+  width: 316px;
   /* border-right: 1px rgba(231, 231, 231, 1) solid; */
   padding: 20px 20px 0;
   box-sizing: border-box;

+ 2 - 2
src/components/studySutdentClass/commpont/markDialog.vue

@@ -1712,8 +1712,8 @@ export default {
   height: 100%;
 }
 .left {
-  /* overflow: auto; */
-  width: 310px;
+  overflow: auto;
+  width: 316px;
   /* border-right: 1px rgba(231, 231, 231, 1) solid; */
   padding: 20px 20px 0;
   box-sizing: border-box;