From 92e7f38d28519c06d5a3b35250a88f079dcaf2b9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 2 Jun 2023 13:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataReportFeeStatistics.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js b/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js index 7d0cf48de..81d238cbf 100644 --- a/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js +++ b/public/components/report/dataReportFeeStatistics/dataReportFeeStatistics.js @@ -72,7 +72,7 @@ ); }, _loadFloors:function(){ - var param = { + let param = { params: { page:1, row:100, @@ -84,17 +84,14 @@ vc.http.apiGet('/floor.queryFloors', param, function(json, res) { - var listFloorData = JSON.parse(json); + let listFloorData = JSON.parse(json); - vc.component.listFloorInfo.total = listFloorData.total; - vc.component.listFloorInfo.records = listFloorData.records; - vc.component.listFloorInfo.floors = listFloorData.apiFloorDataVoList; + let _floors = listFloorData.apiFloorDataVoList; + let _floorIds = []; + for(let _floorIndex = 0; _floorIndex < _floors.length;_floorIndex ++){ + _floorIds.push(_floors[_floorIndex].floorId); + } - vc.emit('pagination', 'init', { - total: vc.component.listFloorInfo.records, - dataCount: vc.component.listFloorInfo.total, - currentPage: _page - }); }, function(errInfo, error) { console.log('请求失败处理');