소스 검색

事故单默认选中问题

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 =>{