refactor: 裁判角色名称修改 - 裁判长→主裁判, 普通裁判→裁判员

- 修改pages目录下的Vue组件注释
- 修改api目录下的接口注释
- 修改mock目录下的模拟数据注释
- 修改utils/dataAdapter.js中的注释

🤖 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-27 11:37:50 +08:00
parent 711779dc57
commit a3680f7d3e
24 changed files with 76 additions and 76 deletions

View File

@@ -32,7 +32,7 @@
</scroll-view>
<view class="venue-tip">
<!-- <text class="tip-bold">裁判可看见所有场地和项目</text> -->
<!-- <text class="tip-bold">裁判可看见所有场地和项目</text> -->
<!-- <text class="tip-normal">场地和项目可动态全部可以点击切换</text> -->
</view>
@@ -130,12 +130,12 @@ export default {
time: globalData.matchTime || '比赛时间'
}
// 注意:裁判没有固定场地和项目,需要查看所有
// 注意:裁判没有固定场地和项目,需要查看所有
this.competitionId = globalData.matchId
// 调试信息
if (config.debug) {
console.log('裁判列表页加载:', {
console.log('裁判列表页加载:', {
userRole: globalData.userRole,
competitionId: this.competitionId
})
@@ -212,7 +212,7 @@ export default {
mask: true
})
// 🔥 关键改动:使用 dataAdapter 获取选手列表(裁判视图)
// 🔥 关键改动:使用 dataAdapter 获取选手列表(裁判视图)
// Mock模式调用 mock/athlete.js 的 getAthletesForAdmin 函数
// API模式调用 api/athlete.js 的 getAthletesForAdmin 函数GET /api/mini/athletes/admin
const response = await dataAdapter.getData('getAthletesForAdmin', {
@@ -226,7 +226,7 @@ export default {
// 保存选手列表
this.players = (response.data.records || response.data) || []
// 计算评分统计(裁判视图:统计有总分的选手)
// 计算评分统计(裁判视图:统计有总分的选手)
this.totalCount = this.players.length
this.scoredCount = this.players.filter(p => p.scoringComplete).length