4c4f7640
梁保满
路由表,路由前端文件
|
1
|
<template>
|
dbbfc6c5
梁保满
飞书优化及bug
|
2
|
<div ref="main" class="page-container" :class="dialogVisible ? 'active' : ''">
|
f356590c
阿宝
即时测列表,分析页面
|
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<back-box>
<template slot="title">
<span>单卷分析</span>
</template>
</back-box>
<div class="tips" v-if="paperModifyLog.modifiedTime">
<p class="tips-p">
<i class="fa fa-bell-o"></i>
{{
`${paperModifyLog.modifiedTime} ${paperModifyLog.realName}`
}}修改了答案,是否重新记分?
</p>
<div class="btn-box">
|
9309dc5d
梁保满
任课老师接口完成
|
16
17
18
|
<el-button type="danger" round @click="_ReScore" size="mini"
>重新计分</el-button
>
|
8ea67428
梁保满
飞书bug
|
19
20
21
22
23
24
25
26
|
<el-button
type="danger"
round
plain
size="mini"
@click="paperModifyLog.modifiedTime = ''"
>暂时不计</el-button
>
|
f356590c
阿宝
即时测列表,分析页面
|
27
28
29
30
31
32
33
|
</div>
</div>
<div class="page-content">
<div class="tab-box">
<span
class="tab-item"
:class="type == 1 ? 'active' : ''"
|
dbbfc6c5
梁保满
飞书优化及bug
|
34
|
@click="setType(1)"
|
f356590c
阿宝
即时测列表,分析页面
|
35
36
37
38
39
|
>试题分析</span
>
<span
class="tab-item"
:class="type == 2 ? 'active' : ''"
|
dbbfc6c5
梁保满
飞书优化及bug
|
40
|
@click="setType(2)"
|
f356590c
阿宝
即时测列表,分析页面
|
41
42
43
44
45
|
>成绩排名</span
>
<span
class="tab-item"
:class="type == 3 ? 'active' : ''"
|
dbbfc6c5
梁保满
飞书优化及bug
|
46
|
@click="setType(3)"
|
f356590c
阿宝
即时测列表,分析页面
|
47
48
49
50
51
|
>小题分报表</span
>
<span
class="tab-item"
:class="type == 4 ? 'active' : ''"
|
dbbfc6c5
梁保满
飞书优化及bug
|
52
|
@click="setType(4)"
|
f356590c
阿宝
即时测列表,分析页面
|
53
54
55
|
>作答明细表</span
>
</div>
|
dbbfc6c5
梁保满
飞书优化及bug
|
56
|
<el-table :max-height="tableMaxHeight" v-show="type == 1" :data="tableData" border style="width: 100%">
|
f356590c
阿宝
即时测列表,分析页面
|
57
|
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
58
59
|
prop="questionIndex"
label="题号"
|
f356590c
阿宝
即时测列表,分析页面
|
60
|
align="center"
|
dbbfc6c5
梁保满
飞书优化及bug
|
61
|
fixed
|
8ea67428
梁保满
飞书bug
|
62
|
width="60"
|
f356590c
阿宝
即时测列表,分析页面
|
63
|
></el-table-column>
|
8ea67428
梁保满
飞书bug
|
64
65
66
67
|
<el-table-column
prop="questionType"
label="题型"
align="center"
|
dbbfc6c5
梁保满
飞书优化及bug
|
68
|
fixed
|
8ea67428
梁保满
飞书bug
|
69
|
width="100"
|
9309dc5d
梁保满
任课老师接口完成
|
70
71
72
73
|
><template slot-scope="scope">{{
setSubPro(scope.row.questionType)
}}</template></el-table-column
>
|
f356590c
阿宝
即时测列表,分析页面
|
74
|
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
75
|
prop="score"
|
8ea67428
梁保满
飞书bug
|
76
|
width="100"
|
f356590c
阿宝
即时测列表,分析页面
|
77
78
79
80
81
|
label="满分值"
sortable
align="center"
></el-table-column>
<el-table-column
|
8ea67428
梁保满
飞书bug
|
82
|
width="110"
|
9309dc5d
梁保满
任课老师接口完成
|
83
|
prop="highestScore"
|
f356590c
阿宝
即时测列表,分析页面
|
84
85
86
87
88
|
label="班最高分"
sortable
align="center"
></el-table-column>
<el-table-column
|
8ea67428
梁保满
飞书bug
|
89
|
width="110"
|
9309dc5d
梁保满
任课老师接口完成
|
90
|
prop="lowestScore"
|
f356590c
阿宝
即时测列表,分析页面
|
91
92
93
94
95
|
label="班最低分"
sortable
align="center"
></el-table-column>
<el-table-column
|
8ea67428
梁保满
飞书bug
|
96
|
width="110"
|
9309dc5d
梁保满
任课老师接口完成
|
97
|
prop="avgScore"
|
f356590c
阿宝
即时测列表,分析页面
|
98
99
100
101
102
|
label="班平均分"
sortable
align="center"
></el-table-column>
<el-table-column
|
8ea67428
梁保满
飞书bug
|
103
104
|
prop="classScoringRate"
width="120"
|
f356590c
阿宝
即时测列表,分析页面
|
105
106
107
108
|
sortable
label="班级得分率"
align="center"
><template slot-scope="scoped"
|
8ea67428
梁保满
飞书bug
|
109
|
>{{ scoped.row.classScoringRate }}%</template
|
f356590c
阿宝
即时测列表,分析页面
|
110
111
|
></el-table-column
>
|
8ea67428
梁保满
飞书bug
|
112
113
114
115
116
117
118
119
120
|
<el-table-column prop="correctAnswer" label="答案" align="center"
><template slot-scope="scoped">{{
scoped.row.correctAnswer == 1
? "✓"
: scoped.row.correctAnswer == 2
? "✗"
: scoped.row.correctAnswer
}}</template>
</el-table-column>
|
f356590c
阿宝
即时测列表,分析页面
|
121
|
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
122
123
|
v-for="(item, index) in optionsList"
:key="index"
|
8ea67428
梁保满
飞书bug
|
124
|
:label="'选项' + (index + 1)"
|
dbbfc6c5
梁保满
飞书优化及bug
|
125
|
:prop="'count' + index"
|
8ea67428
梁保满
飞书bug
|
126
|
align="center"
|
9309dc5d
梁保满
任课老师接口完成
|
127
128
|
>
</el-table-column>
|
f356590c
阿宝
即时测列表,分析页面
|
129
|
</el-table>
|
8ea67428
梁保满
飞书bug
|
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
<div class="hui-box" v-show="type == 1">
<span class="s-txt">汇总</span>
<ul class="hui-ul">
<li class="hui-li">
<span class="hui-s s1">主观题</span>
<span class="hui-s s1">{{ paperModifyLog.subjectiveScore }}</span>
<span class="hui-s s2">{{
paperModifyLog.subjectiveHighestScore
}}</span>
<span class="hui-s s2">{{
paperModifyLog.subjectiveLowestScore
}}</span>
<span class="hui-s s2">{{
paperModifyLog.subjectiveAvgScore
}}</span>
<span class="hui-s s3"
>{{ paperModifyLog.subjectiveClassScoringRate }}%</span
>
</li>
<li class="hui-li">
<span class="hui-s s1">客观题</span>
<span class="hui-s s1">{{ paperModifyLog.objectiveScore }}</span>
<span class="hui-s s2">{{
paperModifyLog.objectiveHighestScore
}}</span>
<span class="hui-s s2">{{
paperModifyLog.objectiveLowestScore
}}</span>
<span class="hui-s s2">{{ paperModifyLog.objectiveAvgScore }}</span>
<span class="hui-s s3"
>{{ paperModifyLog.objectiveClassScoringRate }}%</span
>
</li>
<li class="hui-li">
<span class="hui-s s1">整卷</span>
<span class="hui-s s1">{{ paperModifyLog.examPaperScore }}</span>
<span class="hui-s s2">{{ paperModifyLog.highestScore }}</span>
<span class="hui-s s2">{{ paperModifyLog.lowestScore }}</span>
<span class="hui-s s2">{{ paperModifyLog.avgScore }}</span>
<span class="hui-s s3">{{ paperModifyLog.classScoringRate }}%</span>
</li>
</ul>
</div>
|
f356590c
阿宝
即时测列表,分析页面
|
173
|
<el-table
|
8ea67428
梁保满
飞书bug
|
174
|
v-show="type == 2"
|
dbbfc6c5
梁保满
飞书优化及bug
|
175
|
:max-height="tableMaxHeight"
|
f356590c
阿宝
即时测列表,分析页面
|
176
177
178
179
180
181
|
:data="tableData2"
border
style="width: 100%"
:default-sort="{ prop: 'dadui', order: 'descending' }"
>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
182
|
prop="studentCode"
|
f356590c
阿宝
即时测列表,分析页面
|
183
184
185
186
187
|
label="学号"
align="center"
fixed
></el-table-column>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
188
|
prop="studentName"
|
f356590c
阿宝
即时测列表,分析页面
|
189
190
191
192
193
|
label="姓名"
fixed
align="center"
></el-table-column>
<el-table-column
|
8ea67428
梁保满
飞书bug
|
194
|
prop="examScore"
|
f356590c
阿宝
即时测列表,分析页面
|
195
196
197
198
199
|
label="总分"
sortable
align="center"
></el-table-column>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
200
|
prop="scoringRate"
|
f356590c
阿宝
即时测列表,分析页面
|
201
202
203
|
label="得分率"
sortable
align="center"
|
9309dc5d
梁保满
任课老师接口完成
|
204
205
206
207
|
><template slot-scope="scope"
>{{ scope.row.scoringRate }}%</template
></el-table-column
>
|
f356590c
阿宝
即时测列表,分析页面
|
208
|
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
209
|
prop="classRank"
|
f356590c
阿宝
即时测列表,分析页面
|
210
211
212
213
214
215
|
label="班名"
sortable
align="center"
></el-table-column>
<el-table-column label="客观题" align="center">
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
216
|
prop="objectiveExamScore"
|
f356590c
阿宝
即时测列表,分析页面
|
217
218
219
220
|
label="得分"
align="center"
></el-table-column>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
221
|
prop="objectiveScoringRate"
|
f356590c
阿宝
即时测列表,分析页面
|
222
223
|
label="得分率"
align="center"
|
9309dc5d
梁保满
任课老师接口完成
|
224
225
226
227
|
><template slot-scope="scope"
>{{ scope.row.objectiveScoringRate }}%</template
></el-table-column
>
|
f356590c
阿宝
即时测列表,分析页面
|
228
229
230
|
</el-table-column>
<el-table-column label="主观题" align="center">
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
231
|
prop="subjectiveExamScore"
|
f356590c
阿宝
即时测列表,分析页面
|
232
233
234
235
|
label="得分"
align="center"
></el-table-column>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
236
|
prop="subjectiveScoringRate"
|
f356590c
阿宝
即时测列表,分析页面
|
237
238
|
label="得分率"
align="center"
|
9309dc5d
梁保满
任课老师接口完成
|
239
240
241
242
|
><template slot-scope="scope"
>{{ scope.row.subjectiveScoringRate }}%</template
></el-table-column
>
|
f356590c
阿宝
即时测列表,分析页面
|
243
244
245
|
</el-table-column>
</el-table>
<el-table
|
8ea67428
梁保满
飞书bug
|
246
|
v-show="type == 3"
|
dbbfc6c5
梁保满
飞书优化及bug
|
247
|
:max-height="tableMaxHeight"
|
9309dc5d
梁保满
任课老师接口完成
|
248
|
:data="tableData2"
|
f356590c
阿宝
即时测列表,分析页面
|
249
250
251
252
253
|
border
style="width: 100%"
:default-sort="{ prop: '', order: 'descending' }"
>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
254
|
prop="studentCode"
|
f356590c
阿宝
即时测列表,分析页面
|
255
|
label="学号"
|
dbbfc6c5
梁保满
飞书优化及bug
|
256
|
fixed
|
f356590c
阿宝
即时测列表,分析页面
|
257
258
259
|
align="center"
></el-table-column>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
260
|
prop="studentName"
|
f356590c
阿宝
即时测列表,分析页面
|
261
|
label="姓名"
|
dbbfc6c5
梁保满
飞书优化及bug
|
262
|
fixed
|
f356590c
阿宝
即时测列表,分析页面
|
263
264
265
|
align="center"
></el-table-column>
<el-table-column
|
8ea67428
梁保满
飞书bug
|
266
|
prop="examScore"
|
f356590c
阿宝
即时测列表,分析页面
|
267
268
269
270
271
272
|
label="总分"
sortable
align="center"
></el-table-column>
<el-table-column label="分数组成" align="center">
<el-table-column
|
8ea67428
梁保满
飞书bug
|
273
|
prop="objectiveExamScore"
|
f356590c
阿宝
即时测列表,分析页面
|
274
275
276
277
|
label="客观题分"
align="center"
></el-table-column>
<el-table-column
|
8ea67428
梁保满
飞书bug
|
278
|
prop="subjectiveExamScore"
|
f356590c
阿宝
即时测列表,分析页面
|
279
280
281
282
283
284
285
286
|
label="主观题分"
align="center"
></el-table-column>
</el-table-column>
<el-table-column
align="center"
v-for="(item, index) in questionList"
:key="index"
|
9309dc5d
梁保满
任课老师接口完成
|
287
288
|
:label="'题目' + item.id"
:prop="'score' + item.id"
|
f356590c
阿宝
即时测列表,分析页面
|
289
|
>
|
f356590c
阿宝
即时测列表,分析页面
|
290
291
292
|
</el-table-column>
</el-table>
<el-table
|
dbbfc6c5
梁保满
飞书优化及bug
|
293
|
:max-height="tableMaxHeight"
|
8ea67428
梁保满
飞书bug
|
294
|
v-show="type == 4"
|
9309dc5d
梁保满
任课老师接口完成
|
295
|
:data="tableData2"
|
f356590c
阿宝
即时测列表,分析页面
|
296
297
298
299
300
|
border
style="width: 100%"
:default-sort="{ prop: '', order: 'descending' }"
>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
301
|
prop="studentCode"
|
f356590c
阿宝
即时测列表,分析页面
|
302
|
label="学号"
|
dbbfc6c5
梁保满
飞书优化及bug
|
303
|
fixed
|
f356590c
阿宝
即时测列表,分析页面
|
304
305
306
|
align="center"
></el-table-column>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
307
|
prop="studentName"
|
f356590c
阿宝
即时测列表,分析页面
|
308
|
label="姓名"
|
dbbfc6c5
梁保满
飞书优化及bug
|
309
|
fixed
|
f356590c
阿宝
即时测列表,分析页面
|
310
311
312
|
align="center"
></el-table-column>
<el-table-column
|
9309dc5d
梁保满
任课老师接口完成
|
313
|
prop="className"
|
f356590c
阿宝
即时测列表,分析页面
|
314
315
316
317
|
label="班级"
align="center"
></el-table-column>
<el-table-column
|
dbbfc6c5
梁保满
飞书优化及bug
|
318
|
prop="examScore"
|
f356590c
阿宝
即时测列表,分析页面
|
319
320
321
322
323
324
325
326
|
label="总分"
sortable
align="center"
></el-table-column>
<el-table-column
align="center"
v-for="(item, index) in questionList"
:key="index"
|
9309dc5d
梁保满
任课老师接口完成
|
327
|
:label="'题目' + item.id"
|
f356590c
阿宝
即时测列表,分析页面
|
328
|
>
|
9309dc5d
梁保满
任课老师接口完成
|
329
330
331
332
333
334
335
336
337
338
339
340
341
|
<template slot-scope="scope">
<span
v-if="scope.row['answer' + item.id]"
:class="scope.row['isRight' + item.id] ? '' : 'error'"
>
{{ scope.row["answer" + item.id] }}
</span>
<span
v-else
:class="scope.row['questionType' + item.id] == 5 ? '' : 'error'"
>
{{ scope.row["questionType" + item.id] == 5 ? "*" : "-" }}
</span>
|
f356590c
阿宝
即时测列表,分析页面
|
342
343
344
|
</template>
</el-table-column>
</el-table>
|
9309dc5d
梁保满
任课老师接口完成
|
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
|
<div class="pagination-box" v-show="type == 1">
<el-pagination
small=""
layout="total,prev, pager, next"
:hide-on-single-page="true"
:total="total"
@current-change="changePage"
:current-page="page"
:page-size="size"
>
</el-pagination>
</div>
<div class="down">
<el-button
@click="exportData"
type="info"
plain
round
icon="fa fa-cloud-download"
>导出报表</el-button
>
<div>
<el-button
|
8ea67428
梁保满
飞书bug
|
368
|
v-if="paperModifyLog.subjectiveScore != 0"
|
9309dc5d
梁保满
任课老师接口完成
|
369
370
371
372
373
374
|
@click="diaUp = true"
type="primary"
round
v-loading="exportLoading"
>导入主观题分数</el-button
>
|
dbbfc6c5
梁保满
飞书优化及bug
|
375
|
<el-button @click="edit" type="primary" round>修改答案</el-button>
|
9309dc5d
梁保满
任课老师接口完成
|
376
377
378
379
|
</div>
</div>
<div class="edit-dia" v-show="dialogVisible" height="100%">
<editAnswer
|
dbbfc6c5
梁保满
飞书优化及bug
|
380
|
ref="editAnswer"
|
9309dc5d
梁保满
任课老师接口完成
|
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
:title="title"
:score="score"
@cancel="cancel"
@saveSuccess="saveSuccess"
/>
</div>
<el-dialog title="导入主观题分数" :visible.sync="diaUp" width="600">
<up-load :url="url" :examId="id" fileName="教师名单">
<template slot="down">
<p class="down-txt">
第一步:下载模板并编辑完成学生分数
<el-link type="danger" @click="downExcel">模板下载</el-link> 。
</p>
<p class="down-txt">第二步:上传完成编辑的模板文件并导入。</p>
</template>
</up-load>
<div class="dialog-footer" slot="footer">
<el-button @click="diaUp = false">取 消</el-button>
</div>
</el-dialog>
|
f356590c
阿宝
即时测列表,分析页面
|
401
402
|
</div>
</div>
|
4c4f7640
梁保满
路由表,路由前端文件
|
403
404
405
|
</template>
<script>
|
9309dc5d
梁保满
任课老师接口完成
|
406
407
|
import { downloadFile } from "@/utils";
import editAnswer from "./editAnswer.vue";
|
4c4f7640
梁保满
路由表,路由前端文件
|
408
|
export default {
|
9309dc5d
梁保满
任课老师接口完成
|
409
|
components: { editAnswer },
|
f356590c
阿宝
即时测列表,分析页面
|
410
411
|
data() {
return {
|
dbbfc6c5
梁保满
飞书优化及bug
|
412
|
tableMaxHeight:300,
|
9309dc5d
梁保满
任课老师接口完成
|
413
414
415
416
417
|
loading: false,
exportLoading: false,
diaUp: false,
dialogVisible: false,
url: "/api_html/teaching/importSubjectiveScore",
|
f356590c
阿宝
即时测列表,分析页面
|
418
|
id: "",
|
9309dc5d
梁保满
任课老师接口完成
|
419
420
|
title: "",
score: "",
|
f356590c
阿宝
即时测列表,分析页面
|
421
422
|
type: 1,
paperModifyLog: {
|
9309dc5d
梁保满
任课老师接口完成
|
423
424
|
realName: "",
modifiedTime: "",
|
8ea67428
梁保满
飞书bug
|
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
|
subjectiveScore: 0,
subjectiveHighestScore: "",
subjectiveLowestScore: "",
subjectiveAvgScore: "",
subjectiveClassScoringRate: "",
objectiveScore: "",
objectiveHighestScore: "",
objectiveLowestScore: "",
objectiveAvgScore: "",
objectiveClassScoringRate: "",
examPaperScore: "",
highestScore: "",
lowestScore: "",
avgScore: "",
classScoringRate: "",
|
f356590c
阿宝
即时测列表,分析页面
|
440
|
},
|
9309dc5d
梁保满
任课老师接口完成
|
441
442
443
444
445
446
447
|
tableData: [],
optionsList: [],
tableData2: [],
questionList: [],
page: 1,
size: 20,
total: 0,
|
f356590c
阿宝
即时测列表,分析页面
|
448
449
450
451
|
};
},
created() {
this.id = this.$route.query.id;
|
9309dc5d
梁保满
任课老师接口完成
|
452
453
454
|
this.title = this.$route.query.title || "";
this.score = this.$route.query.score || "";
this._QueryData();
|
f356590c
阿宝
即时测列表,分析页面
|
455
456
|
},
methods: {
|
dbbfc6c5
梁保满
飞书优化及bug
|
457
458
459
460
|
setType(type){
this.tableMaxHeight = this.$refs.main.offsetHeight-120
this.type=type
},
|
9309dc5d
梁保满
任课老师接口完成
|
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
|
setSubPro(type) {
let tit;
switch (type) {
case 2:
tit = "单选题";
break;
case 3:
tit = "多选题";
break;
case 4:
tit = "判断题";
break;
case 5:
tit = "主观题";
break;
}
return tit;
},
edit() {
|
8ea67428
梁保满
飞书bug
|
480
|
this.$refs.editAnswer.edit(this.id);
|
9309dc5d
梁保满
任课老师接口完成
|
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
|
this.dialogVisible = true;
},
cancel() {
this.dialogVisible = false;
},
saveSuccess() {
this.dialogVisible = false;
this._QueryData();
},
changePage(page) {
this.page = page;
this.examQuestionReport();
},
async downExcel() {
let data = await this.$request.subjectiveScoreTemplate({
examId: this.id,
});
if (data && !data.code) {
let blob = new Blob([data], {
type: "application/vnd.ms-excel;charset=utf-8",
});
downloadFile(`主观题模版.xlsx`, blob);
} else {
this.$message.error(data.message);
}
},
|
f356590c
阿宝
即时测列表,分析页面
|
507
|
async _QueryData() {
|
9309dc5d
梁保满
任课老师接口完成
|
508
509
510
511
512
513
514
515
516
|
this.examDetail();
this.examStudentReport();
this.examQuestionReport();
},
async examDetail() {
//详情
this.loading = true;
let { data, info, status } = await this.$request.examDetail({
examId: this.id,
|
f356590c
阿宝
即时测列表,分析页面
|
517
|
});
|
9309dc5d
梁保满
任课老师接口完成
|
518
519
|
this.loading = false;
if (status === 0) {
|
8ea67428
梁保满
飞书bug
|
520
521
|
if (data.examReport) {
this.paperModifyLog = { ...data.examReport };
|
9309dc5d
梁保满
任课老师接口完成
|
522
523
524
525
526
527
528
529
530
531
532
533
534
535
|
}
} else {
this.$message.error(info);
}
},
async _ReScore() {
//重新记分
this.loading = true;
let { data, info, status } = await this.$request.reScore({
examId: this.id,
});
this.loading = false;
if (status === 0) {
this.$message.success(info);
|
8ea67428
梁保满
飞书bug
|
536
537
538
|
this._QueryData();
this.paperModifyLog.modifiedTime = "";
this.paperModifyLog.realName = "";
|
9309dc5d
梁保满
任课老师接口完成
|
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
|
} else {
this.$message.error(info);
}
},
async examStudentReport() {
//成绩排名-小题分-作答明细
this.loading = true;
let { data, info, status } = await this.$request.examStudentReport({
examId: this.id,
});
this.loading = false;
if (status === 0) {
let optionsList = [];
this.tableData2 = data?.list.map((item) => {
let params = {};
const detail = JSON.parse(item.detail);
if (detail.length > optionsList.length) {
optionsList = [...detail];
}
console.log(detail);
detail.map((items, index) => {
params["que" + items.id] = items.id;
|
8ea67428
梁保满
飞书bug
|
562
563
564
|
params["score" + items.id] = Number(items.score).toFixed(2);
params["answer" + items.id] =
items.answer == 1 ? "✓" : items.answer == 2 ? "✗" : items.answer;
|
9309dc5d
梁保满
任课老师接口完成
|
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
|
params["isRight" + items.id] = items.isRight;
params["questionType" + items.id] = items.questionType;
});
return {
...item,
...params,
};
});
this.questionList = [...optionsList];
} else {
this.$message.error(info);
}
},
async examQuestionReport() {
//试题分析
this.loading = true;
let { data, info, status } = await this.$request.examQuestionReport({
examId: this.id,
page: this.page,
size: this.size,
});
this.loading = false;
if (status === 0) {
let optionsList = [];
this.tableData = data?.list.map((item) => {
let params = {};
const detail = JSON.parse(item.detail);
if (detail.length > optionsList.length) {
optionsList = [...detail];
}
console.log(detail);
detail.map((items, index) => {
|
dbbfc6c5
梁保满
飞书优化及bug
|
598
|
params["count" + index] = items.count;
|
8ea67428
梁保满
飞书bug
|
599
600
|
params["option" + index] =
items.option == 1 ? "✓" : items.option == 2 ? "✗" : items.option;
|
9309dc5d
梁保满
任课老师接口完成
|
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
|
});
return {
...item,
...params,
};
});
this.optionsList = [...optionsList];
this.total = data.count;
} else {
this.$message.error(info);
}
},
//导出
async exportData() {
if ((this.exportLoading = true)) return;
this.exportLoading = true;
const { data, status, info } = await this.$request.exportData();
this.exportLoading = false;
if (data) {
downloadFile(this.title + "报表", data);
} else {
this.$message.error(info);
}
|
f356590c
阿宝
即时测列表,分析页面
|
624
625
626
|
},
},
};
|
4c4f7640
梁保满
路由表,路由前端文件
|
627
|
</script>
|
dbbfc6c5
梁保满
飞书优化及bug
|
628
629
630
631
632
633
634
635
636
637
|
<style>
div::-webkit-scrollbar {
width: 3px;
height: 10px;
}
div::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #ccc;
}
</style>
|
f356590c
阿宝
即时测列表,分析页面
|
638
|
<style lang="scss" scoped>
|
9309dc5d
梁保满
任课老师接口完成
|
639
640
|
.page-container {
position: relative;
|
dbbfc6c5
梁保满
飞书优化及bug
|
641
|
min-height: 100%;
|
9309dc5d
梁保满
任课老师接口完成
|
642
|
&.active {
|
9309dc5d
梁保满
任课老师接口完成
|
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
|
overflow: hidden;
}
.edit-dia {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: calc(100vh - 70px);
background: #fff;
overflow-y: auto;
z-index: 10;
}
}
.error {
color: #f30;
}
|
f356590c
阿宝
即时测列表,分析页面
|
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
|
.page-content {
padding: 20px 20px 0;
}
.tips {
height: 48px;
box-sizing: border-box;
line-height: 48px;
padding: 0 16px;
border: 1px solid #fac7cc;
border-radius: 5px;
background-color: #ffebec;
font-size: 14px;
color: #fd9795;
margin: 10px 20px 20px 20px;
display: flex;
&-p {
flex: 1;
}
.fa-bell-o {
font-size: 18px;
margin-right: 5px;
}
}
.tab-box {
width: 800px;
margin: 0 auto 12px;
background: #f8f8f8;
border-radius: 20px;
display: flex;
user-select: none;
.tab-item {
flex: 1;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 16px;
color: #666;
font-weight: 500;
background: transparent;
border-radius: 20px;
cursor: pointer;
&.active {
background: #667ffd;
color: #fff;
}
}
}
|
9309dc5d
梁保满
任课老师接口完成
|
708
709
710
711
712
713
|
.down {
padding-top: 20px;
width: 100%;
display: flex;
justify-content: space-between;
}
|
8ea67428
梁保满
飞书bug
|
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
|
.hui-box {
display: flex;
text-align: center;
.s-txt {
width: 61px;
line-height: 144px;
background: #e2e2e2;
font-size: 16px;
color: #fff;
font-weight: 700;
}
.hui-ul {
border-top: 1px solid #e2e2e2;
}
.hui-li {
display: flex;
.hui-s {
height: 48px;
line-height: 48px;
border-right: 1px solid #e2e2e2;
border-bottom: 1px solid #e2e2e2;
box-sizing: border-box;
}
.s1 {
width: 100px;
}
.s2 {
width: 110px;
}
.s3 {
width: 120px;
}
}
}
|
4c4f7640
梁保满
路由表,路由前端文件
|
748
|
</style>
|