Pārlūkot izejas kodu

事故单默认选中问题

jbb 2 gadi atpakaļ
vecāks
revīzija
3c71c1dc6f
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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 =>{