From d69fb1dd5b8437dd74cc6f7a3dcafaecc4001c8d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: Sun, 4 Jun 2023 22:43:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dataReportEarnedDetailStatistics.html | 10 +++++--
.../dataReportEarnedDetailStatistics.js | 25 ++++++++++++++++
.../dataReportEarnedStatistics.html | 29 ++++++++-----------
.../dataReportEarnedStatistics.js | 22 ++++++++++++++
4 files changed, 67 insertions(+), 19 deletions(-)
diff --git a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html
index 406a05977..48b20da8e 100644
--- a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html
+++ b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.html
@@ -16,8 +16,14 @@
diff --git a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js
index 6aeaaf484..fcf11141d 100644
--- a/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js
+++ b/public/components/report/dataReportEarnedDetailStatistics/dataReportEarnedDetailStatistics.js
@@ -82,6 +82,31 @@
_qureyDataReportEarnedDetailStatistics: function() {
$that._loadDataReportEarnedDetailStatisticsData(DEFAULT_PAGE, DEFAULT_ROWS);
},
+ _exportReportEarnedDetailExcel: function() {
+ let param = {
+ params: {
+ communityId: vc.getCurrentCommunity().communityId,
+ startDate: $that.dataReportEarnedDetailStatisticsInfo.startDate,
+ endDate: $that.dataReportEarnedDetailStatisticsInfo.endDate,
+ objName: $that.dataReportEarnedDetailStatisticsInfo.objName,
+ ownerName: $that.dataReportEarnedDetailStatisticsInfo.ownerName,
+ link: $that.dataReportEarnedDetailStatisticsInfo.link,
+ pagePath:'dataReportEarnedDetailStatistics'
+ }
+ };
+ //发送get请求
+ vc.http.apiGet('/export.exportData', param,
+ function(json, res) {
+ let _json = JSON.parse(json);
+ vc.toast(_json.msg);
+ if (_json.code == 0) {
+ vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
+ }
+ },
+ function(errInfo, error) {
+ console.log('请求失败处理');
+ });
+ },
}
});
})(window.vc);
\ No newline at end of file
diff --git a/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html b/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html
index 24c820bd5..676b86524 100644
--- a/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html
+++ b/public/components/report/dataReportEarnedStatistics/dataReportEarnedStatistics.html
@@ -1,18 +1,11 @@