mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
修复学员二级报表导出
This commit is contained in:
@@ -302,6 +302,21 @@ const exportClick = ()=>{
|
|||||||
const exportClickAll = ()=>{
|
const exportClickAll = ()=>{
|
||||||
fetchExportReport({type: data.type,id:props.studentId});
|
fetchExportReport({type: data.type,id:props.studentId});
|
||||||
}
|
}
|
||||||
|
// 处理导出
|
||||||
|
function fetchExportReport(data) {
|
||||||
|
axios({
|
||||||
|
method: "post",
|
||||||
|
url: "/reportsnake/export/report",
|
||||||
|
data: data,
|
||||||
|
responseType: "blob",
|
||||||
|
headers: {
|
||||||
|
token: Cookies.get("token"),
|
||||||
|
},
|
||||||
|
}).then((res) => {
|
||||||
|
downLoad(res.data, modelTitle.value + ".xlsx");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.tableBox {
|
.tableBox {
|
||||||
|
|||||||
Reference in New Issue
Block a user