فهرست منبع

小题序号和选项个数

natasha 2 سال پیش
والد
کامیت
e8bfa2feb6
2فایلهای تغییر یافته به همراه13 افزوده شده و 13 حذف شده
  1. 2 2
      src/components/Adult/common/HzModule.vue
  2. 11 11
      src/components/Adult/inputModules/Picture.vue

+ 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 - 11
src/components/Adult/inputModules/Picture.vue

@@ -91,11 +91,11 @@ export default {
                 pinyin: "",
                 isAnswer: "",
               },
-              {
-                hanzi: "",
-                pinyin: "",
-                isAnswer: "",
-              },
+            //   {
+            //     hanzi: "",
+            //     pinyin: "",
+            //     isAnswer: "",
+            //   },
             ],
           },
         ],
@@ -190,14 +190,14 @@ export default {
   methods: {
     // 删除一个选项
     deleteoption(index, i) {
-    //   if (this.curQue.option[index].option.length <= 1) {
-    //     this.$message.warning("至少保留一个选项");
-    //     return;
-    //   }
-     if (this.curQue.option[index].option.length <= 2) {
-        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("确定要删除此选项吗?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",