fix: 修复P2和P3问题
Some checks failed
continuous-integration/drone/push Build was killed

1. P2: 修复订单管理this.$set不兼容Vue3问题,改为直接赋值
2. P3: 修复选手年龄显示-1问题,改为显示"--"

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DevOps
2025-12-22 13:25:38 +08:00
parent 3d314fe84f
commit 226d92f725
2 changed files with 8 additions and 5 deletions

View File

@@ -181,13 +181,13 @@ export default {
try { try {
const res = await getScheduleResult(competition.id) const res = await getScheduleResult(competition.id)
if (res.data?.data) { if (res.data?.data) {
this.$set(this.scheduleStatusMap, competition.id, res.data.data.isCompleted || false) this.scheduleStatusMap[competition.id] = res.data.data.isCompleted || false
} else { } else {
this.$set(this.scheduleStatusMap, competition.id, false) this.scheduleStatusMap[competition.id] = false
} }
} catch (err) { } catch (err) {
// 如果获取失败,默认为未完成 // 如果获取失败,默认为未完成
this.$set(this.scheduleStatusMap, competition.id, false) this.scheduleStatusMap[competition.id] = false
} }
} }
}, },

View File

@@ -94,11 +94,14 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="age"
label="年龄" label="年龄"
width="80" width="80"
align="center" align="center"
/> >
<template #default="scope">
{{ scope.row.age === -1 || scope.row.age === null || scope.row.age === undefined ? '--' : scope.row.age }}
</template>
</el-table-column>
<el-table-column <el-table-column
prop="organization" prop="organization"