feat(schedule): 前端支持动态时间段配置

- 添加 getScheduleConfig API 调用
- 更新 generateTimeSlots 从后端获取时间配置
- 添加 loadScheduleConfig 和 formatTimeForDisplay 方法
- 时间段不再硬编码,从 ScheduleConfig 动态获取
This commit is contained in:
Z-WICK
2025-12-30 10:51:28 +08:00
parent 099d2af9b8
commit 8429179f85
2 changed files with 49 additions and 10 deletions
+11
View File
@@ -207,3 +207,14 @@ export const updateCheckInStatus = (participantId, status) => {
data: { participantId, status }
})
}
/**
* 获取赛程配置
* @returns {Promise} 返回赛程配置信息
*/
export const getScheduleConfig = () => {
return request({
url: '/api/martial/schedule/config',
method: 'get'
})
}