学员队模板

This commit is contained in:
2026-08-26 17:54:22 +08:00
parent 91c2b7c0a7
commit 73c00286e7
2 changed files with 15 additions and 3 deletions
@@ -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() {