优化代码

This commit is contained in:
java110 2022-07-12 15:48:21 +08:00
parent 39c1e11fbf
commit a99209bc19
3 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@
<table class="footable table table-stripped " style="margin-top:10px;" data-page-size="10">
<thead>
<tr>
<th v-for="(item,index) in reportProficientCarFeeInfo.listColumns" width="100px" class="java110-td-scoll-width">{{item}}
<th v-for="(item,index) in reportProficientCarFeeInfo.listColumns" width="100px" class="java110-td-scoll-width">{{item}}
</th>
</tr>
</thead>

View File

@ -61,12 +61,12 @@
}
let _reportFeeYearCollectionDetailDtos = _feeConfigInfo.data[0].reportFeeYearCollectionDetailDtos;
_feeConfigInfo.data.forEach(item => {
if (item.reportProficientCarFeeInfo.length > reportProficientCarFeeInfo.length) {
if (item.reportFeeYearCollectionDetailDtos.length > _reportFeeYearCollectionDetailDtos.length) {
_reportFeeYearCollectionDetailDtos = item.reportFeeYearCollectionDetailDtos;
}
})
_reportFeeYearCollectionDetailDtos.forEach(item => {
$that.reportProficientCarFeeInfo.listColumns.push(item.collectionYear + "年")
$that.reportProficientCarFeeInfo.listColumns.push(item.collectionYear)
})
},
function() {

View File

@ -14,6 +14,8 @@
unitId: '',
state: '',
roomNum: '',
floorNum: '',
unitNum: '',
moreCondition: false,
fees: [],
roomName: '',