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:
@@ -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 '表演者';
|
||||
});
|
||||
|
||||
// 当前选中奖项的备注(用于移动端引导)
|
||||
|
||||
Reference in New Issue
Block a user