dxd преди 2 години
родител
ревизия
892834f252
променени са 1 файла, в които са добавени 8 реда и са изтрити 3 реда
  1. 8 3
      src/views/menu5/cutPage/cutPage.vue

+ 8 - 3
src/views/menu5/cutPage/cutPage.vue

@@ -223,8 +223,11 @@
                   class="subNum"
                   v-model="item.subNum"
                 ></el-input>
-                <span class="meterialNum" v-if="item.imgType"
+                <!-- <span class="meterialNum" v-if="item.imgType"
                   >材料{{ index2 + 1 }}</span
+                > -->
+                 <span class="meterialNum" v-if="item.imgType"
+                  >材料</span
                 >
                 <img
                   class="cutIMG"
@@ -450,12 +453,13 @@ export default {
           });
         }
         this.list = this.formatResData(this.list);
+        debugger
         this.list.push({
-          order: this.paperInfo.questions.length + 1,
+          order: this.list.length + 1,
           name: "",
           ele: [],
         });
-        this.curBoxIndex == this.paperInfo.questions.length - 1;
+        this.curBoxIndex == this.list.length;
       }
       if (Object.keys(this.paperInfo.ans_points).length > 0) {
         this.answerList = [
@@ -493,6 +497,7 @@ export default {
           ele: el.ele,
         });
       });
+      debugger
       return listArr;
     },
     getDetailCutImage(point) {