4c4f7640
梁保满
路由表,路由前端文件
|
1
|
<template>
|
65f592b6
梁保满
答题卡列表页
|
2
3
4
|
<div>
<back-box>
<template slot="title">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
5
|
<span>{{ type == 1 ? "修改试卷" : "修改答案" }}</span>
|
65f592b6
梁保满
答题卡列表页
|
6
7
|
</template>
</back-box>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
8
|
<div class="content">
|
3617eaad
梁保满
长水账号设置
|
9
10
11
12
13
14
15
16
|
<template v-if="type == 1"
><p class="tips" v-if="paperModifyLog.modifiedTime">
<i class="fa fa-bell-o"></i>
{{
`${paperModifyLog.modifiedTime} ${paperModifyLog.realName}`
}}老师修改了答案
</p></template
>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
17
18
19
20
21
22
|
<div class="answer-title" :class="type == 1 ? 't-left' : ''">
<p class="name-box" v-if="type == 1">
<span>试卷名称:</span>
<el-input class="ipt-name" v-model="form.title"></el-input>
</p>
<p class="name" v-else>{{ form.title }}</p>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
23
24
|
<p class="totals">卷面总分:{{ allScore }}分</p>
</div>
|
3de13776
梁保满
背题组卷修改答案
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<template v-if="questionList[0]?.subQuestions">
<div v-for="(question, index) in questionList" :key="index">
<p class="question-title">
<span>{{ setBigNum(index) }}、</span>
<el-input
class="ipt"
v-model.trim="question.questionTitle"
maxlength="30"
placeholder="填写大题名称"
></el-input>
<span>共 {{ setScore(question) }} 分</span>
</p>
<ul class="questions-ul">
<li class="sub-questions">
<div class="qs-num">题号</div>
<div class="qs-type">题型</div>
<div class="qs-score">分数</div>
<div class="qs-partScore">漏选得分</div>
<div class="qs-options qs-options2">选项设置</div>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
44
|
<!-- <div class="qs-set">操作</div> -->
|
3de13776
梁保满
背题组卷修改答案
|
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
</li>
<li
v-for="(subQuestions, indexs) in question.subQuestions"
:key="indexs"
>
<p
class="set-ans-btn"
v-if="
subQuestions.qusType &&
subQuestions.subNum &&
subQuestions.subNum > 4
"
>
<el-button type="primary" @click="setFormAns(indexs, index)"
>批量设置答案</el-button
>
</p>
<div v-else class="sub-questions">
<div class="qs-num">{{ subQuestions.questionIndex }}</div>
<div class="qs-type">
{{ setSubPro(subQuestions.questionType) }}
</div>
<div class="qs-score">
|
bbc51d4b
梁保满
组卷添加修改分数,打开新开页面跳转...
|
68
69
70
71
72
73
74
75
76
77
|
<el-input-number
class="number-ipt"
size="medium"
:min="1"
:max="200"
:precision="2"
:step="1"
v-model="subQuestions.score"
label="单题分值"
></el-input-number>
|
3de13776
梁保满
背题组卷修改答案
|
78
79
80
|
</div>
<div class="qs-partScore">
<p v-if="subQuestions.questionType != 3">--</p>
|
f5729396
梁保满
批量设置答案
|
81
82
83
84
85
86
87
88
89
90
91
|
<el-input-number
class="number-ipt"
v-else
size="medium"
:min="0"
:precision="2"
:max="subQuestions.score"
:step="0.5"
v-model="subQuestions.partScore"
label="漏选得分"
></el-input-number>
|
3de13776
梁保满
背题组卷修改答案
|
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
</div>
<div class="qs-options qs-options2">
<p v-if="subQuestions.questionType == 5">--</p>
<p v-if="subQuestions.questionType == 4" class="answer-box">
<span
class="answer-s"
:class="subQuestions.correctAnswer == 1 ? 'active' : ''"
@click="subQuestions.correctAnswer = 1"
>✓</span
>
<span
class="answer-s"
:class="subQuestions.correctAnswer == 2 ? 'active' : ''"
@click="subQuestions.correctAnswer = 2"
>✗</span
>
</p>
<p v-if="subQuestions.questionType == 3" class="answer-box">
<template
v-for="option in subQuestions.answerOptions.split(',')"
>
<span
v-if="option"
class="answer-s"
:class="
subQuestions.correctAnswer.includes(option)
? 'active'
: ''
"
:key="option"
@click="changAnswer(subQuestions, option)"
>{{ option }}</span
>
</template>
</p>
<p v-if="subQuestions.questionType == 2" class="answer-box">
<template
v-for="option in subQuestions.answerOptions.split(',')"
>
<span
class="answer-s"
v-if="option"
:class="
subQuestions.correctAnswer == option ? 'active' : ''
"
:key="option"
@click="subQuestions.correctAnswer = option"
>{{ option }}</span
>
</template>
</p>
</div>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
144
|
<div class="qs-set">
|
b248db27
梁保满
课件模版区分,错别字修改,录分成功...
|
145
|
<el-tooltip effect="dark" content="上传题干" placement="top">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
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
173
174
175
176
|
<el-button
type="primary"
circle
size="mini"
icon="el-icon-tickets"
@click="openStem(subQuestions, 1, index, indexs)"
></el-button>
</el-tooltip>
<el-tooltip effect="dark" content="题目打标" placement="top">
<el-button
type="primary"
circle
size="mini"
icon="el-icon-price-tag"
@click="openTag(subQuestions, 3, index, indexs)"
></el-button>
</el-tooltip>
<el-tooltip
effect="dark"
content="上传题目解析"
placement="top"
>
<el-button
type="primary"
circle
size="mini"
icon="el-icon-upload"
@click="openStem(subQuestions, 2, index, indexs)"
></el-button>
</el-tooltip>
</div>
|
3de13776
梁保满
背题组卷修改答案
|
177
178
179
180
181
182
183
184
185
186
187
|
</div>
</li>
</ul>
</div>
</template>
<ul class="questions-ul" v-else>
<li class="sub-questions">
<div class="qs-num">题号</div>
<div class="qs-type">题型</div>
<div class="qs-score">分数</div>
<div class="qs-partScore">漏选得分</div>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
188
189
|
<div class="qs-options qs-options2">答案</div>
<!-- <div class="qs-set">操作</div> -->
|
3de13776
梁保满
背题组卷修改答案
|
190
191
192
193
194
195
196
197
198
|
</li>
<li v-for="(subQuestions, indexs) in questionList" :key="indexs">
<p
class="set-ans-btn"
v-if="
subQuestions.qusType &&
subQuestions.subNum &&
subQuestions.subNum > 4
"
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
199
|
>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
200
|
<el-button type="primary" @click="setFormAns(indexs)"
|
3de13776
梁保满
背题组卷修改答案
|
201
202
203
204
|
>批量设置答案</el-button
>
</p>
<div v-else class="sub-questions">
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
205
206
207
208
209
|
<div class="qs-num">{{ subQuestions.questionIndex }}</div>
<div class="qs-type">
{{ setSubPro(subQuestions.questionType) }}
</div>
<div class="qs-score">
|
3de13776
梁保满
背题组卷修改答案
|
210
|
{{ subQuestions.score }}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
211
|
</div>
|
ca39cc52
阿宝
飞书问题处理
|
212
|
<div class="qs-partScore">
|
3de13776
梁保满
背题组卷修改答案
|
213
|
<p v-if="subQuestions.questionType != 3">--</p>
|
f5729396
梁保满
批量设置答案
|
214
215
216
217
218
219
220
221
222
223
224
|
<el-input-number
class="number-ipt"
v-else
size="medium"
:min="0"
:precision="2"
:max="subQuestions.score"
:step="0.5"
v-model="subQuestions.partScore"
label="漏选得分"
></el-input-number>
|
3de13776
梁保满
背题组卷修改答案
|
225
|
</div>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
|
<div class="qs-options qs-options2">
<p v-if="subQuestions.questionType == 5">--</p>
<p v-if="subQuestions.questionType == 4" class="answer-box">
<span
class="answer-s"
:class="subQuestions.correctAnswer == 1 ? 'active' : ''"
@click="subQuestions.correctAnswer = 1"
>✓</span
>
<span
class="answer-s"
:class="subQuestions.correctAnswer == 2 ? 'active' : ''"
@click="subQuestions.correctAnswer = 2"
>✗</span
>
</p>
<p v-if="subQuestions.questionType == 3" class="answer-box">
|
aed43d3a
阿宝
即时测修改答案
|
243
|
<template
|
5424ef82
梁保满
接口调整
|
244
|
v-for="option in subQuestions.answerOptions.split(',')"
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
245
|
>
|
aed43d3a
阿宝
即时测修改答案
|
246
247
248
249
250
251
252
253
254
255
256
257
258
|
<span
v-if="option"
class="answer-s"
:class="
subQuestions.correctAnswer.includes(option)
? 'active'
: ''
"
:key="option"
@click="changAnswer(subQuestions, option)"
>{{ option }}</span
>
</template>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
259
260
|
</p>
<p v-if="subQuestions.questionType == 2" class="answer-box">
|
aed43d3a
阿宝
即时测修改答案
|
261
|
<template
|
5424ef82
梁保满
接口调整
|
262
|
v-for="option in subQuestions.answerOptions.split(',')"
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
263
|
>
|
aed43d3a
阿宝
即时测修改答案
|
264
265
266
267
268
269
270
271
272
273
274
|
<span
class="answer-s"
v-if="option"
:class="
subQuestions.correctAnswer == option ? 'active' : ''
"
:key="option"
@click="subQuestions.correctAnswer = option"
>{{ option }}</span
>
</template>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
275
276
|
</p>
</div>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
277
|
<div class="qs-set">
|
b248db27
梁保满
课件模版区分,错别字修改,录分成功...
|
278
|
<el-tooltip effect="dark" content="上传题干" placement="top">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
|
<el-button
type="primary"
circle
size="mini"
icon="el-icon-tickets"
@click="openStem(subQuestions, 1, indexs)"
></el-button>
</el-tooltip>
<el-tooltip effect="dark" content="题目打标" placement="top">
<el-button
type="primary"
circle
size="mini"
icon="el-icon-price-tag"
@click="openTag(subQuestions, 3, indexs)"
></el-button>
</el-tooltip>
<el-tooltip effect="dark" content="上传题目解析" placement="top">
<el-button
type="primary"
circle
size="mini"
icon="el-icon-upload"
@click="openStem(subQuestions, 2, indexs)"
></el-button>
</el-tooltip>
</div>
|
3de13776
梁保满
背题组卷修改答案
|
306
307
308
|
</div>
</li>
</ul>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
309
310
311
312
|
<div class="btn-box">
<el-button type="danger" plain round @click="linkBack">取消</el-button>
<el-button type="primary" round @click="save">保存</el-button>
</div>
|
f45b3c05
LH_PC
云平台新UI界面
|
313
|
<el-dialog :append-to-body="true"
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
314
|
:close-on-click-modal="false"
|
3de13776
梁保满
背题组卷修改答案
|
315
|
title="批量设置答案"
|
3de13776
梁保满
背题组卷修改答案
|
316
317
318
319
|
:visible.sync="diaSetAns"
width="400"
:modal-append-to-body="false"
>
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
320
|
<div class="qs-options set-questions">
|
3de13776
梁保满
背题组卷修改答案
|
321
322
323
324
325
326
|
<p class="dia-tips">
请点击选项按钮设置答案,多选题题目之间用“,”隔开,若添加5道题:“AC,AD,BD,AC,CD”
</p>
<p>{{ setSubPro(formAns.qusType) }}:</p>
<p class="ipt">
<el-input
|
f5729396
梁保满
批量设置答案
|
327
|
ref="formAnsIpt"
|
3de13776
梁保满
背题组卷修改答案
|
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
|
v-if="formAns.qusType == 2 || formAns.qusType == 3"
v-model="formAns.answerList"
@keydown.native="keydownAnswer($event, formAns.qusType)"
@input="setAllAnswer($event, formAns.qusType)"
></el-input>
<el-input
v-if="formAns.qusType == 4"
v-model="formAns.answerList"
readonly=""
></el-input>
</p>
<p class="answer-box">
<template v-if="formAns.qusType == 4">
<span
class="answer-s active"
@click="
formAns.answerList.length < formAns.subNum
? (formAns.answerList += '✓')
: ''
"
>✓</span
>
<span
class="answer-s active"
@click="
formAns.answerList.length < formAns.subNum
? (formAns.answerList += '✗')
: ''
"
>✗</span
>
</template>
<template v-if="formAns.qusType == 3">
<span
class="answer-s active"
v-for="option in formAns.answerOptions.split(',')"
:key="option"
@click="setMultiple(formAns, option)"
>{{ option }}</span
>
|
3617eaad
梁保满
长水账号设置
|
368
|
<span class="answer-s active" @click="setMultiple(formAns, ',')"
|
3de13776
梁保满
背题组卷修改答案
|
369
370
371
|
>,</span
>
</template>
|
21dfdeae
梁保满
平台管理员
|
372
|
<template v-if="formAns.qusType == 2">
|
3de13776
梁保满
背题组卷修改答案
|
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
|
<span
class="answer-s active"
v-for="option in formAns.answerOptions.split(',')"
:key="option"
@click="
formAns.answerList.length < formAns.subNum
? (formAns.answerList += option)
: ''
"
>{{ option }}</span
>
</template>
<span
class="answer-s delButton"
@click="formAns.answerList = formAns.answerList.slice(0, -1)"
>x</span
>
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
390
|
<span class="answer-s ac" @click="formAns.answerList = ''">ac</span>
|
3de13776
梁保满
背题组卷修改答案
|
391
392
393
394
395
396
397
|
</p>
</div>
<div class="dialog-footer" slot="footer">
<el-button @click="saveFormAns">确 定</el-button>
<el-button @click="diaSetAns = false">取 消</el-button>
</div>
</el-dialog>
|
f45b3c05
LH_PC
云平台新UI界面
|
398
|
<el-dialog :append-to-body="true"
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
|
:close-on-click-modal="false"
:title="stem.type == 1 ? '上传题干' : '上传题目解析'"
:visible.sync="dialogStem"
v-if="dialogStem"
width="500"
>
<div class="upload-box">
<img
v-if="stem.screenshot || stem.answerScreenshot"
:src="
stem.type == 1
? stem.screenshotSrc || stem.screenshot
: stem.answerScreenshotSrc || stem.answerScreenshot
"
class="stem-pic"
/>
<el-upload
class="upload-demo"
|
ef16e57e
LH_PC
fix:前端版本迭代
|
417
|
:action="uploadUrl"
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
418
419
420
421
422
423
424
425
426
427
428
429
430
431
|
:limit="1"
:on-success="upSuccess"
:on-error="upError"
accept="image/*"
>
<el-button size="small" type="primary">{{
stem.screenshot || stem.answerScreenshot ? "重新上传" : "选择照片"
}}</el-button>
</el-upload>
</div>
<div slot="footer">
<el-button @click="dialogStem = false">关闭弹窗</el-button>
</div>
</el-dialog>
|
f45b3c05
LH_PC
云平台新UI界面
|
432
|
<el-dialog :append-to-body="true"
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
|
:close-on-click-modal="false"
title="题目打标"
:visible.sync="dialogTag"
width="500"
>
<div>
<el-form ref="form" :model="stem" label-width="160px">
<el-form-item label="题目难度:">
<el-select
v-model="stem.difficultyFactor"
placeholder="选择题目难度"
>
<el-option label="简单" value="简单"></el-option>
<el-option label="正常" value="正常"></el-option>
<el-option label="困难" value="困难"></el-option>
</el-select>
</el-form-item>
<el-form-item label="知识点:">
<el-select
v-model="stem.knowledge"
multiple
placeholder="选择知识点"
>
<el-option label="生字积累" value="生字积累"></el-option>
<el-option label="字词运用" value="字词运用"></el-option>
<el-option label="阅读理解" value="阅读理解"></el-option>
<el-option label="写作方法" value="写作方法"></el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<div slot="footer">
<el-button @click="dialogTag = false">取 消</el-button>
<el-button type="primary" @click="setKnowledge">确 定</el-button>
</div>
</el-dialog>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
469
|
</div>
|
65f592b6
梁保满
答题卡列表页
|
470
|
</div>
|
4c4f7640
梁保满
路由表,路由前端文件
|
471
472
473
|
</template>
<script>
|
ef16e57e
LH_PC
fix:前端版本迭代
|
474
|
import conf from "@/config/index";
|
3de13776
梁保满
背题组卷修改答案
|
475
|
import { deepClone, checkAnswer } from "utils";
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
476
477
478
|
export default {
data() {
return {
|
3617eaad
梁保满
长水账号设置
|
479
|
role: "",
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
|
dialogStem: false,
dialogTag: false,
stem: {
type: 1, //类型
index: 0, //大题位置
indexs: 0, //小题位置
screenshot: "", //题干图片id
answerScreenshot: "", //题干解析图片id
screenshotSrc: "", //题干图片地址显示用保存时删除
answerScreenshotSrc: "", //题干解析图片地址显示用保存时删除
difficultyFactor: 0, //题目难度
knowledge: [], //知识点
},
title: "",
type: 1,
|
6fffbd55
阿宝
组卷接口调整
|
495
|
questionList: [],
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
496
497
498
499
500
501
502
503
|
form: {
//答题卡详情
title: "",
tag: "",
subjectId: "",
examsDuration: 90,
gradeName: "",
share: 1,
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
504
505
|
questionList: [],
},
|
4ad1ef07
阿宝
类型添加验证
|
506
507
508
509
|
paperModifyLog: {
realName: "",
modifiedTime: "",
},
|
3de13776
梁保满
背题组卷修改答案
|
510
511
512
513
|
diaSetAns: false,
formAns: {
listIndex: 0, //大题位置
endIndex: 0, //相同题目最后一位题目的questionIndex
|
3617eaad
梁保满
长水账号设置
|
514
|
index: 0,
|
3de13776
梁保满
背题组卷修改答案
|
515
516
517
518
519
|
qusType: "", //题目类型
subNum: 0, //数量
answerOptions: [], //答案选项
answerList: "", //答案列表-字符串
},
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
520
521
522
|
};
},
computed: {
|
ef16e57e
LH_PC
fix:前端版本迭代
|
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
|
uploadUrl: function () {
var requestUrl = '';
var ogrinUrl = '/file/uploadImg';
var baseUrl = conf.baseURL;
if (baseUrl == '/' && ogrinUrl.indexOf('/') == 0) {
requestUrl = ogrinUrl;
}
else {
requestUrl = baseUrl + ogrinUrl
}
return requestUrl;
},
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
539
540
|
allScore: function () {
let score = 0;
|
3617eaad
梁保满
长水账号设置
|
541
542
543
544
545
546
|
this.questionList?.map((item) => {
if (item.subQuestions) {
score += item.subQuestions.reduce((a, b) => {
return a + (Number(b.score) || 0);
}, 0);
} else {
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
547
|
score += (item.score || 0);
|
3617eaad
梁保满
长水账号设置
|
548
|
}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
549
550
551
552
553
|
}, 0);
return Number(score).toFixed(2);
},
},
created() {
|
3617eaad
梁保满
长水账号设置
|
554
555
556
557
|
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
this.type = this.$route.query.type || 1;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
558
|
this.form.title = this.$route.query.title || "";
|
6fffbd55
阿宝
组卷接口调整
|
559
|
this._QueryDetail();
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
560
561
|
},
methods: {
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
562
563
564
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
598
599
600
601
602
603
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
|
openStem(obj, type, index, indexs) {
//上传截图
this.stem.type = type;
this.stem.index = index;
this.stem.indexs = indexs;
if (type == 1) {
this.stem.screenshot = obj.screenshot || "";
this.stem.screenshotSrc = obj.screenshotSrc || "";
this.stem.answerScreenshot = "";
this.stem.answerScreenshotSrc = "";
} else {
this.stem.screenshot = "";
this.stem.screenshotSrc = "";
this.stem.answerScreenshot = obj.answerScreenshot || "";
this.stem.answerScreenshotSrc = obj.answerScreenshotSrc || "";
}
this.dialogStem = true;
},
openTag(obj, type, index, indexs) {
//难度,知识点
this.stem = { ...this.stem, obj };
this.stem.type = type;
this.stem.index = index;
this.stem.indexs = indexs;
this.stem.knowledge = (obj.knowledge && obj.knowledge.split(",")) || [];
this.stem.difficultyFactor = obj.difficultyFactor || "";
this.dialogTag = true;
},
upSuccess(res, file) {
//图片上传成功
if (res && res.status == 0) {
let keys = this.stem.type == 1 ? "screenshot" : "answerScreenshot";
this.stem[keys + "Src"] = res.data.url;
this.stem[keys] = res.data.resId;
if (this.questionList[0].subQuestions) {
this.questionList[this.stem.index].subQuestions[this.stem.indexs][
keys
] = this.stem[keys];
this.questionList[this.stem.index].subQuestions[this.stem.indexs][
keys + "Src"
] = this.stem[keys + "Src"];
} else {
this.questionList[this.stem.index][keys] = this.stem[keys];
this.questionList[this.stem.index][keys + "Src"] =
this.stem[keys + "Src"];
}
this.$message.success("上传成功");
} else {
this.$message.error(res.info);
}
},
setKnowledge() {
//保存难度、知识点
if (typeof this.stem.indexs != undefined) {
this.questionList[this.stem.index].subQuestions[
this.stem.indexs
].knowledge = this.stem.knowledge.join(",");
this.questionList[this.stem.index].subQuestions[
this.stem.indexs
].difficultyFactor = this.stem.difficultyFactor;
} else {
this.questionList[this.stem.index].knowledge =
this.stem.knowledge.join(",");
this.questionList[this.stem.index].difficultyFactor =
this.stem.difficultyFactor;
}
this.dialogTag = false;
},
upError(res) {
this.$message.error("上传失败");
},
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
633
|
linkBack() {
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
634
|
this.$router.go(-1);
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
|
},
setSubPro(type) {
let tit;
switch (type) {
case 2:
tit = "单选题";
break;
case 3:
tit = "多选题";
break;
case 4:
tit = "判断题";
break;
case 5:
tit = "主观题";
break;
}
return tit;
},
setBigNum(num) {
let txt = "";
let bigNum = [
"一",
"二",
"三",
"四",
"五",
"六",
"七",
"八",
"九",
"十",
"十一",
"十二",
"十三",
"十四",
"十五",
"十六",
"十七",
"十八",
"十九",
"二十",
];
txt = bigNum[num];
return txt;
},
setScore(question) {
let score = question.subQuestions.reduce((a, b) => {
|
3de13776
梁保满
背题组卷修改答案
|
684
|
return a + (b.score || 0);
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
685
|
}, 0);
|
f26ecfa4
阿宝
测试bug
|
686
|
return Number(score).toFixed(2);
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
687
688
689
690
691
692
693
694
695
696
697
698
|
},
changAnswer(sub, option) {
//设置多选答案
let str = new RegExp(option, "g");
if (sub.correctAnswer?.includes(option)) {
sub.correctAnswer = sub.correctAnswer.replace(str, "");
} else {
let arrs = (sub.correctAnswer && sub.correctAnswer.split("")) || [];
arrs.push(option);
sub.correctAnswer = arrs.sort().join("");
}
},
|
3de13776
梁保满
背题组卷修改答案
|
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
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
|
keydownAnswer(event, type) {
let answerA = "ABCDEFG";
let answer_a = "abcdefg";
answerA = answerA.substring(0, this.formAns.subNum);
answer_a = answer_a.substring(0, this.formAns.subNum);
answerA += answer_a;
answerA = type == 2 ? answerA : answerA + ",";
if (
event.key == "Meta" ||
event.key == "CapsLock" ||
event.key == "Shift" ||
event.key == "Enter" ||
event.key == "Alt" ||
event.key == "Backspace" ||
event.key == "Delete" ||
event.key == "ArrowUp" ||
event.key == "ArrowDown" ||
event.key == "ArrowLeft" ||
event.key == "v" ||
event.key == "V" ||
event.key == "ArrowRight"
)
return;
if (!answerA.includes(event.key)) {
event.returnValue = "";
}
},
setAllAnswer(event, type) {
let str = this.formAns.answerList;
let str2 = checkAnswer(
str,
type,
this.formAns.answerOptions.split(",").length,
this.formAns.subNum
);
this.formAns.answerList = str2;
},
setAnswer(type, ans) {
let txt = "";
if (type == 2) {
txt = ans;
} else if (type == 3) {
txt = ans + ",";
} else if (type == 4) {
txt = ans == 1 ? "✓" : ans == 2 ? "✗" : "";
}
return txt;
},
|
f5729396
梁保满
批量设置答案
|
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
|
insertTxtAndSetcursor(answerList, str) {
let element = this.$refs.formAnsIpt.$el.children[0]; // 获取到指定标签
let startPos = element.selectionStart; // 获取光标开始的位置
if (startPos === undefined) {
// 如果没有光标位置 不操作
return answerList;
} else {
return {
text:
answerList.substring(0, startPos) +
str +
answerList.substring(startPos), // 将文本插入
startPos: startPos + str.length,
};
}
},
|
3de13776
梁保满
背题组卷修改答案
|
763
764
|
setMultiple(obj, answer) {
//多选答案设置
|
f5729396
梁保满
批量设置答案
|
765
766
|
let resault = this.insertTxtAndSetcursor(obj.answerList || "", answer);
obj.answerList = resault.text;
|
3de13776
梁保满
背题组卷修改答案
|
767
768
769
770
771
|
let str = obj.answerList;
let str2 = checkAnswer(
str,
3,
obj.answerOptions.split(",").length,
|
b2d3d803
梁保满
批量设置答案优化
|
772
|
obj.subNum
|
3de13776
梁保满
背题组卷修改答案
|
773
774
|
);
obj.answerList = str2;
|
f5729396
梁保满
批量设置答案
|
775
776
|
this.$refs.formAnsIpt.$el.children[0].focus();
this.$refs.formAnsIpt.$el.children[0].selectionStart = resault.startPos;
|
3de13776
梁保满
背题组卷修改答案
|
777
778
779
780
781
782
|
},
setFormAns(indexs, index) {
//初始化要修改的答案
if (this.questionList[0].subQuestions) {
this.formAns = { ...this.questionList[index].subQuestions[indexs] };
this.formAns.listIndex = index;
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
783
|
let answerList = "";
|
3617eaad
梁保满
长水账号设置
|
784
|
let startIndex = this.formAns.index + 1 - this.formAns.subNum; //批量设置大难开始位置
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
785
|
this.questionList[index].subQuestions.map((item, subIdx) => {
|
f5729396
梁保满
批量设置答案
|
786
787
788
789
790
791
792
793
794
795
796
|
if (subIdx >= startIndex) {
answerList += this.setAnswer(item.questionType, item.correctAnswer);
if (subIdx != indexs) {
if (!!item.qusType) {
answerList = "";
}
} else {
if (item.qusType == 3) {
answerList = answerList.slice(0, -1);
}
this.formAns.answerList = answerList;
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
797
|
}
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
798
799
|
}
});
|
3de13776
梁保满
背题组卷修改答案
|
800
801
|
} else {
this.formAns = { ...this.questionList[indexs] };
|
f5729396
梁保满
批量设置答案
|
802
|
let startIndex = this.formAns.endIndex - this.formAns.subNum;
|
3de13776
梁保满
背题组卷修改答案
|
803
|
this.formAns.listIndex = indexs;
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
804
|
let answerList = "";
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
805
|
this.questionList.map((item, subIdx) => {
|
f5729396
梁保满
批量设置答案
|
806
807
808
809
810
811
812
813
814
815
816
|
if (subIdx >= startIndex) {
answerList += this.setAnswer(item.questionType, item.correctAnswer);
if (subIdx != indexs) {
if (!!item.qusType) {
answerList = "";
}
} else {
if (item.qusType == 3) {
answerList = answerList.slice(0, -1);
}
this.formAns.answerList = answerList;
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
817
|
}
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
818
819
|
}
});
|
3de13776
梁保满
背题组卷修改答案
|
820
821
822
823
824
825
826
827
828
829
830
831
|
}
this.diaSetAns = true;
},
saveFormAns() {
//批量修改答案
let EndIndex;
let subNum = this.formAns.subNum - 1;
if (this.questionList[this.formAns.listIndex].subQuestions) {
this.questionList[this.formAns.listIndex].subQuestions.some(
(item, index) => {
if (this.formAns.endIndex == item.questionIndex) {
EndIndex = index;
|
3de13776
梁保满
背题组卷修改答案
|
832
|
}
|
4c2f99b0
梁保满
修改组卷
|
833
|
return this.formAns.endIndex == item.questionIndex
|
3de13776
梁保满
背题组卷修改答案
|
834
835
836
837
838
839
|
}
);
} else {
this.questionList.some((item, index) => {
if (this.formAns.endIndex == item.questionIndex) {
EndIndex = index;
|
3de13776
梁保满
背题组卷修改答案
|
840
|
}
|
4c2f99b0
梁保满
修改组卷
|
841
|
return this.formAns.endIndex == item.questionIndex
|
3de13776
梁保满
背题组卷修改答案
|
842
843
844
845
846
847
|
});
}
for (let i = 0; i <= subNum; i++) {
let correctAnswer = "";
if (this.formAns.qusType == 2) {
|
f5729396
梁保满
批量设置答案
|
848
|
correctAnswer = this.formAns.answerList[subNum - i] || "";
|
3de13776
梁保满
背题组卷修改答案
|
849
|
} else if (this.formAns.qusType == 3) {
|
f5729396
梁保满
批量设置答案
|
850
|
correctAnswer = this.formAns.answerList.split(",")[subNum - i] || "";
|
3de13776
梁保满
背题组卷修改答案
|
851
|
} else if (this.formAns.qusType == 4) {
|
f5729396
梁保满
批量设置答案
|
852
853
854
855
856
857
|
correctAnswer =
this.formAns.answerList[subNum - i] == "✓"
? 1
: this.formAns.answerList[subNum - i] == "✗"
? 2
: "";
|
3de13776
梁保满
背题组卷修改答案
|
858
859
860
861
862
863
864
865
866
867
868
|
}
if (this.questionList[0].subQuestions) {
this.questionList[this.formAns.listIndex].subQuestions[
EndIndex - i
].correctAnswer = correctAnswer;
} else {
this.questionList[EndIndex - i].correctAnswer = correctAnswer;
}
}
this.diaSetAns = false;
},
|
6fffbd55
阿宝
组卷接口调整
|
869
|
async save() {
|
3de13776
梁保满
背题组卷修改答案
|
870
871
872
873
874
|
for (let i = 0; i < this.questionList.length; i++) {
if (this.questionList[0].subQuestions) {
for (let j = 0; j < this.questionList[i].subQuestions.length; j++) {
if (this.questionList[i].subQuestions[j].qusType) {
this.questionList[i].subQuestions.splice(j, 1);
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
875
876
877
878
879
880
881
|
} else {
if (!!this.questionList[i].subQuestions[j].answerScreenshotSrc) {
delete this.questionList[i].subQuestions[j].answerScreenshotSrc;
}
if (!!this.questionList[i].subQuestions[j].screenshotSrc) {
delete this.questionList[i].subQuestions[j].screenshotSrc;
}
|
3de13776
梁保满
背题组卷修改答案
|
882
883
884
885
886
887
|
}
}
} else {
if (this.questionList[i].qusType) {
this.questionList.splice(i, 1);
i--;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
888
889
890
891
892
893
|
if (!!this.questionList[i].answerScreenshotSrc) {
delete this.questionList[i].answerScreenshotSrc;
}
if (!!this.questionList[i].screenshotSrc) {
delete this.questionList[i].screenshotSrc;
}
|
3de13776
梁保满
背题组卷修改答案
|
894
895
896
897
|
}
}
}
let questionList = this.questionList.map((item) => {
|
6fffbd55
阿宝
组卷接口调整
|
898
|
item.score = null;
|
8f573b82
阿宝
组卷接口联调
|
899
900
|
// item.questionId = "";
// item.questionIndex = "";
|
6fffbd55
阿宝
组卷接口调整
|
901
902
903
|
return item;
});
//更新答题卡
|
3617eaad
梁保满
长水账号设置
|
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
|
let modifyPaper, params;
if (this.type == 1) {
modifyPaper =
this.role == "ROLE_PERSONAL"
? this.$request.pModifyPaper
: this.$request.modifyPaper;
params = {
paperId: this.$route.query.paperId,
questionList: questionList,
};
} else if (this.type == 2) {
modifyPaper =
this.role == "ROLE_PERSONAL"
? this.$request.pSetExamAnswer
: this.$request.setExamAnswer;
params = {
examId: this.$route.query.paperId,
questionList: questionList,
};
} else {
modifyPaper =
this.role == "ROLE_PERSONAL"
? this.$request.pSetPeriodAnswer
: this.$request.setPeriodAnswer;
params = {
periodId: this.$route.query.paperId,
questionList: questionList,
};
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
933
934
935
936
|
const { data, status, info } = await modifyPaper({
title: this.form.title,
...params,
});
|
ee6e7628
梁保满
备题组卷借口数据对接调整
|
937
|
if (status == 0) {
|
3617eaad
梁保满
长水账号设置
|
938
|
this.$router.go(-1);
|
ee6e7628
梁保满
备题组卷借口数据对接调整
|
939
|
} else {
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
940
|
this.$message.error(message);
|
ee6e7628
梁保满
备题组卷借口数据对接调整
|
941
942
943
|
}
},
async _QueryDetail() {
|
3617eaad
梁保满
长水账号设置
|
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
|
//查询详情
let detail;
if (this.role == "ROLE_PERSONAL") {
detail =
this.type == 1
? this.$request.pPaperDetail
: this.type == 2
? this.$request.pExamQuestionList
: this.$request.pPeriodQuestionList;
} else {
detail =
this.type == 1
? this.$request.fetchPaperDetail
: this.type == 2
? this.$request.examQuestionList
: this.$request.periodQuestionList;
}
let params =
this.type == 1
? { paperId: this.$route.query.paperId }
: this.type == 2
? { examId: this.$route.query.paperId }
: {
periodId: this.$route.query.paperId,
};
const { data, status, info } = await detail(params);
|
ee6e7628
梁保满
备题组卷借口数据对接调整
|
970
|
if (status == 0) {
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
971
972
973
974
975
976
977
978
979
980
981
982
|
if (this.type == 1) {
this.paperModifyLog = {
...this.paperModifyLog,
...this.form.paperModifyLog,
};
this.form = deepClone(data);
this.questionList = deepClone(this.form.questionList);
} else {
this.questionList = data.list.sort((a, b) => {
return a.questionIndex - b.questionIndex;
});
}
|
3de13776
梁保满
背题组卷修改答案
|
983
984
985
986
987
|
if (!!this.questionList[0]?.subQuestions) {
this.questionList?.map((item) => {
let types = [{}];
let addndex = 0;
item.subQuestions.map((sub, index) => {
|
76693d69
梁保满
批量设置答案按钮位置
|
988
|
if (!!sub.questionType) {
|
3617eaad
梁保满
长水账号设置
|
989
990
991
992
|
if (
sub.questionType == types[addndex].qusType &&
sub.questionType != 5
) {
|
3de13776
梁保满
背题组卷修改答案
|
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
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
|
//同类型批量答案+1
types[addndex].subNum += 1;
if (
types[addndex].answerOptions.length <
sub.answerOptions.length
) {
types[addndex].answerOptions = sub.answerOptions;
}
types[addndex].answerList += this.setAnswer(
sub.questionType,
sub.correctAnswer
);
if (index == item.subQuestions.length - 1) {
//循环最后类型数量大于等于5,保存批量答案
if (types[addndex].subNum && types[addndex].subNum >= 5) {
types[addndex].endIndex = sub.questionIndex;
types[addndex].index = index;
}
}
} else {
if (types[addndex].subNum && types[addndex].subNum >= 5) {
//不同类型时如果原有类型数量大于等于5,保存批量答案
types[addndex].endIndex =
item.subQuestions[index - 1].questionIndex;
types[addndex].index = index - 1;
addndex += 1;
types[addndex] = {};
}
//不同类型初始化批量答案
types[addndex].qusType = sub.questionType;
types[addndex].subNum = 1;
types[addndex].answerOptions = sub.answerOptions;
types[addndex].answerList = this.setAnswer(
sub.questionType,
sub.correctAnswer
);
}
}
});
for (let i = 0; i < types.length; i++) {
if (types[i].qusType == 3) {
types[i].answerList = types[i].answerList.slice(0, -1);
}
if (types[i].subNum >= 5) {
item.subQuestions.splice(
types[i].index + i + 1,
0,
deepClone(types[i])
);
}
}
});
} else {
let types = [{}];
let addndex = 0;
this.questionList?.map((sub, index) => {
|
76693d69
梁保满
批量设置答案按钮位置
|
1049
|
if (!!sub.questionType) {
|
3617eaad
梁保满
长水账号设置
|
1050
1051
1052
1053
|
if (
sub.questionType == types[addndex].qusType &&
sub.questionType != 5
) {
|
3de13776
梁保满
背题组卷修改答案
|
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
|
//同类型批量答案+1
types[addndex].subNum += 1;
if (
types[addndex].answerOptions.length < sub.answerOptions.length
) {
types[addndex].answerOptions = sub.answerOptions;
}
types[addndex].answerList += this.setAnswer(
sub.questionType,
sub.correctAnswer
);
if (index == this.questionList.length - 1) {
//循环最后类型数量大于等于5,保存批量答案
if (types[addndex].subNum && types[addndex].subNum >= 5) {
types[addndex].endIndex = sub.questionIndex;
types[addndex].index = index;
}
}
} else {
if (types[addndex].subNum && types[addndex].subNum >= 5) {
//不同类型时如果原有类型数量大于等于5,保存批量答案
types[addndex].endIndex =
this.questionList[index - 1].questionIndex;
types[addndex].index = index - 1;
addndex += 1;
types[addndex] = {};
}
//不同类型初始化批量答案
types[addndex].qusType = sub.questionType;
types[addndex].subNum = 1;
types[addndex].answerOptions = sub.answerOptions;
types[addndex].answerList = this.setAnswer(
sub.questionType,
sub.correctAnswer
);
}
}
});
for (let i = 0; i < types.length; i++) {
if (types[i].qusType == 3) {
types[i].answerList = types[i].answerList.slice(0, -1);
}
if (types[i].subNum >= 5) {
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1097
|
this.questionList.splice(
|
3de13776
梁保满
背题组卷修改答案
|
1098
1099
1100
1101
1102
1103
1104
|
types[i].index + i + 1,
0,
deepClone(types[i])
);
}
}
}
|
ee6e7628
梁保满
备题组卷借口数据对接调整
|
1105
|
} else {
|
6fffbd55
阿宝
组卷接口调整
|
1106
|
this.$message.error(info);
|
ee6e7628
梁保满
备题组卷借口数据对接调整
|
1107
1108
|
}
},
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1109
1110
|
},
};
|
4c4f7640
梁保满
路由表,路由前端文件
|
1111
1112
|
</script>
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1113
1114
1115
1116
|
<style lang="scss" scoped>
.content {
width: 100%;
box-sizing: border-box;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1117
|
padding: 0 50px 60px;
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1118
1119
1120
1121
|
.ml-20 {
margin-left: 20px;
}
.btn-box {
|
3617eaad
梁保满
长水账号设置
|
1122
1123
1124
1125
|
width: calc(100% - 240px);
position: fixed;
right: 40px;
bottom: 20px;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1126
|
padding: 10px 0 5px;
|
3617eaad
梁保满
长水账号设置
|
1127
|
background: #fff;
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1128
1129
|
text-align: right;
margin-left: 140px;
|
3617eaad
梁保满
长水账号设置
|
1130
|
z-index: 10;
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
|
}
.tips {
height: 48px;
line-height: 48px;
padding: 0 16px;
border: 1px solid #fac7cc;
background-color: #ffebec;
font-size: 14px;
color: #fd9795;
margin: 10px 0 20px 0;
.fa-bell-o {
font-size: 18px;
margin-right: 5px;
}
}
}
.answer-title {
text-align: center;
font-size: 20px;
color: #333;
font-weight: 700;
|
3617eaad
梁保满
长水账号设置
|
1152
|
padding: 20px 0;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1153
1154
1155
|
&.t-left {
text-align: left;
}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1156
1157
|
.totals {
font-size: 16px;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1158
1159
1160
1161
1162
1163
1164
1165
1166
|
color: #666;
font-weight: normal;
}
.name-box {
display: flex;
white-space: nowrap;
align-items: center;
margin-bottom: 10px;
font-size: 16px;
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1167
|
font-weight: normal;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1168
1169
1170
1171
1172
|
:deep(.el-input__inner) {
font-size: 16px;
color: #333;
font-weight: 700;
}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
|
}
}
.question-title {
line-height: 40px;
.ipt {
width: 300px;
margin: 0 16px 0 10px;
:deep(.el-input__inner) {
border-radius: 20px;
border-color: #667ffd;
background: rgba($color: #667ffd, $alpha: 0.05);
}
}
.delete {
margin-right: 8px;
}
.title-txt {
margin-right: 20px;
font-size: 16px;
font-weight: 700;
}
}
|
3de13776
梁保满
背题组卷修改答案
|
1195
1196
1197
1198
1199
1200
1201
|
.set-ans-btn {
width: 100%;
padding: 10px 0 10px 630px;
box-sizing: border-box;
border-bottom: 1px solid #e2e2e2;
border-right: 1px solid #e2e2e2;
}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1202
1203
1204
|
.el-input-number {
width: 140px;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1205
1206
1207
|
.delete {
margin-left: 8px;
}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
|
.questions-ul {
border-left: 1px solid #e2e2e2;
border-top: 1px solid #e2e2e2;
margin: 12px 0;
}
.sub-questions {
width: 100%;
display: flex;
border-bottom: 1px solid #e2e2e2;
& > div {
min-height: 40px;
padding: 5px;
flex-shrink: 0;
border-right: 1px solid #e2e2e2;
display: flex;
justify-content: center;
align-items: center;
}
.qs-num {
width: 80px;
}
.qs-type {
width: 160px;
}
.qs-score,
.qs-partScore {
width: 160px;
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1236
1237
1238
|
.qs-set {
width: 180px;
}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1239
1240
1241
|
.qs-options {
flex: 1;
}
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1242
1243
1244
1245
|
.qs-options2 {
text-align: left;
justify-content: flex-start;
padding-left: 20px;
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
1246
1247
1248
|
}
.answer-s {
cursor: pointer;
|
13b58a42
梁保满
备题组卷部分前端页面基本完成
|
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
|
}
:deep(.el-select) {
.el-input__inner {
border-radius: 20px;
border-color: #667ffd;
width: 150px;
height: 32px;
line-height: 32px;
background: rgba($color: #667ffd, $alpha: 0.05);
}
.el-input__icon {
line-height: 32px;
}
}
}
|
11a4e518
梁保满
背题组卷修改答案设置,即使测随堂问...
|
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
|
.set-questions {
.answer-box {
.answer-s {
cursor: pointer;
user-select: none;
&:first-of-type {
margin-left: 0;
}
}
}
}
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1275
1276
1277
1278
1279
1280
1281
|
.upload-box {
.upload-demo {
text-align: center;
}
.stem-pic {
display: block;
margin: 0 auto 20px;
|
77da338a
梁保满
自测问题修改
|
1282
1283
|
max-width: 100%;
max-height: 200px;
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
1284
1285
1286
|
object-fit: cover;
}
}
|
4c4f7640
梁保满
路由表,路由前端文件
|
1287
|
</style>
|