Administrator 22f073d8e7 feat: 运动会记分板系统核心功能
- 前后端分离架构 (Nuxt 3 + Element Plus)
- SQLite 数据库 (better-sqlite3)
- 比赛项目管理 (田赛/径赛/团体赛)
- 队伍管理 (5 个组别)
- 成绩录入与积分统计
- 记分板展示 (排名/奖牌榜)
- 移动端响应式适配
- 侧边栏布局 + 抽屉菜单
- 自动生成初始化数据接口
2026-03-17 22:29:18 +08:00

49 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default defineEventHandler(() => {
// 比赛类别
const categories = [
{ value: '田赛', label: '田赛' },
{ value: '径赛', label: '径赛' },
{ value: '团体赛', label: '团体赛' }
]
// 组别
const groups = [
{ value: '教师组', label: '教师组' },
{ value: '航空班组', label: '航空班组' },
{ value: '体育班组', label: '体育班组' },
{ value: '文化班甲组', label: '文化班甲组' },
{ value: '文化班乙组', label: '文化班乙组' }
]
// 项目配置
const eventTypes = {
'田赛': [
{ name: '跳高', unit: '米' },
{ name: '跳远', unit: '米' },
{ name: '掷铅球', unit: '米' }
],
'径赛': [
{ name: '100m', unit: '秒' },
{ name: '200m', unit: '秒' },
{ name: '400m', unit: '秒' },
{ name: '4×100m', unit: '秒' },
{ name: '4×400m', unit: '秒' },
{ name: '20×50m', unit: '秒' }
],
'团体赛': [
{ name: '旱地龙舟', unit: '秒' },
{ name: '跳长绳', unit: '次' },
{ name: '折返跑', unit: '秒' }
]
}
return {
success: true,
data: {
categories,
groups,
eventTypes
}
}
})