diff --git a/public/components/property/exportCarFeeImportExcel/exportCarFeeImportExcel.js b/public/components/property/exportCarFeeImportExcel/exportCarFeeImportExcel.js index 802badf11..5227cede3 100644 --- a/public/components/property/exportCarFeeImportExcel/exportCarFeeImportExcel.js +++ b/public/components/property/exportCarFeeImportExcel/exportCarFeeImportExcel.js @@ -165,9 +165,32 @@ }, _exportExcel: function() { let _paIds = $that.exportCarFeeImportExcelInfo.paIds.join(','); - let _configIds = $that.exportCarFeeImportExcelInfo.configIds.join(','); - vc.jumpToPage('/callComponent/importAndExportFee/exportData?paIds=' + _paIds + "&configIds=" + _configIds + "&communityId=" + vc.getCurrentCommunity().communityId + "&type=2002"); - $('#exportCarFeeImportExcelModel').modal('hide'); + let _configIds = $that.exportFeeImportExcelInfo.configIds.join(','); + let param = { + params: { + paIds: _paIds, + configIds: _configIds, + communityId: vc.getCurrentCommunity().communityId, + type: '2002', + pagePath: 'exportCreateFeeTemplate' + } + }; + //发送get请求 + vc.http.apiGet('/export.exportData', param, + function (json, res) { + let _json = JSON.parse(json); + vc.toast(_json.msg); + if (_json.code == 0) { + $('#exportCarFeeImportExcelModel').modal('hide'); + setTimeout(function () { + vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心') + }, 500); + } + }, + function (errInfo, error) { + console.log('请求失败处理'); + }); + } } });