فهرست منبع

报表导出格式修改以适应树形结构汇总表

yanliming 11 ماه پیش
والد
کامیت
f9a1eb97ae
1فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 6 3
      src/views/base/templateInfo-option-list.vue

+ 6 - 3
src/views/base/templateInfo-option-list.vue

@@ -257,22 +257,25 @@
         });
       },
       handleAdd() {
+        var index=this.formModel.optionList.length+1;
         this.formModel.optionList.push({
             serialNumber: "",
             name: "",
-            incomeTimeRangeArr:null
+            incomeTimeRangeArr:null,
+            index:index
         });
       },
       handleInsert(row) {
+        var index=this.formModel.optionList.length+1;
         this.formModel.optionList.push({
             serialNumber: "",
             name: "",
-            incomeTimeRangeArr:null
+            incomeTimeRangeArr:null,
+            index:index
           });
       },
       handleDelete(row) {
         var optionList = this.formModel.optionList;
-
         optionList.splice(optionList.indexOf(row), 1);
       },
     },