Browse Source

实时课堂

lsc 2 years ago
parent
commit
97061f3b00
1 changed files with 25 additions and 23 deletions
  1. 25 23
      src/components/liveProjectDetail.vue

+ 25 - 23
src/components/liveProjectDetail.vue

@@ -519,13 +519,13 @@
             style="padding: 0 0 0 25px"
           >
             <div>
-              <div v-for="(tk, tIndex) in 7" :key="tIndex" class="tkCss">
+              <div v-for="(tk, tIndex) in tools[ppage - 1].choice" :key="tIndex" class="tkCss">
                 <div style="margin-right: 10px; font-size: 18px">
                   {{ tIndex + 1 }}、
                 </div>
                 <el-select v-model="tkAnswer[tIndex]" placeholder="请选择答案">
                   <el-option
-                    v-for="(tkA, tkAIndex) in tkAnswerBox"
+                    v-for="(tkA, tkAIndex) in tools[ppage - 1].tkAnswerBox"
                     :key="tkAIndex"
                     :label="tkA"
                     :value="tkA"
@@ -902,11 +902,11 @@ export default {
           ],
         },
         "", //问答题
-        { tools: [9], choice: 3 },
-        { tools: [9], choice: 3 }, //协同文档
-        { tools: [9], choice: 3 }, //思维导图
-        { tools: [9], choice: 3 },
-        { tools: [9], choice: 3 },
+        { tools: [9], choice: 3, answer: [2, 3] },
+        { tools: [9], choice: 3, answer: [2] }, //协同文档
+        { tools: [9], choice: 3, answer: [3] }, //思维导图
+        { tools: [9], choice: 3, answer: [1] },
+        { tools: [9], choice: 3, answer: [2] },
         { tools: [12] },
         {
           tools: [27],
@@ -919,6 +919,17 @@ export default {
             "Reason",
             "Feelings",
           ],
+          choice: 7,
+          tkAnswerBox: [
+            "Feelings",
+            "Weather",
+            "Activities before the festival",
+            "Origin",
+            "Food",
+            "Time",
+            "Activities during the festival",
+            "Reason",
+          ],
         },
         {
           file: [
@@ -948,16 +959,7 @@ export default {
         //1、电子白板 2、便签 3、思维导图 4、问卷调查 5、量规评分 6、协同文档 7、思维网格 8、素材库 9、选择题 10、倒计时 11、问答题 12、选人回答 13、分小组 14、老师对提交作业进行评价 15、问答 16、作业提交 17、学习资料 18、训练平台 19、目标管理 20、课程设计 21、编程平台 22、AI体验 23、python 24、AI平台
       ],
       rateList: [],
-      tkAnswerBox: [
-        "Feelings",
-        "Weather",
-        "Activities before the festival",
-        "Origin",
-        "Food",
-        "Time",
-        "Activities during the festival",
-        "Reason",
-      ],
+      tkAnswerBox: [],
       tkAnswer: [],
       imgUrl: "",
       imgFile: "",
@@ -1689,17 +1691,17 @@ export default {
         ) {
           if (this.tools[this.ppage - 1].tools.indexOf(1) != -1) {
             // this.toolCount = 1;
-            this.checkTools(1)
+            this.checkTools(1);
           } else if (this.tools[this.ppage - 1].tools.indexOf(3) != -1) {
-            this.checkTools(3)
+            this.checkTools(3);
           } else if (this.tools[this.ppage - 1].tools.indexOf(28) != -1) {
-            this.checkTools(28)
+            this.checkTools(28);
           } else if (this.tools[this.ppage - 1].tools.indexOf(4) != -1) {
-            this.checkTools(4)
+            this.checkTools(4);
           } else if (this.tools[this.ppage - 1].tools.indexOf(6) != -1) {
-            this.checkTools(6)
+            this.checkTools(6);
           } else if (this.tools[this.ppage - 1].tools.indexOf(7) != -1) {
-            this.checkTools(7)
+            this.checkTools(7);
           }
           // this.isBlock = 2;
         } else if (