mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 01:46:43 +08:00
修复学员二级报表导出
This commit is contained in:
@@ -302,6 +302,21 @@ const exportClick = ()=>{
|
||||
const exportClickAll = ()=>{
|
||||
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>
|
||||
<style lang="scss">
|
||||
.tableBox {
|
||||
|
||||
Reference in New Issue
Block a user