natasha 2 anos atrás
pai
commit
0fdadc3c2c

+ 2 - 2
src/components/Adult/common/HzModule.vue

@@ -12,7 +12,7 @@
         :uploadType="'image'"
       />
     </div>
-    <div class="adult-book-input-item">
+    <!-- <div class="adult-book-input-item">
         <span class="adult-book-lable">小题序号:</span>
         <el-input
         type="textarea"
@@ -25,7 +25,7 @@
         maxlength="200"
         show-word-limit
         ></el-input>
-    </div>
+    </div> -->
     <template v-if="type == 'image_single' || type == 'image_checkBox'">
       <div v-for="(item, i) in curQueItem.option" :key="'op' + i">
         <div class="adult-book-input-item">

+ 11 - 7
src/components/Adult/inputModules/Picture.vue

@@ -91,11 +91,11 @@ export default {
                 pinyin: "",
                 isAnswer: "",
               },
-            //   {
-            //     hanzi: "",
-            //     pinyin: "",
-            //     isAnswer: "",
-            //   },
+              {
+                hanzi: "",
+                pinyin: "",
+                isAnswer: "",
+              },
             ],
           },
         ],
@@ -190,8 +190,12 @@ export default {
   methods: {
     // 删除一个选项
     deleteoption(index, i) {
-      if (this.curQue.option[index].option.length <= 1) {
-        this.$message.warning("至少保留一个选项");
+    //   if (this.curQue.option[index].option.length <= 1) {
+    //     this.$message.warning("至少保留一个选项");
+    //     return;
+    //   }
+     if (this.curQue.option[index].option.length <= 2) {
+        this.$message.warning("至少保留两个选项");
         return;
       }
       this.$confirm("确定要删除此选项吗?", "提示", {