浏览代码

事故单默认选中问题

jbb 2 年之前
父节点
当前提交
3c71c1dc6f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/views/reportForms/cost-allocation-table.vue

+ 5 - 0
src/views/reportForms/cost-allocation-table.vue

@@ -333,6 +333,11 @@ export default {
              this.loading = false
             this.detailsPlanNum = res.result //所有详情
             this.accidentListData = res.result.syCostAllocationAccidentList //事故单
+            var accidentNum = 0
+            this.accidentListData.map(item =>{
+              item.id = accidentNum + 1
+              accidentNum += 1
+            })
             this.costPayData = res.result.syCostAllocationCostpayList //支出费用
             var num = 0
             this.costPayData.map(item =>{