实现赛程表导出功能

- 添加 exportSchedule API 调用后端导出接口
- 实现 handleExport 方法,支持下载 Excel 文件
- 文件名格式:赛程表_赛事名称.xlsx

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Z-WICK
2025-12-24 13:45:09 +08:00
co-authored by Claude Opus 4.5
parent 6d8c3b9a37
commit a9e335e0a5
5 changed files with 2395 additions and 3 deletions
+13
View File
@@ -183,3 +183,16 @@ export const saveDispatch = (data) => {
data
})
}
/**
* 导出赛程表
* @param {Number} competitionId - 赛事ID
*/
export const exportSchedule = (competitionId) => {
return request({
url: '/martial/export/schedule',
method: 'get',
params: { competitionId },
responseType: 'blob'
})
}