Skip to content

Commit 22ea6cb

Browse files
928255095gitee-org
authored andcommitted
优化营业报表退出问题
Signed-off-by: java110 <[email protected]>
1 parent 87ff72b commit 22ea6cb

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

public/components/property/commonReportTable/commonReportTable.js

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,23 @@
196196
_condition.row = 10000;
197197
_condition.componentId = item.componentId;
198198
_condition.communityId = _communityId
199-
let _result = [];
200-
for (let key in _condition) {
201-
let value = _condition[key];
202-
if (!value) {
203-
continue;
204-
}
205-
_result.push(key + '=' + value);
206-
}
207-
let urlParam = _result.join('&');
208-
vc.jumpToPage('/callComponent/importAndExportFee/exportCustomReportTableData?' + urlParam)
199+
_condition.pagePath = 'exportCustomReportTableData';
200+
//vc.jumpToPage('/callComponent/importAndExportFee/exportCustomReportTableData?' + urlParam)
201+
let param = {
202+
params: _condition
203+
};
204+
//发送get请求
205+
vc.http.apiGet('/export.exportData', param,
206+
function (json, res) {
207+
let _json = JSON.parse(json);
208+
vc.toast(_json.msg);
209+
if (_json.code == 0) {
210+
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
211+
}
212+
},
213+
function (errInfo, error) {
214+
console.log('请求失败处理');
215+
});
209216
},
210217
_printReportTableMethod: function (_data) {
211218
vc.saveData('printCommonReportTableData', _data);

0 commit comments

Comments
 (0)