浏览代码

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

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() {
       handleAdd() {
+        var index=this.formModel.optionList.length+1;
         this.formModel.optionList.push({
         this.formModel.optionList.push({
             serialNumber: "",
             serialNumber: "",
             name: "",
             name: "",
-            incomeTimeRangeArr:null
+            incomeTimeRangeArr:null,
+            index:index
         });
         });
       },
       },
       handleInsert(row) {
       handleInsert(row) {
+        var index=this.formModel.optionList.length+1;
         this.formModel.optionList.push({
         this.formModel.optionList.push({
             serialNumber: "",
             serialNumber: "",
             name: "",
             name: "",
-            incomeTimeRangeArr:null
+            incomeTimeRangeArr:null,
+            index:index
           });
           });
       },
       },
       handleDelete(row) {
       handleDelete(row) {
         var optionList = this.formModel.optionList;
         var optionList = this.formModel.optionList;
-
         optionList.splice(optionList.indexOf(row), 1);
         optionList.splice(optionList.indexOf(row), 1);
       },
       },
     },
     },