Skip to content

Commit 563997a

Browse files
928255095gitee-org
authored andcommitted
优化文件导出
Signed-off-by: java110 <[email protected]>
1 parent 9b050d7 commit 563997a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

public/pages/property/reportQuestionAnswerDetail/reportQuestionAnswerDetail.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,22 @@
137137
},
138138
//导出
139139
_exportExcel: function () {
140-
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportQuestionAnswerDetail&' + vc.objToGetParam($that.reportQuestionAnswerDetailInfo.conditions));
140+
$that.reportQuestionAnswerDetailInfo.conditions.pagePath = 'reportQuestionAnswerDetail';
141+
let param = {
142+
params: $that.reportQuestionAnswerDetailInfo.conditions
143+
};
144+
//发送get请求
145+
vc.http.apiGet('/export.exportData', param,
146+
function (json, res) {
147+
let _json = JSON.parse(json);
148+
vc.toast(_json.msg);
149+
if (_json.code == 0) {
150+
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
151+
}
152+
},
153+
function (errInfo, error) {
154+
console.log('请求失败处理');
155+
});
141156
}
142157
}
143158
});

0 commit comments

Comments
 (0)