Browse Source

事故单默认选中问题

jbb 2 years ago
parent
commit
3c71c1dc6f
1 changed files with 5 additions and 0 deletions
  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.loading = false
             this.detailsPlanNum = res.result //所有详情
             this.detailsPlanNum = res.result //所有详情
             this.accidentListData = res.result.syCostAllocationAccidentList //事故单
             this.accidentListData = res.result.syCostAllocationAccidentList //事故单
+            var accidentNum = 0
+            this.accidentListData.map(item =>{
+              item.id = accidentNum + 1
+              accidentNum += 1
+            })
             this.costPayData = res.result.syCostAllocationCostpayList //支出费用
             this.costPayData = res.result.syCostAllocationCostpayList //支出费用
             var num = 0
             var num = 0
             this.costPayData.map(item =>{
             this.costPayData.map(item =>{