修复学员二级报表导出

This commit is contained in:
王卓煜
2025-06-22 18:58:56 +08:00
parent be13681bd6
commit 0e73035948

View File

@@ -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 {