fix: 调度页面状态列显示中文状态文本

- 修改状态列数据源从venueName改为status
- 状态显示: 未开始/进行中/已完成

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
DevOps
2026-01-15 19:11:26 +08:00
co-authored by factory-droid[bot]
parent 6eff8a08b6
commit 066f13f48d
+2 -2
View File
@@ -240,7 +240,7 @@
<el-table-column prop="duration" label="合计时间" width="100" align="center"></el-table-column> <el-table-column prop="duration" label="合计时间" width="100" align="center"></el-table-column>
<el-table-column prop="status" label="状态" width="100" align="center"> <el-table-column prop="status" label="状态" width="100" align="center">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.status" class="status-active">{{ scope.row.status }}</span> <span :class="['status-tag', scope.row.status === 2 ? 'status-completed' : scope.row.status === 1 ? 'status-progress' : 'status-pending']">{{ scope.row.status === 2 ? '已完成' : scope.row.status === 1 ? '进行中' : '未开始' }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -457,7 +457,7 @@ export default {
team: 1, // 队伍数量,可以从分组中计算 team: 1, // 队伍数量,可以从分组中计算
number: group.items?.length || 0, // 参赛人数 number: group.items?.length || 0, // 参赛人数
duration: group.estimatedDuration || 0, // 合计时间 duration: group.estimatedDuration || 0, // 合计时间
status: group.venueName, // 显示场地名称 status: group.status, // 状态: 0-未开始, 1-进行中, 2-已完成
venueName: group.venueName, venueName: group.venueName,
hint: '' // 可以根据需要添加提示信息 hint: '' // 可以根据需要添加提示信息
})) }))