feat(server): add Program and Award database models

- Add Program and Award tables to Prisma schema
- Update program-config.service to support database with JSON fallback
- Update ProgramCard.vue display logic for dynamic teamName/performer
- Add seed script to import data from JSON config

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
empty
2026-02-03 22:26:47 +08:00
parent b5fa4c7086
commit 406a5afa33
5 changed files with 374 additions and 49 deletions

View File

@@ -60,12 +60,21 @@ const programNumber = computed(() => {
return num.toString().padStart(2, '0');
});
// From 显示:部门·表演者
// From 显示:根据数据动态显示
const fromDisplay = computed(() => {
if (props.performer) {
return `${props.teamName || ''}·${props.performer}`;
const team = props.teamName?.trim();
const performer = props.performer?.trim();
if (team && performer) {
return `${team}·${performer}`;
}
return props.teamName || 'The Performer';
if (performer) {
return performer;
}
if (team) {
return team;
}
return '表演者';
});
// 当前选中奖项的备注(用于移动端引导)