zengyicheng 2 年之前
父節點
當前提交
38a308182d
共有 1 個文件被更改,包括 31 次插入8 次删除
  1. 31 8
      src/components/pages/addCourse.vue

+ 31 - 8
src/components/pages/addCourse.vue

@@ -3203,7 +3203,14 @@
                   :key="sIndex"
                   @click="setRightAnswer(s, stIndex, sIndex)"
                 >
-                  <div>{{ s }}</div>
+                  <el-tooltip
+                    class="item"
+                    effect="light"
+                    :content="s"
+                    placement="top"
+                  >
+                    <div>{{ s }}</div>
+                  </el-tooltip>
                 </div>
               </div>
               <div class="card">
@@ -3220,7 +3227,14 @@
                     class="cardCss"
                   >
                     <div class="isCard" @click="returnCard(r, stIndex, rIndex)">
-                      <div>{{ r }}</div>
+                      <el-tooltip
+                        class="item"
+                        effect="light"
+                        :content="r"
+                        placement="top"
+                      >
+                        <div>{{ r }}</div>
+                      </el-tooltip>
                     </div>
                     <div>{{ rIndex + 1 }}</div>
                   </div>
@@ -5302,11 +5316,11 @@ export default {
 
       if (i == 47) {
         this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
-            itemTaskIndex
-          ].toolChoose[toolIndex].tool = [];
-          this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
-            itemTaskIndex
-          ].toolChoose[toolIndex].tool.push(i);
+          itemTaskIndex
+        ].toolChoose[toolIndex].tool = [];
+        this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
+          itemTaskIndex
+        ].toolChoose[toolIndex].tool.push(i);
       }
 
       this.$forceUpdate();
@@ -6129,7 +6143,9 @@ export default {
       this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
         this.taskCount
       ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
-      this.sentenceList = [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
+      this.sentenceList = [
+        { sentenceTitle: "", addSentence: [], rightAnswer: [] },
+      ];
       this.dialogVisibleSentence = false;
     },
   },
@@ -8476,6 +8492,13 @@ ol {
   background-image: url(/static/img/titleBorder.453cad3.png);
   background-size: cover;
 }
+.isCard > div {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  width: 75%;
+  margin: 0 auto;
+}
 .card {
   width: 130px;
   height: 60px;