Fix: 完善裁判评分列表功能

1. 修复分页问题:添加 size=200 参数确保获取所有选手
2. 裁判长页面:使用 scoringComplete 判断评分完成状态
3. 普通裁判页面:已评分选手显示分数和修改按钮
4. 修复 getAthletesForAdmin 调用正确的接口路径

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
DevOps
2025-12-24 11:18:33 +08:00
parent a9c5c4a904
commit 96bc2d92a2
3 changed files with 71 additions and 70 deletions

View File

@@ -71,7 +71,7 @@
<!-- 动作区域始终显示 -->
<view class="action-area">
<!-- 已评分显示总分和修改按钮 -->
<template v-if="player.totalScore">
<template v-if="player.scoringComplete && player.totalScore > 0">
<text class="total-score">总分{{ player.totalScore }}</text>
<view class="chief-actions">
<button class="modify-btn" @click="goToModify(player)">修改</button>
@@ -224,11 +224,11 @@ export default {
uni.hideLoading()
// 保存选手列表
this.players = response.data || []
this.players = (response.data.records || response.data) || []
// 计算评分统计(裁判长视图:统计有总分的选手)
this.totalCount = this.players.length
this.scoredCount = this.players.filter(p => p.totalScore).length
this.scoredCount = this.players.filter(p => p.scoringComplete).length
// 调试信息
if (config.debug) {