Compare commits

...

2 Commits

Author SHA1 Message Date
zhaichao f2aac5aa30 Merge branch 'main' of https://gitea.fengyingkj.top/zhaichao/education 2026-08-26 17:54:25 +08:00
zhaichao 73c00286e7 学员队模板 2026-08-26 17:54:22 +08:00
2 changed files with 15 additions and 3 deletions
+9
View File
@@ -68,3 +68,12 @@ export function exportTeam(query) {
responseType: 'blob'
})
}
// 下载学员队导入模板
export function downloadTeamTemplate() {
return request({
url: '/download/student-team',
method: 'get',
responseType: 'blob'
})
}
@@ -302,7 +302,8 @@ import {
updateTeam,
delTeam,
importTeam,
exportTeam
exportTeam,
downloadTeamTemplate
} from '@/api/studentRecords/team'
export default {
@@ -588,8 +589,10 @@ export default {
// ==================== 模板下载 / 导入 ====================
handleDownloadTemplate() {
// 后端暂未提供模板下载接口,仅作提示
this.$message.info('后端暂未提供该接口')
downloadTeamTemplate().then(blob => {
saveAs(blob, '学员队导入模板.xlsx')
this.$message.success('模板下载成功')
}).catch(() => {})
},
handleChooseFile() {