mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化文件导出
Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
parent
9b050d7240
commit
563997a5d6
@ -137,7 +137,22 @@
|
|||||||
},
|
},
|
||||||
//导出
|
//导出
|
||||||
_exportExcel: function () {
|
_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('请求失败处理');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user