86201e49
梁保满
即时测模块
|
1
|
<template>
|
22095aba
梁保满
接口联调
|
2
|
<div ref="main" class="page-content">
|
86201e49
梁保满
即时测模块
|
3
4
5
6
7
8
9
10
|
<div class="tips" v-if="paperModifyLog.modifiedTime && !status">
<p class="tips-p">
<i class="fa fa-bell-o"></i>
{{
`${paperModifyLog.modifiedTime} ${paperModifyLog.realName}`
}}修改了答案,是否重新记分?
</p>
<div class="btn-box">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
11
12
13
14
15
16
17
18
19
20
21
|
<el-button type="danger" round @click="_ReScore" size="mini"
>重新计分</el-button
>
<el-button
type="danger"
round
plain
size="mini"
@click="paperModifyLog.modifiedTime = ''"
>暂时不计</el-button
>
|
86201e49
梁保满
即时测模块
|
22
23
|
</div>
</div>
|
22095aba
梁保满
接口联调
|
24
25
|
<div class="content-header">
<div class="tab-box">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
26
27
28
29
30
31
32
33
|
<span
v-for="(item, index) in tabList"
:key="item"
class="tab-item"
:class="type == index ? 'active' : ''"
@click="setType(index)"
>{{ item }}</span
>
|
86201e49
梁保满
即时测模块
|
34
|
</div>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
35
36
37
38
39
40
41
42
|
<el-button
v-if="!status"
class="setMinScore"
@click="diaMinScore = true"
round
size="small"
>设置低分值</el-button
>
|
22095aba
梁保满
接口联调
|
43
44
45
|
</div>
<div id="print-content" v-loading="loading">
<div class="table-box">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
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
|
<el-table
:max-height="tableMaxHeight"
v-show="type == 0"
:data="tableData"
border
style="width: 100%"
>
<el-table-column
prop="questionIndex"
label="题号"
align="center"
fixed
width="60"
></el-table-column>
<el-table-column
prop="questionType"
label="题型"
align="center"
fixed
width="100"
><template slot-scope="scope">{{
setSubPro(scope.row.questionType)
}}</template></el-table-column
>
<el-table-column
prop="score"
width="100"
label="满分值"
sortable
align="center"
></el-table-column>
<el-table-column
width="110"
prop="highestScore"
label="班最高分"
sortable
align="center"
></el-table-column>
<el-table-column
width="110"
prop="lowestScore"
label="班最低分"
sortable
align="center"
></el-table-column>
<el-table-column
width="110"
prop="avgScore"
label="班平均分"
sortable
align="center"
></el-table-column>
<el-table-column
prop="classScoringRate"
width="120"
sortable
label="班级得分率"
align="center"
><template slot-scope="scoped"
>{{ scoped.row.classScoringRate }}%</template
></el-table-column
>
<el-table-column prop="correctAnswer" label="答案" align="center"
><template slot-scope="scoped">{{
scoped.row.correctAnswer == 1
? "✓"
: scoped.row.correctAnswer == 2
? "✗"
: scoped.row.correctAnswer
}}</template>
|
22095aba
梁保满
接口联调
|
116
|
</el-table-column>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
117
118
119
120
121
122
123
124
|
<el-table-column
v-for="(item, index) in optionsList"
:key="index"
:label="item.title"
:prop="'count' + index"
align="center"
width="120"
><template slot-scope="scope">
|
22095aba
梁保满
接口联调
|
125
126
127
|
<p class="persent">
{{
scope.row.questionType == "5"
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
128
129
130
131
132
|
? ""
: scope.row["option" + index]
? `${scope.row["option" + index]}(${
scope.row["persent" + index]
})`
|
22095aba
梁保满
接口联调
|
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
|
: ""
}}
</p>
</template>
</el-table-column>
</el-table>
<div id="print-table">
<table class="hide">
<thead>
<tr>
<th>题号</th>
<th>题型</th>
<th>满分值</th>
<th>班最高分</th>
<th>班最低分</th>
<th>班平均分</th>
<th>班级得分率</th>
<th>答案</th>
<th>选项1</th>
<th>选项2</th>
<th>选项3</th>
<th>选项4</th>
<th>未答</th>
</tr>
</thead>
<tbody>
<tr v-for="(tr, index) in tableData">
<td width="60">{{ index + 1 }}</td>
<td width="100">{{ setSubPro(tr.questionType) }}</td>
<td width="100">{{ tr.sortable }}</td>
<td width="110">{{ tr.highestScore }}</td>
<td width="110">{{ tr.lowestScore }}</td>
<td width="110">{{ tr.avgScore }}</td>
<td width="120">{{ tr.classScoringRate }}%</td>
<td>
|
86201e49
梁保满
即时测模块
|
168
|
{{
|
22095aba
梁保满
接口联调
|
169
|
tr.correctAnswer == 1
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
170
171
|
? "✓"
: tr.correctAnswer == 2
|
22095aba
梁保满
接口联调
|
172
173
|
? "✗"
: tr.correctAnswer
|
86201e49
梁保满
即时测模块
|
174
|
}}
|
22095aba
梁保满
接口联调
|
175
|
</td>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
176
177
178
179
180
|
<td
v-for="(item, index) in optionsList"
:key="index"
width="120"
>
|
22095aba
梁保满
接口联调
|
181
|
<p class="persent">
|
86201e49
梁保满
即时测模块
|
182
|
{{
|
22095aba
梁保满
接口联调
|
183
|
tr.questionType == "5"
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
184
185
|
? ""
: tr["option" + index]
|
22095aba
梁保满
接口联调
|
186
187
|
? `${tr["option" + index]}(${tr["persent" + index]})`
: ""
|
86201e49
梁保满
即时测模块
|
188
|
}}
|
22095aba
梁保满
接口联调
|
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
</p>
</td>
</tr>
</tbody>
</table>
<div class="hui-box" v-show="type == 0">
<span class="s-txt">汇总</span>
<ul class="hui-ul">
<li class="hui-li">
<span class="hui-s s1">主观题</span>
<span class="hui-s s1">{{ examReport.subjectiveScore }}</span>
<span class="hui-s s2">{{
examReport.subjectiveHighestScore
}}</span>
<span class="hui-s s2">{{
examReport.subjectiveLowestScore
}}</span>
<span class="hui-s s2">{{
examReport.subjectiveAvgScore
}}</span>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
209
210
211
|
<span class="hui-s s3"
>{{ examReport.subjectiveClassScoringRate }}%</span
>
|
22095aba
梁保满
接口联调
|
212
213
214
215
216
217
218
219
220
221
222
|
</li>
<li class="hui-li">
<span class="hui-s s1">客观题</span>
<span class="hui-s s1">{{ examReport.objectiveScore }}</span>
<span class="hui-s s2">{{
examReport.objectiveHighestScore
}}</span>
<span class="hui-s s2">{{
examReport.objectiveLowestScore
}}</span>
<span class="hui-s s2">{{ examReport.objectiveAvgScore }}</span>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
223
224
225
|
<span class="hui-s s3"
>{{ examReport.objectiveClassScoringRate }}%</span
>
|
22095aba
梁保满
接口联调
|
226
227
228
229
230
231
232
233
234
235
|
</li>
<li class="hui-li">
<span class="hui-s s1">整卷</span>
<span class="hui-s s1">{{ examReport.examPaperScore }}</span>
<span class="hui-s s2">{{ examReport.highestScore }}</span>
<span class="hui-s s2">{{ examReport.lowestScore }}</span>
<span class="hui-s s2">{{ examReport.avgScore }}</span>
<span class="hui-s s3">{{ examReport.classScoringRate }}%</span>
</li>
</ul>
|
86201e49
梁保满
即时测模块
|
236
|
</div>
|
86201e49
梁保满
即时测模块
|
237
|
</div>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
|
<el-table
v-show="type == 1"
:max-height="tableMaxHeight"
:data="tableData2"
border
style="width: 100%"
:default-sort="{ prop: 'dadui', order: 'descending' }"
>
<el-table-column
prop="studentCode"
label="学号"
align="center"
fixed
></el-table-column>
<el-table-column
prop="studentName"
label="姓名"
fixed
align="center"
></el-table-column>
<el-table-column
prop="examScore"
label="总分"
sortable
align="center"
></el-table-column>
<el-table-column
prop="scoringRate"
label="得分率"
sortable
align="center"
><template slot-scope="scope"
>{{ scope.row.scoringRate }}%</template
></el-table-column
>
<el-table-column
prop="classRank"
label="班名"
sortable
align="center"
></el-table-column>
|
22095aba
梁保满
接口联调
|
279
|
<el-table-column label="客观题" align="center">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
280
281
282
283
284
285
286
287
288
289
290
291
292
|
<el-table-column
prop="objectiveExamScore"
label="得分"
align="center"
></el-table-column>
<el-table-column
prop="objectiveScoringRate"
label="得分率"
align="center"
><template slot-scope="scope"
>{{ scope.row.objectiveScoringRate }}%</template
></el-table-column
>
|
22095aba
梁保满
接口联调
|
293
294
|
</el-table-column>
<el-table-column label="主观题" align="center">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
295
296
297
298
299
300
301
302
303
304
305
306
307
|
<el-table-column
prop="subjectiveExamScore"
label="得分"
align="center"
></el-table-column>
<el-table-column
prop="subjectiveScoringRate"
label="得分率"
align="center"
><template slot-scope="scope"
>{{ scope.row.subjectiveScoringRate }}%</template
></el-table-column
>
|
22095aba
梁保满
接口联调
|
308
309
|
</el-table-column>
</el-table>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
|
<el-table
v-show="type == 2"
:max-height="tableMaxHeight"
:data="tableData2"
border
style="width: 100%"
:default-sort="{ prop: '', order: 'descending' }"
>
<el-table-column
prop="studentCode"
label="学号"
fixed
align="center"
width="120"
></el-table-column>
<el-table-column
prop="studentName"
label="姓名"
fixed
align="center"
></el-table-column>
<el-table-column
prop="examScore"
label="总分"
sortable
align="center"
></el-table-column>
|
22095aba
梁保满
接口联调
|
337
|
<el-table-column label="分数组成" align="center">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
338
339
340
341
342
343
344
345
346
347
|
<el-table-column
prop="objectiveExamScore"
label="客观题分"
align="center"
></el-table-column>
<el-table-column
prop="subjectiveExamScore"
label="主观题分"
align="center"
></el-table-column>
|
22095aba
梁保满
接口联调
|
348
|
</el-table-column>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
349
350
351
352
353
354
355
|
<el-table-column
align="center"
v-for="(item, index) in questionList"
:key="index"
:label="'Q' + item.id"
:prop="'score' + item.id"
>
|
22095aba
梁保满
接口联调
|
356
357
|
</el-table-column>
</el-table>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
|
<el-table
:max-height="tableMaxHeight"
v-show="type == 3"
:data="tableData2"
border
style="width: 100%"
:default-sort="{ prop: '', order: 'descending' }"
>
<el-table-column
prop="studentCode"
label="学号"
fixed
align="center"
></el-table-column>
<el-table-column
prop="studentName"
label="姓名"
fixed
align="center"
></el-table-column>
<el-table-column
prop="className"
label="班级"
align="center"
></el-table-column>
<el-table-column
prop="examScore"
label="总分"
sortable
align="center"
></el-table-column>
<el-table-column
align="center"
v-for="(item, index) in questionList"
:key="index"
:label="'Q' + item.id"
>
|
22095aba
梁保满
接口联调
|
395
396
|
<template slot-scope="scope">
<span v-if="tableData[index]?.questionType == 5">*</span>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
397
398
399
400
|
<span
v-else-if="scope.row['answer' + item.id]"
:class="scope.row['isRight' + item.id] ? '' : 'error'"
>
|
22095aba
梁保满
接口联调
|
401
402
|
{{ scope.row["answer" + item.id] }}
</span>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
403
404
405
406
407
|
<span
v-else
:class="scope.row['questionType' + item.id] == 5 ? '' : 'error'"
>-</span
>
|
22095aba
梁保满
接口联调
|
408
409
410
|
</template>
</el-table-column>
</el-table>
|
86201e49
梁保满
即时测模块
|
411
|
</div>
|
22095aba
梁保满
接口联调
|
412
413
414
|
</div>
<div class="down">
<div>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
|
<el-button
@click="exportData"
type="primary"
plain
round
icon="fa fa-cloud-download"
>导出报表</el-button
>
<el-button
v-if="!this.$store.getters.code"
@click="print"
type="primary"
plain
round
icon="el-icon-printer"
>打印</el-button
>
|
86201e49
梁保满
即时测模块
|
432
|
</div>
|
22095aba
梁保满
接口联调
|
433
|
<div v-if="!status">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
434
435
436
|
<el-button type="primary" round @click="openScoreSet"
>答卷录分</el-button
>
|
86201e49
梁保满
即时测模块
|
437
|
|
22095aba
梁保满
接口联调
|
438
|
<template v-if="role != 'ROLE_BANZHUREN'">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
439
440
441
442
443
444
445
446
|
<el-button
@click="edit"
type="primary"
v-if="examReport.subjectiveScore != examReport.examPaperScore"
round
>查看题目</el-button
></template
>
|
22095aba
梁保满
接口联调
|
447
|
</div>
|
86201e49
梁保满
即时测模块
|
448
|
</div>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
|
<ScoreSet
v-show="diaScoreSet"
:role="role"
:id="id"
:title="title"
:examScore="score"
:diaScoreSet="diaScoreSet"
@closeScoreSet="closeScoreSet"
/>
<el-dialog
:close-on-click-modal="false"
title="低分区间设置"
:visible.sync="diaMinScore"
width="480px"
@closed="closeDiaMinScore"
>
|
22095aba
梁保满
接口联调
|
465
466
467
468
469
470
471
472
473
|
<el-form>
<el-form-item label="低分设置模式:">
<el-select v-model="lowRange.type" @change="changeScore">
<el-option label="按分数设置" :value="0"></el-option>
<el-option label="按已考人数比例" :value="1"></el-option>
<el-option label="按分数比例设置(按题目)" :value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="低分区间:">
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
474
475
476
477
478
479
|
<el-input
class="score-ipt"
type="number"
v-model="lowRange.range[0]"
:min="0"
:max="100"
|
22095aba
梁保满
接口联调
|
480
|
@input="lowRange.range[1] > 100 ? (lowRange.range[1] = 100) : ''"
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
481
482
483
484
485
486
487
488
489
|
@keydown.native="keydownRange($event)"
></el-input
>{{ lowRange.type != 0 ? "%" : "分" }}(含)
<el-input
class="score-ipt"
type="number"
v-model="lowRange.range[1]"
:min="0"
:max="100"
|
22095aba
梁保满
接口联调
|
490
|
@input="lowRange.range[1] > 100 ? (lowRange.range[1] = 100) : ''"
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
491
492
493
|
@keydown.native="keydownRange($event)"
></el-input
>{{ lowRange.type != 0 ? "%" : "分" }}(含)
|
22095aba
梁保满
接口联调
|
494
495
496
|
</el-form-item>
</el-form>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
497
498
499
500
501
502
|
<div
class="dialog-footer"
slot="footer"
align="center"
v-loading="loadingTange"
>
|
22095aba
梁保满
接口联调
|
503
504
505
506
|
<el-button type="danger" @click="_SavelowRange">保存</el-button>
<el-button @click="diaMinScore = false">取 消</el-button>
</div>
</el-dialog>
|
86201e49
梁保满
即时测模块
|
507
508
509
|
</div>
</template>
<script>
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
510
|
import ScoreSet from "./scoreSet.vue";
|
86201e49
梁保满
即时测模块
|
511
512
513
|
import { downloadFile, tablePrint } from "@/utils";
export default {
components: {
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
514
|
ScoreSet,
|
86201e49
梁保满
即时测模块
|
515
516
517
518
519
520
521
|
},
props: {
role: "",
id: "",
title: String,
classId: String,
subjectName: String,
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
522
|
examType: String,
|
86201e49
梁保满
即时测模块
|
523
524
|
score: {
type: Number,
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
525
|
default: 0,
|
86201e49
梁保满
即时测模块
|
526
527
528
529
|
},
},
data() {
return {
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
530
|
status: 0, // 1:已归档试卷
|
86201e49
梁保满
即时测模块
|
531
532
533
534
535
|
tableMaxHeight: 600,
loading: false,
exportLoading: false,
tabList: ["试题分析", "成绩排名", "小题分报表", "作答明细表"],
type: 0,
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
536
537
|
paperModifyLog: {
//修改信息
|
86201e49
梁保满
即时测模块
|
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
|
realName: "",
modifiedTime: "",
},
examReport: {
subjectiveScore: 0,
subjectiveHighestScore: "",
subjectiveLowestScore: "",
subjectiveAvgScore: "",
subjectiveClassScoringRate: "",
objectiveScore: "",
objectiveHighestScore: "",
objectiveLowestScore: "",
objectiveAvgScore: "",
objectiveClassScoringRate: "",
examPaperScore: "",
highestScore: "",
lowestScore: "",
avgScore: "",
classScoringRate: "",
},
tableData: [],
optionsList: [],
tableData2: [],
questionList: [],
page: 1,
size: 20,
total: 0,
// 设置低分值
loadingTange: false,
diaMinScore: false,
lowRange: {
type: 0,
range: [60, 0],
},
defaultLowRange: {
type: 0,
range: [],
},
//答题录分
|
079cb4cf
梁保满
即时测导出
|
577
578
|
diaScoreSet: false,
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
579
580
|
//导出相关
diaShow: false,
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
581
|
exportStudent: [],
|
86201e49
梁保满
即时测模块
|
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
|
};
},
created() {
this.status = this.$route.query.status ? this.$route.query.status : 0;
this._QueryData();
},
methods: {
print() {
if (this.type == 0) {
tablePrint("print-table", this.title + this.tabList[this.type], true);
} else {
tablePrint("print-content", this.title + this.tabList[this.type]);
}
},
//打开答卷录分
openScoreSet() {
this.diaScoreSet = true;
},
//关闭设置分数
closeScoreSet() {
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
602
|
this.diaScoreSet = false;
|
22095aba
梁保满
接口联调
|
603
|
this._QueryData();
|
86201e49
梁保满
即时测模块
|
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
|
},
setType(type) {
this.tableMaxHeight = this.$refs.main.offsetHeight;
this.type = type;
},
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() {
this.$router.push({
path: "/examinationPaperEdit",
query: {
paperId: this.id,
title: this.title,
type: 2,
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
634
|
examType: this.examType,
|
86201e49
梁保满
即时测模块
|
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
|
},
});
},
changePage(page) {
this.page = page;
this.examQuestionReport();
},
// 切换低分设置类型设置默认分值
changeScore() {
this.lowRange.range = [...this.defaultLowRange.range];
},
// 禁止输入负数
keydownRange(event) {
if (event.key == "-" || event.key == "e") {
event.returnValue = "";
}
},
// 关闭低分设置
closeDiaMinScore() {
this.lowRange.type = this.defaultLowRange.type;
this.lowRange.range = [...this.defaultLowRange.range];
},
// 保存低分设置
async _SavelowRange() {
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
659
660
661
662
|
if (
this.lowRange.range[0].trim() == "" ||
this.lowRange.range[1].trim() == ""
) {
|
86201e49
梁保满
即时测模块
|
663
|
this.$message.warning("请补全低分设置!");
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
664
|
return;
|
86201e49
梁保满
即时测模块
|
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
|
}
this.loadingTange = true;
let { data, status, info } = await this.$request.setLowRange({
classId: this.classId,
subjectName: this.subjectName,
...this.lowRange,
});
this.loadingTange = false;
if (status === 0) {
this.$message.success(info);
this.diaMinScore = false;
this.examDetail();
} else {
this.$message.error(info);
}
},
async _QueryData() {
this.examDetail();
this.examStudentReport();
this.examQuestionReport();
},
async examDetail() {
//详情
this.loading = true;
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
689
690
691
692
|
const examDetail =
this.role == "ROLE_PERSONAL"
? this.$request.pExamDetail
: this.$request.examDetail;
|
86201e49
梁保满
即时测模块
|
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
|
let { data, info, status } = await examDetail({
examId: this.id,
});
this.loading = false;
if (status === 0) {
if (data.paperModifyLog) {
this.paperModifyLog = { ...data?.paperModifyLog };
}
this.examReport = { ...data?.examReport };
this.defaultLowRange = data.lowRange || {
type: 1,
range: [60, 0],
};
this.lowRange.type = this.defaultLowRange.type;
this.lowRange.range = [...this.defaultLowRange.range];
} 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) {
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
721
|
this.$store.commit("setRefreshTestList", true);
|
86201e49
梁保满
即时测模块
|
722
723
724
725
726
727
728
729
730
731
732
|
this.$message.success(info);
this._QueryData();
this.paperModifyLog.modifiedTime = "";
this.paperModifyLog.realName = "";
} else {
this.$message.error(info);
}
},
async examStudentReport() {
//成绩排名-小题分-作答明细
this.loading = true;
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
733
734
735
736
|
const examStudentReport =
this.role == "ROLE_PERSONAL"
? this.$request.pExamStudentReport
: this.$request.examStudentReport;
|
86201e49
梁保满
即时测模块
|
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
|
let { data, info, status } = await 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];
}
detail.map((items, index) => {
params["que" + items.id] = items.id;
params["score" + items.id] = String(items.score).includes(".")
? Number(items.score)
: items.score;
params["answer" + items.id] =
items.answer == 1 ? "✓" : items.answer == 2 ? "✗" : items.answer;
params["isRight" + items.id] = items.isRight;
params["questionType" + items.id] = items.questionType;
});
return {
...item,
...params,
};
});
console.log();
this.questionList = optionsList.sort((a, b) => {
return a.id - b.id;
});
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
769
|
this.exportStudent = [...this.tableData2];
|
86201e49
梁保满
即时测模块
|
770
771
772
773
774
775
776
|
} else {
this.$message.error(info);
}
},
async examQuestionReport() {
//试题分析
this.loading = true;
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
777
778
779
780
|
const examQuestionReport =
this.role == "ROLE_PERSONAL"
? this.$request.pExamQuestionReport
: this.$request.examQuestionReport;
|
86201e49
梁保满
即时测模块
|
781
782
783
784
785
786
787
788
789
790
|
let { data, info, status } = await examQuestionReport({
examId: this.id,
page: this.page,
// size: this.size,
size: 9999,
});
this.loading = false;
if (status === 0) {
let optionsList = [{}, {}, {}, {}, {}];
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
791
|
let tableData = data?.list?.map((item) => {
|
86201e49
梁保满
即时测模块
|
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
|
let params = {};
const detail = JSON.parse(item.detail);
let lastOPtion = detail?.find((item) => {
return item.option == "未答";
});
let defaultArr = detail?.filter((item) => {
return item.option != "未答";
});
optionsList.map((items, index) => {
if (index != 4) {
params["count" + index] =
defaultArr[index]?.option != "未答"
? defaultArr[index]?.count
: "";
params["persent" + index] =
defaultArr[index]?.option != "未答"
? defaultArr[index]?.persent
: "";
params["option" + index] =
defaultArr[index]?.option != "未答"
? defaultArr[index]?.option == 1
? "✓"
: defaultArr[index]?.option == 2
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
816
817
|
? "✗"
: defaultArr[index]?.option
|
86201e49
梁保满
即时测模块
|
818
819
820
821
822
823
824
825
826
827
828
829
830
831
|
: "";
items["title"] = "选项" + (index + 1);
} else {
items["title"] = "未答";
params["count" + index] = lastOPtion.count;
params["persent" + index] = lastOPtion.persent;
params["option" + index] = "?";
}
});
return {
...item,
...params,
};
});
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
832
|
this.tableData = tableData?.sort((a, b) => {
|
86201e49
梁保满
即时测模块
|
833
834
835
836
837
838
839
840
841
|
return a.questionIndex - b.questionIndex;
});
this.optionsList = [...optionsList];
this.total = data.count;
this.setType(0);
} else {
this.$message.error(info);
}
},
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
842
|
|
ce278878
梁保满
2-2 bugfix
|
843
|
async exportData() {
|
86201e49
梁保满
即时测模块
|
844
845
|
if (this.exportLoading == true) return;
this.exportLoading = true;
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
846
847
848
849
|
const exportExamReport =
this.role == "ROLE_PERSONAL"
? this.$request.pExportExamReport
: this.$request.exportExamReport;
|
079cb4cf
梁保满
即时测导出
|
850
851
|
const data = await exportExamReport({
|
86201e49
梁保满
即时测模块
|
852
|
examId: this.id,
|
86201e49
梁保满
即时测模块
|
853
854
|
});
this.exportLoading = false;
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
855
|
if (!data.status) {
|
86201e49
梁保满
即时测模块
|
856
857
858
859
860
861
862
863
864
865
|
let blob = new Blob([data], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
});
downloadFile(
this.status
? "即时测-已归档单卷测练报表.xlsx"
: "即时测-单卷测练报表.xlsx",
blob
);
} else {
|
e17ec739
梁保满
随堂问,即时测导出爆表修改
|
866
|
this.$message.error(data.info);
|
86201e49
梁保满
即时测模块
|
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
|
}
},
},
};
</script>
<style>
div::-webkit-scrollbar {
width: 3px;
height: 10px;
}
div::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #ccc;
}
</style>
<style lang="scss" scoped>
|
22095aba
梁保满
接口联调
|
884
885
886
887
888
|
.page-content {
padding: 20px 20px 0;
height: calc(100% - 60px);
box-sizing: border-box;
overflow: auto;
|
86201e49
梁保满
即时测模块
|
889
|
position: relative;
|
22095aba
梁保满
接口联调
|
890
|
}
|
86201e49
梁保满
即时测模块
|
891
|
|
22095aba
梁保满
接口联调
|
892
893
|
.hide {
display: none;
|
86201e49
梁保满
即时测模块
|
894
895
896
897
898
899
900
901
902
903
|
}
.persent {
white-space: nowrap;
}
.error {
color: #f30;
}
|
86201e49
梁保满
即时测模块
|
904
905
906
907
908
909
910
911
912
913
|
.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;
|
7812e986
梁保满
班主任查看报表添加额外信息
|
914
|
margin: 0 20px 10px 20px;
|
86201e49
梁保满
即时测模块
|
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
|
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;
}
}
}
.down {
padding-top: 20px;
width: 100%;
display: flex;
justify-content: space-between;
}
.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;
}
}
}
// 设置低分值
.content-header {
width: 100%;
position: relative;
.setMinScore {
position: absolute;
bottom: 0;
right: 0px;
}
}
.score-ipt {
width: 80px;
margin: 0 5px;
}
</style>
|