diff --git a/public/components/property/commonReportTable/commonReportTable.js b/public/components/property/commonReportTable/commonReportTable.js index be371227f..e8c0b3342 100644 --- a/public/components/property/commonReportTable/commonReportTable.js +++ b/public/components/property/commonReportTable/commonReportTable.js @@ -196,16 +196,23 @@ _condition.row = 10000; _condition.componentId = item.componentId; _condition.communityId = _communityId - let _result = []; - for (let key in _condition) { - let value = _condition[key]; - if (!value) { - continue; - } - _result.push(key + '=' + value); - } - let urlParam = _result.join('&'); - vc.jumpToPage('/callComponent/importAndExportFee/exportCustomReportTableData?' + urlParam) + _condition.pagePath = 'exportCustomReportTableData'; + //vc.jumpToPage('/callComponent/importAndExportFee/exportCustomReportTableData?' + urlParam) + let param = { + params: _condition + }; + //发送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('请求失败处理'); + }); }, _printReportTableMethod: function (_data) { vc.saveData('printCommonReportTableData', _data);