1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
| // 模拟数据,用于测试评分流程
|
| // 模拟选手详情数据
| export const mockActivityPlayerDetail = {
| id: "1",
| playerInfo: {
| id: "1",
| name: "张三",
| phone: "13800138000",
| description: "计算机专业学生,擅长前端开发",
| avatarUrl: "https://via.placeholder.com/100x100"
| },
| activityName: "2024年编程大赛",
| description: "基于Vue.js的在线学习平台项目",
| submissionFiles: [
| {
| id: "1",
| name: "项目演示视频.mp4",
| url: "https://example.com/demo.mp4",
| fileExt: "mp4",
| fileSize: 314572800,
| mediaType: "video"
| },
| {
| id: "2",
| name: "项目源码.zip",
| url: "https://example.com/source.zip",
| fileExt: "zip",
| fileSize: 10485760,
| mediaType: "file"
| }
| ]
| }
|
| // 模拟评分模板数据
| export const mockRatingScheme = {
| schemeId: "1",
| schemeName: "编程大赛评分标准",
| items: [
| {
| id: "1",
| name: "代码质量",
| maxScore: 30,
| orderNo: 1
| },
| {
| id: "2",
| name: "功能完整性",
| maxScore: 25,
| orderNo: 2
| },
| {
| id: "3",
| name: "用户体验",
| maxScore: 20,
| orderNo: 3
| },
| {
| id: "4",
| name: "创新性",
| maxScore: 15,
| orderNo: 4
| },
| {
| id: "5",
| name: "项目展示",
| maxScore: 10,
| orderNo: 5
| }
| ],
| totalMaxScore: 100
| }
|
| // 模拟当前评委信息
| export const mockCurrentJudgeInfo = {
| id: "1",
| name: "李老师",
| phone: "13900139000",
| description: "高级软件工程师,10年开发经验"
| }
|
| // 模拟所有评委评分状态
| export const mockJudgeRatings = [
| {
| judgeId: "1",
| judgeName: "李老师",
| totalScore: 0,
| status: 0, // 0-未评分,1-已评分
| isCurrentJudge: true
| },
| {
| judgeId: "2",
| judgeName: "王教授",
| totalScore: 85,
| status: 1,
| isCurrentJudge: false
| },
| {
| judgeId: "3",
| judgeName: "陈专家",
| totalScore: 78,
| status: 1,
| isCurrentJudge: false
| },
| {
| judgeId: "4",
| judgeName: "刘博士",
| totalScore: 0,
| status: 0,
| isCurrentJudge: false
| }
| ]
|
| // 模拟当前评委的评分(如果已评分)
| export const mockCurrentJudgeRating = null // 初始为null,表示未评分
|
| // 模拟平均分
| export const mockAverageScore = 81.5 // (85 + 78) / 2
|
| // 模拟API响应格式
| export function createMockResponse(data) {
| return {
| data: data
| }
| }
|
|