优化文件导出

Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
java110 2025-05-14 07:40:24 +00:00 committed by Gitee
parent 9b050d7240
commit 563997a5d6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -137,7 +137,22 @@
},
//导出
_exportExcel: function () {
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportQuestionAnswerDetail&' + vc.objToGetParam($that.reportQuestionAnswerDetailInfo.conditions));
$that.reportQuestionAnswerDetailInfo.conditions.pagePath = 'reportQuestionAnswerDetail';
let param = {
params: $that.reportQuestionAnswerDetailInfo.conditions
};
//发送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('请求失败处理');
});
}
}
});