77ebf04d
梁保满
个人版
|
1
2
3
4
|
<template>
<div>
<back-box>
<template slot="title">
|
391f66b9
梁保满
异常设备信息显示问题,单题型总分错误
|
5
|
<span>{{ type == 1 ? "修改试卷" : "修改答案" }}</span>
|
77ebf04d
梁保满
个人版
|
6
7
8
|
</template>
</back-box>
<div class="content">
|
4c2f99b0
梁保满
修改组卷
|
9
10
|
<template v-if="type == 1">
<p class="tips" v-if="paperModifyLog.modifiedTime">
|
77ebf04d
梁保满
个人版
|
11
12
13
14
|
<i class="fa fa-bell-o"></i>
{{
`${paperModifyLog.modifiedTime} ${paperModifyLog.realName}`
}}老师修改了答案
|
4c2f99b0
梁保满
修改组卷
|
15
16
|
</p>
</template>
|
391f66b9
梁保满
异常设备信息显示问题,单题型总分错误
|
17
|
<div class="answer-title" :class="type == 1 ? 't-left' : ''">
|
4c2fb560
梁保满
反馈新需求
|
18
19
20
21
22
|
<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>
|
77ebf04d
梁保满
个人版
|
23
24
|
<p class="totals">卷面总分:{{ allScore }}分</p>
</div>
|
4c2f99b0
梁保满
修改组卷
|
25
|
<template v-if="this.form.type == 2">
|
77ebf04d
梁保满
个人版
|
26
27
28
|
<div v-for="(question, index) in questionList" :key="index">
<p class="question-title">
<span>{{ setBigNum(index) }}、</span>
|
4c2f99b0
梁保满
修改组卷
|
29
|
<el-input class="ipt" v-model.trim="question.questionTitle" maxlength="30" placeholder="填写大题名称"></el-input>
|
77ebf04d
梁保满
个人版
|
30
31
32
33
34
35
36
37
38
|
<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>
|
4c2f99b0
梁保满
修改组卷
|
39
40
41
|
<div class="qs-set">题干</div>
<div class="qs-set">题目解析</div>
<div class="qs-set">知识点</div>
|
77ebf04d
梁保满
个人版
|
42
|
</li>
|
4c2f99b0
梁保满
修改组卷
|
43
44
45
46
47
48
|
<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>
|
77ebf04d
梁保满
个人版
|
49
50
51
52
53
54
55
|
</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">
|
4c2f99b0
梁保满
修改组卷
|
56
57
|
<el-input-number class="number-ipt" size="medium" :min="1" :max="200" :precision="2" :step="1"
v-model="subQuestions.score" label="单题分值"></el-input-number>
|
77ebf04d
梁保满
个人版
|
58
59
60
|
</div>
<div class="qs-partScore">
<p v-if="subQuestions.questionType != 3">--</p>
|
4c2f99b0
梁保满
修改组卷
|
61
62
|
<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>
|
77ebf04d
梁保满
个人版
|
63
64
65
66
|
</div>
<div class="qs-options qs-options2">
<p v-if="subQuestions.questionType == 5">--</p>
<p v-if="subQuestions.questionType == 4" class="answer-box">
|
4c2f99b0
梁保满
修改组卷
|
67
68
69
70
|
<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>
|
77ebf04d
梁保满
个人版
|
71
72
|
</p>
<p v-if="subQuestions.questionType == 3" class="answer-box">
|
4c2f99b0
梁保满
修改组卷
|
73
74
75
76
77
|
<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>
|
77ebf04d
梁保满
个人版
|
78
79
80
|
</template>
</p>
<p v-if="subQuestions.questionType == 2" class="answer-box">
|
4c2f99b0
梁保满
修改组卷
|
81
82
83
|
<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>
|
77ebf04d
梁保满
个人版
|
84
85
86
|
</template>
</p>
</div>
|
4c2f99b0
梁保满
修改组卷
|
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
|
<div class="qs-set">
<el-popover placement="right" width="400" trigger="click">
<div class="screenshot-box">
<iframe class="screenshot"
v-if="subQuestions.screenshot && subQuestions.screenshot.includes('html')"
:src="subQuestions.screenshot"></iframe>
<img class="screenshot screenshot-img"
v-if="subQuestions.screenshot && !subQuestions.screenshot.includes('html')"
:src="subQuestions.screenshot" alt="">
<p style="textAlign:center"><el-button type="primary" round size="mini" icon="el-icon-upload"
@click="openStem(subQuestions, index, indexs, 1)">重新选择图片</el-button></p>
</div>
<el-button slot="reference" class="icon-tickets" type="primary" circle size="mini"
icon="el-icon-tickets"></el-button>
</el-popover>
</div>
<div class="qs-set">
<el-popover placement="right" width="400" trigger="click">
<div class="screenshot-box">
<iframe class="screenshot"
v-if="subQuestions.answerScreenshot && subQuestions.answerScreenshot.includes('html')"
:src="subQuestions.answerScreenshot"></iframe>
<img class="screenshot screenshot-img"
v-if="subQuestions.answerScreenshot && !subQuestions.answerScreenshot.includes('html')"
:src="subQuestions.answerScreenshot" alt="">
<p style="textAlign:center"><el-button type="primary" round size="mini" icon="el-icon-upload"
@click="openStem(subQuestions, index, indexs, 2)">重新选择图片</el-button></p>
</div>
<el-button slot="reference" class="icon-tickets" type="primary" circle size="mini"
icon="el-icon-tickets"></el-button>
</el-popover>
</div>
<div class="qs-set">
<el-button type="primary" circle size="mini" icon="el-icon-price-tag"
@click="openKnowledge(subQuestions, index, indexs)"></el-button>
</div>
|
77ebf04d
梁保满
个人版
|
123
124
125
126
127
128
129
130
131
132
133
134
|
</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>
<div class="qs-options qs-options2">答案</div>
|
4c2f99b0
梁保满
修改组卷
|
135
|
<div class="qs-set">题干</div>
|
77ebf04d
梁保满
个人版
|
136
137
|
</li>
<li v-for="(subQuestions, indexs) in questionList" :key="indexs">
|
4c2f99b0
梁保满
修改组卷
|
138
139
140
141
142
|
<p class="set-ans-btn" v-if="subQuestions.qusType &&
subQuestions.subNum &&
subQuestions.subNum > 4
">
<el-button type="primary" @click="setFormAns(indexs)">批量设置答案</el-button>
|
77ebf04d
梁保满
个人版
|
143
144
145
146
147
148
149
150
151
152
153
|
</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">
{{ subQuestions.score }}
</div>
<div class="qs-partScore">
<p v-if="subQuestions.questionType != 3">--</p>
|
4c2f99b0
梁保满
修改组卷
|
154
155
|
<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>
|
77ebf04d
梁保满
个人版
|
156
157
158
159
|
</div>
<div class="qs-options qs-options2">
<p v-if="subQuestions.questionType == 5">--</p>
<p v-if="subQuestions.questionType == 4" class="answer-box">
|
4c2f99b0
梁保满
修改组卷
|
160
161
162
163
|
<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>
|
77ebf04d
梁保满
个人版
|
164
165
|
</p>
<p v-if="subQuestions.questionType == 3" class="answer-box">
|
4c2f99b0
梁保满
修改组卷
|
166
167
168
169
170
|
<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>
|
77ebf04d
梁保满
个人版
|
171
172
173
|
</template>
</p>
<p v-if="subQuestions.questionType == 2" class="answer-box">
|
4c2f99b0
梁保满
修改组卷
|
174
175
176
|
<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>
|
77ebf04d
梁保满
个人版
|
177
178
179
|
</template>
</p>
</div>
|
4c2f99b0
梁保满
修改组卷
|
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
|
<div class="qs-set">
<el-popover placement="right" width="400" trigger="click">
<div class="screenshot-box">
<iframe class="screenshot" v-if="subQuestions.screenshot && subQuestions.screenshot.includes('html')"
:src="subQuestions.screenshot"></iframe>
<img class="screenshot screenshot-img"
v-if="subQuestions.screenshot && !subQuestions.screenshot.includes('html')"
:src="subQuestions.screenshot" alt="">
<p style="textAlign:center"><el-button type="primary" round size="mini" icon="el-icon-upload"
@click="openStem(subQuestions, indexs, null, 1)">重新选择图片</el-button></p>
</div>
<el-button slot="reference" class="icon-tickets" type="primary" circle size="mini"
icon="el-icon-tickets"></el-button>
</el-popover>
</div>
<div class="qs-set">
<el-popover placement="right" width="400" trigger="click">
<div class="screenshot-box">
<iframe class="screenshot"
v-if="subQuestions.answerScreenshot && subQuestions.answerScreenshot.includes('html')"
:src="subQuestions.answerScreenshot"></iframe>
<img class="screenshot screenshot-img"
v-if="subQuestions.answerScreenshot && !subQuestions.answerScreenshot.includes('html')"
:src="subQuestions.answerScreenshot" alt="">
<p style="textAlign:center"><el-button type="primary" round size="mini" icon="el-icon-upload"
@click="openStem(subQuestions, indexs, null, 2)">重新选择图片</el-button></p>
</div>
<el-button slot="reference" class="icon-tickets" type="primary" circle size="mini"
icon="el-icon-tickets"></el-button>
</el-popover>
</div>
<div class="qs-set">
<el-button type="primary" circle size="mini" icon="el-icon-price-tag"
@click="openKnowledge(subQuestions, index, indexs)"></el-button>
</div>
|
77ebf04d
梁保满
个人版
|
215
216
217
218
219
220
221
|
</div>
</li>
</ul>
<div class="btn-box">
<el-button type="danger" plain round @click="linkBack">取消</el-button>
<el-button type="primary" round @click="save">保存</el-button>
</div>
|
4c2f99b0
梁保满
修改组卷
|
222
223
|
<el-dialog :close-on-click-modal="false" title="批量设置答案" :visible.sync="diaSetAns" width="400"
:modal-append-to-body="false">
|
77ebf04d
梁保满
个人版
|
224
225
226
227
228
229
|
<div class="qs-options set-questions">
<p class="dia-tips">
请点击选项按钮设置答案,多选题题目之间用“,”隔开,若添加5道题:“AC,AD,BD,AC,CD”
</p>
<p>{{ setSubPro(formAns.qusType) }}:</p>
<p class="ipt">
|
4c2f99b0
梁保满
修改组卷
|
230
|
<el-input ref="formAnsIpt" v-if="formAns.qusType == 2 || formAns.qusType == 3" v-model="formAns.answerList"
|
77ebf04d
梁保满
个人版
|
231
|
@keydown.native="keydownAnswer($event, formAns.qusType)"
|
4c2f99b0
梁保满
修改组卷
|
232
233
|
@input="setAllAnswer($event, formAns.qusType)"></el-input>
<el-input v-if="formAns.qusType == 4" v-model="formAns.answerList" readonly=""></el-input>
|
77ebf04d
梁保满
个人版
|
234
235
236
|
</p>
<p class="answer-box">
<template v-if="formAns.qusType == 4">
|
4c2f99b0
梁保满
修改组卷
|
237
238
239
240
241
242
243
244
245
246
|
<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>
|
77ebf04d
梁保满
个人版
|
247
248
|
</template>
<template v-if="formAns.qusType == 3">
|
4c2f99b0
梁保满
修改组卷
|
249
250
251
|
<span class="answer-s active" v-for="option in formAns.answerOptions.split(',')" :key="option"
@click="setMultiple(formAns, option)">{{ option }}</span>
<span class="answer-s active" @click="setMultiple(formAns, ',')">,</span>
|
77ebf04d
梁保满
个人版
|
252
|
</template>
|
c2460294
梁保满
平台管理员接口联调
|
253
|
<template v-if="formAns.qusType == 2">
|
4c2f99b0
梁保满
修改组卷
|
254
255
256
257
258
|
<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>
|
77ebf04d
梁保满
个人版
|
259
|
</template>
|
4c2f99b0
梁保满
修改组卷
|
260
|
<span class="answer-s delButton" @click="formAns.answerList = formAns.answerList.slice(0, -1)">x</span>
|
77ebf04d
梁保满
个人版
|
261
262
263
264
265
266
267
268
|
<span class="answer-s ac" @click="formAns.answerList = ''">ac</span>
</p>
</div>
<div class="dialog-footer" slot="footer">
<el-button @click="saveFormAns">确 定</el-button>
<el-button @click="diaSetAns = false">取 消</el-button>
</div>
</el-dialog>
|
4c2f99b0
梁保满
修改组卷
|
269
270
271
272
273
274
275
276
277
278
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
306
|
<el-dialog :close-on-click-modal="false" :title="stem.type == 1 ? '上传题干' : '上传题目解析'" :visible.sync="dialogStem"
v-if="dialogStem" width="500">
<div class="upload-box">
<template v-show="stem.type == 1">
<img v-if="stem.screenshot && !stem.screenshot.includes('html')" :src="stem.screenshot" class="stem-pic" />
</template>
<template v-show="stem.type == 2">
<img v-if="stem.answerScreenshot && !stem.answerScreenshot.includes('html')" :src="stem.answerScreenshot"
class="stem-pic" />
</template>
<el-upload class="upload-demo" action="http://121.40.127.171/file/uploadImg" :limit="1" :on-success="upSuccess"
:on-error="upError" accept="image/*">
<el-button v-show="stem.type == 1" size="small" type="primary">{{
stem.screenshot && !stem.screenshot.includes('html') ? "重新上传" : "选择照片"
}}</el-button>
<el-button v-show="stem.type == 2" size="small" type="primary">{{
stem.answerScreenshot && !stem.answerScreenshot.includes('html') ? "重新上传" : "选择照片"
}}</el-button>
</el-upload>
</div>
<div slot="footer">
<el-button @click="dialogStem = false">确定</el-button>
</div>
</el-dialog>
<el-dialog :close-on-click-modal="false" title="知识点" :visible.sync="dialogKnowledge" width="500">
<div>
<el-form ref="form" :model="stem" label-width="160px">
<el-form-item label="知识点:">
<el-cascader size="small" filterable :show-all-levels="false" collapse clearable placeholder="选择知识点"
v-model="stem.knowledge" :options="knowledgeData" :props="{ expandTrigger: 'hover' }"></el-cascader>
</el-form-item>
</el-form>
</div>
<div slot="footer">
<el-button @click="dialogKnowledge = false">取 消</el-button>
<el-button type="primary" @click="setKnowledge">确 定</el-button>
</div>
</el-dialog>
|
77ebf04d
梁保满
个人版
|
307
308
309
310
311
312
|
</div>
</div>
</template>
<script>
import { deepClone, checkAnswer } from "utils";
|
4c2f99b0
梁保满
修改组卷
|
313
|
import knowledgeList from "assets/js/knowledgeList.js";
|
77ebf04d
梁保满
个人版
|
314
315
316
|
export default {
data() {
return {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
317
|
role: "",
|
77ebf04d
梁保满
个人版
|
318
319
320
321
322
|
title: "",
type: 1,
questionList: [],
form: {
//答题卡详情
|
4c2f99b0
梁保满
修改组卷
|
323
|
type: 2,
|
77ebf04d
梁保满
个人版
|
324
325
326
327
|
title: "",
tag: "",
subjectId: "",
examsDuration: 90,
|
4c2f99b0
梁保满
修改组卷
|
328
|
sectionName: "",
|
77ebf04d
梁保满
个人版
|
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
|
gradeName: "",
share: 1,
questionList: [],
},
paperModifyLog: {
realName: "",
modifiedTime: "",
},
diaSetAns: false,
formAns: {
listIndex: 0, //大题位置
endIndex: 0, //相同题目最后一位题目的questionIndex
index: 0,
qusType: "", //题目类型
subNum: 0, //数量
answerOptions: [], //答案选项
answerList: "", //答案列表-字符串
},
|
4c2f99b0
梁保满
修改组卷
|
347
348
349
350
351
352
353
354
355
356
357
358
359
|
//v1.5
dialogStem: false, //截图开关
dialogKnowledge: false, //知识点开关
knowledgeList: { ...knowledgeList },
stem: {
type: 1,
index: 0, //大题位置
indexs: 0, //小题位置
screenshot: "", //题干图片地址
answerScreenshot: "", //题目解析图片地址
knowledge: [], //知识点
},
|
77ebf04d
梁保满
个人版
|
360
361
362
363
364
365
366
367
368
369
370
|
};
},
computed: {
allScore: function () {
let score = 0;
this.questionList?.map((item) => {
if (item.subQuestions) {
score += item.subQuestions.reduce((a, b) => {
return a + (Number(b.score) || 0);
}, 0);
} else {
|
391f66b9
梁保满
异常设备信息显示问题,单题型总分错误
|
371
|
score += (item.score || 0);
|
77ebf04d
梁保满
个人版
|
372
373
374
375
|
}
}, 0);
return Number(score).toFixed(2);
},
|
4c2f99b0
梁保满
修改组卷
|
376
377
378
379
|
// 知识点列表 根据学段-科目筛选
knowledgeData: function () {
let jsons = []
if (this.form.sectionName && this.form.subjectName) {
|
d01c5799
梁保满
随堂问 报表开发
|
380
381
|
let sectionName = this.form.sectionName || null
let subjectName = this.form.subjectName || null
|
4c2f99b0
梁保满
修改组卷
|
382
383
384
385
386
387
388
389
|
if (sectionName && Object.keys(this.knowledgeList).includes(sectionName)) {
if (Object.keys(this.knowledgeList[sectionName]).includes(subjectName)) {
jsons = this.knowledgeList[sectionName][subjectName]
}
}
}
return jsons
},
|
77ebf04d
梁保满
个人版
|
390
391
|
},
created() {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
392
393
394
|
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
|
77ebf04d
梁保满
个人版
|
395
|
this.type = this.$route.query.type || 1;
|
4c2fb560
梁保满
反馈新需求
|
396
|
this.form.title = this.$route.query.title || "";
|
77ebf04d
梁保满
个人版
|
397
|
this._QueryDetail();
|
4c2f99b0
梁保满
修改组卷
|
398
|
this._GradeList()
|
77ebf04d
梁保满
个人版
|
399
400
|
},
methods: {
|
4c2f99b0
梁保满
修改组卷
|
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
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
|
// v1.5
//上传截图
openStem(obj, index, indexs, type) {
this.stem.index = index;
this.stem.indexs = indexs;
if (type == 1) {
this.stem.screenshot = obj.screenshot || "";
this.stem.answerScreenshot = "";
} else {
this.stem.answerScreenshot = obj.answerScreenshot || "";
this.stem.screenshot = "";
}
this.dialogStem = true;
},
//图片上传成功
upSuccess(res, file) {
if (res && res.status == 0) {
this.stem.screenshot = res.data.url;
// this.form.questionList[this.stem.index].subQuestions[this.stem.indexs].screenshot = this.stem.screenshot;
if (this.stem.type == 1) {
if (this.form.type == 2) {
this.questionList[this.stem.index].subQuestions[this.stem.indexs].screenshot = this.stem.screenshot;
} else {
this.questionList[this.stem.index].screenshot = this.stem.screenshot;
}
} else {
if (this.form.type == 2) {
this.questionList[this.stem.index].subQuestions[this.stem.indexs].answerScreenshot = this.stem.answerScreenshot;
} else {
this.questionList[this.stem.index].answerScreenshot = this.stem.answerScreenshot;
}
}
this.$message.success("上传成功");
} else {
this.$message.error(res.info);
}
},
upError(res) {
this.$message.error("上传失败");
},
// 打开知识点
openKnowledge(obj, index, indexs) {
this.stem.index = index;
this.stem.indexs = indexs;
this.stem.knowledge = (obj.knowledge && obj.knowledge.split(",")) || [];
this.dialogKnowledge = true;
},
// 选择知识点
setKnowledge() {
if (this.form.type == 2) {
this.questionList[this.stem.index].subQuestions[
this.stem.indexs
].knowledge = this.stem.knowledge.join(",");
} else {
this.questionList[this.stem.index].knowledge = this.stem.knowledge.join(",");
}
this.dialogKnowledge = false;
},
//end
|
77ebf04d
梁保满
个人版
|
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
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
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
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
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
|
linkBack() {
this.$router.go(-1);
},
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) => {
return a + (b.score || 0);
}, 0);
return Number(score).toFixed(2);
},
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("");
}
},
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;
},
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,
};
}
},
|
4c2f99b0
梁保满
修改组卷
|
595
|
//多选答案设置
|
77ebf04d
梁保满
个人版
|
596
|
setMultiple(obj, answer) {
|
77ebf04d
梁保满
个人版
|
597
598
599
600
601
602
603
604
605
606
607
608
609
|
let resault = this.insertTxtAndSetcursor(obj.answerList || "", answer);
obj.answerList = resault.text;
let str = obj.answerList;
let str2 = checkAnswer(
str,
3,
obj.answerOptions.split(",").length,
obj.subNum
);
obj.answerList = str2;
this.$refs.formAnsIpt.$el.children[0].focus();
this.$refs.formAnsIpt.$el.children[0].selectionStart = resault.startPos;
},
|
4c2f99b0
梁保满
修改组卷
|
610
|
//初始化要修改的答案
|
77ebf04d
梁保满
个人版
|
611
|
setFormAns(indexs, index) {
|
4c2f99b0
梁保满
修改组卷
|
612
613
|
let answerList = "";
if (this.form.type == 2) {
|
77ebf04d
梁保满
个人版
|
614
615
|
this.formAns = { ...this.questionList[index].subQuestions[indexs] };
this.formAns.listIndex = index;
|
4c2f99b0
梁保满
修改组卷
|
616
|
let startIndex = indexs - this.formAns.subNum; //批量设置大难开始位置
|
77ebf04d
梁保满
个人版
|
617
|
this.questionList[index].subQuestions.map((item, subIdx) => {
|
4c2f99b0
梁保满
修改组卷
|
618
|
if (subIdx >= startIndex && subIdx < indexs) {
|
77ebf04d
梁保满
个人版
|
619
|
answerList += this.setAnswer(item.questionType, item.correctAnswer);
|
4c2f99b0
梁保满
修改组卷
|
620
621
|
if (item.qusType == 3) {
answerList = answerList.slice(0, -1);
|
77ebf04d
梁保满
个人版
|
622
623
624
625
626
|
}
}
});
} else {
this.formAns = { ...this.questionList[indexs] };
|
4c2f99b0
梁保满
修改组卷
|
627
628
|
let startIndex = indexs - this.formAns.subNum; //批量设置开始位置
this.formAns.answerList = [];
|
77ebf04d
梁保满
个人版
|
629
|
this.formAns.listIndex = indexs;
|
77ebf04d
梁保满
个人版
|
630
|
this.questionList.map((item, subIdx) => {
|
4c2f99b0
梁保满
修改组卷
|
631
|
if (subIdx >= startIndex && subIdx < indexs) {
|
77ebf04d
梁保满
个人版
|
632
|
answerList += this.setAnswer(item.questionType, item.correctAnswer);
|
4c2f99b0
梁保满
修改组卷
|
633
634
|
if (item.qusType == 3) {
answerList = answerList.slice(0, -1);
|
77ebf04d
梁保满
个人版
|
635
636
637
638
|
}
}
});
}
|
4c2f99b0
梁保满
修改组卷
|
639
|
this.formAns.answerList = answerList;
|
77ebf04d
梁保满
个人版
|
640
641
642
643
644
645
|
this.diaSetAns = true;
},
saveFormAns() {
//批量修改答案
let EndIndex;
let subNum = this.formAns.subNum - 1;
|
4c2f99b0
梁保满
修改组卷
|
646
|
if (this.form.type == 2) {
|
77ebf04d
梁保满
个人版
|
647
648
649
650
|
this.questionList[this.formAns.listIndex].subQuestions.some(
(item, index) => {
if (this.formAns.endIndex == item.questionIndex) {
EndIndex = index;
|
77ebf04d
梁保满
个人版
|
651
|
}
|
4c2f99b0
梁保满
修改组卷
|
652
|
return this.formAns.endIndex == item.questionIndex
|
77ebf04d
梁保满
个人版
|
653
654
655
656
657
658
|
}
);
} else {
this.questionList.some((item, index) => {
if (this.formAns.endIndex == item.questionIndex) {
EndIndex = index;
|
77ebf04d
梁保满
个人版
|
659
|
}
|
4c2f99b0
梁保满
修改组卷
|
660
|
return this.formAns.endIndex == item.questionIndex
|
77ebf04d
梁保满
个人版
|
661
662
663
664
665
666
667
668
669
670
671
672
673
674
|
});
}
for (let i = 0; i <= subNum; i++) {
let correctAnswer = "";
if (this.formAns.qusType == 2) {
correctAnswer = this.formAns.answerList[subNum - i] || "";
} else if (this.formAns.qusType == 3) {
correctAnswer = this.formAns.answerList.split(",")[subNum - i] || "";
} else if (this.formAns.qusType == 4) {
correctAnswer =
this.formAns.answerList[subNum - i] == "✓"
? 1
: this.formAns.answerList[subNum - i] == "✗"
|
4c2f99b0
梁保满
修改组卷
|
675
676
|
? 2
: "";
|
77ebf04d
梁保满
个人版
|
677
|
}
|
4c2f99b0
梁保满
修改组卷
|
678
|
if (this.form.type == 2) {
|
77ebf04d
梁保满
个人版
|
679
680
681
682
683
684
685
686
687
688
689
|
this.questionList[this.formAns.listIndex].subQuestions[
EndIndex - i
].correctAnswer = correctAnswer;
} else {
this.questionList[EndIndex - i].correctAnswer = correctAnswer;
}
}
this.diaSetAns = false;
},
async save() {
for (let i = 0; i < this.questionList.length; i++) {
|
4c2f99b0
梁保满
修改组卷
|
690
|
if (this.form.type == 2) {
|
77ebf04d
梁保满
个人版
|
691
692
693
|
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);
|
77ebf04d
梁保满
个人版
|
694
695
696
697
698
699
|
}
}
} else {
if (this.questionList[i].qusType) {
this.questionList.splice(i, 1);
i--;
|
77ebf04d
梁保满
个人版
|
700
701
702
703
704
705
706
707
708
709
710
711
|
}
}
}
let questionList = this.questionList.map((item) => {
item.score = null;
// item.questionId = "";
// item.questionIndex = "";
return item;
});
//更新答题卡
let modifyPaper, params;
if (this.type == 1) {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
712
713
714
715
|
modifyPaper =
this.role == "ROLE_PERSONAL"
? this.$request.pModifyPaper
: this.$request.modifyPaper;
|
77ebf04d
梁保满
个人版
|
716
717
718
719
720
|
params = {
paperId: this.$route.query.paperId,
questionList: questionList,
};
} else if (this.type == 2) {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
721
722
723
724
|
modifyPaper =
this.role == "ROLE_PERSONAL"
? this.$request.pSetExamAnswer
: this.$request.setExamAnswer;
|
77ebf04d
梁保满
个人版
|
725
726
727
728
729
|
params = {
examId: this.$route.query.paperId,
questionList: questionList,
};
} else {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
730
731
732
733
|
modifyPaper =
this.role == "ROLE_PERSONAL"
? this.$request.pSetPeriodAnswer
: this.$request.setPeriodAnswer;
|
77ebf04d
梁保满
个人版
|
734
735
736
737
738
|
params = {
periodId: this.$route.query.paperId,
questionList: questionList,
};
}
|
4c2fb560
梁保满
反馈新需求
|
739
740
741
742
|
const { data, status, info } = await modifyPaper({
title: this.form.title,
...params,
});
|
77ebf04d
梁保满
个人版
|
743
744
745
746
747
748
749
750
|
if (status == 0) {
this.$router.go(-1);
} else {
this.$message.error(message);
}
},
async _QueryDetail() {
//查询详情
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
751
752
753
754
755
756
|
let detail;
if (this.role == "ROLE_PERSONAL") {
detail =
this.type == 1
? this.$request.pPaperDetail
: this.type == 2
|
4c2f99b0
梁保满
修改组卷
|
757
758
|
? this.$request.pExamQuestionList
: this.$request.pPeriodQuestionList;
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
759
760
761
|
} else {
detail =
this.type == 1
|
11cb8ce0
梁保满
样式调整
|
762
|
? this.$request.fetchPaperDetail
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
763
|
: this.type == 2
|
4c2f99b0
梁保满
修改组卷
|
764
765
|
? this.$request.examQuestionList
: this.$request.periodQuestionList;
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
766
|
}
|
77ebf04d
梁保满
个人版
|
767
768
769
770
|
let params =
this.type == 1
? { paperId: this.$route.query.paperId }
: this.type == 2
|
4c2f99b0
梁保满
修改组卷
|
771
772
|
? { examId: this.$route.query.paperId }
: {
|
77ebf04d
梁保满
个人版
|
773
774
775
776
777
|
periodId: this.$route.query.paperId,
};
const { data, status, info } = await detail(params);
if (status == 0) {
if (this.type == 1) {
|
4c2f99b0
梁保满
修改组卷
|
778
|
//修改答案信息
|
77ebf04d
梁保满
个人版
|
779
780
781
782
783
784
785
786
787
788
789
|
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;
});
}
|
4c2f99b0
梁保满
修改组卷
|
790
791
792
793
794
795
796
797
798
|
this.form.type = 2
this.formateQuestion()
} else {
this.$message.error(info);
}
},
formateQuestion() {
if (this.form.type == 2) {
this.questionList?.map((item) => {
|
77ebf04d
梁保满
个人版
|
799
800
|
let types = [{}];
let addndex = 0;
|
4c2f99b0
梁保满
修改组卷
|
801
|
item.subQuestions.map((sub, index) => {
|
77ebf04d
梁保满
个人版
|
802
803
804
805
806
807
808
809
|
if (!!sub.questionType) {
if (
sub.questionType == types[addndex].qusType &&
sub.questionType != 5
) {
//同类型批量答案+1
types[addndex].subNum += 1;
if (
|
4c2f99b0
梁保满
修改组卷
|
810
811
|
types[addndex].answerOptions.length <
sub.answerOptions.length
|
77ebf04d
梁保满
个人版
|
812
813
814
815
816
817
818
|
) {
types[addndex].answerOptions = sub.answerOptions;
}
types[addndex].answerList += this.setAnswer(
sub.questionType,
sub.correctAnswer
);
|
4c2f99b0
梁保满
修改组卷
|
819
|
if (index == item.subQuestions.length - 1) {
|
77ebf04d
梁保满
个人版
|
820
821
822
823
824
825
826
827
828
829
|
//循环最后类型数量大于等于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 =
|
4c2f99b0
梁保满
修改组卷
|
830
|
item.subQuestions[index - 1].questionIndex;
|
77ebf04d
梁保满
个人版
|
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
|
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) {
|
4c2f99b0
梁保满
修改组卷
|
851
|
item.subQuestions.splice(
|
77ebf04d
梁保满
个人版
|
852
853
854
855
856
857
|
types[i].index + i + 1,
0,
deepClone(types[i])
);
}
}
|
4c2f99b0
梁保满
修改组卷
|
858
|
});
|
77ebf04d
梁保满
个人版
|
859
|
} else {
|
4c2f99b0
梁保满
修改组卷
|
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
|
let types = [{}];
let addndex = 0;
this.questionList?.map((sub, index) => {
if (!!sub.questionType) {
if (
sub.questionType == types[addndex].qusType &&
sub.questionType != 5
) {
//同类型批量答案+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) {
this.questionList.splice(
types[i].index + i + 1,
0,
deepClone(types[i])
);
}
}
|
77ebf04d
梁保满
个人版
|
918
919
920
921
922
923
924
925
926
927
|
}
},
},
};
</script>
<style lang="scss" scoped>
.content {
width: 100%;
box-sizing: border-box;
|
11cb8ce0
梁保满
样式调整
|
928
|
padding: 0 50px 60px;
|
4c2f99b0
梁保满
修改组卷
|
929
|
|
77ebf04d
梁保满
个人版
|
930
931
932
|
.ml-20 {
margin-left: 20px;
}
|
4c2f99b0
梁保满
修改组卷
|
933
|
|
77ebf04d
梁保满
个人版
|
934
|
.btn-box {
|
11cb8ce0
梁保满
样式调整
|
935
936
937
938
|
width: calc(100% - 240px);
position: fixed;
right: 40px;
bottom: 20px;
|
e5e4a3e6
梁保满
v1.3
|
939
|
padding: 10px 0 5px;
|
11cb8ce0
梁保满
样式调整
|
940
|
background: #fff;
|
77ebf04d
梁保满
个人版
|
941
942
|
text-align: right;
margin-left: 140px;
|
11cb8ce0
梁保满
样式调整
|
943
|
z-index: 10;
|
77ebf04d
梁保满
个人版
|
944
|
}
|
4c2f99b0
梁保满
修改组卷
|
945
|
|
77ebf04d
梁保满
个人版
|
946
947
948
949
950
951
952
953
954
|
.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;
|
4c2f99b0
梁保满
修改组卷
|
955
|
|
77ebf04d
梁保满
个人版
|
956
957
958
959
960
961
|
.fa-bell-o {
font-size: 18px;
margin-right: 5px;
}
}
}
|
4c2f99b0
梁保满
修改组卷
|
962
|
|
77ebf04d
梁保满
个人版
|
963
964
965
966
967
968
|
.answer-title {
text-align: center;
font-size: 20px;
color: #333;
font-weight: 700;
padding: 20px 0;
|
4c2f99b0
梁保满
修改组卷
|
969
|
|
391f66b9
梁保满
异常设备信息显示问题,单题型总分错误
|
970
|
&.t-left {
|
4c2fb560
梁保满
反馈新需求
|
971
972
|
text-align: left;
}
|
4c2f99b0
梁保满
修改组卷
|
973
|
|
77ebf04d
梁保满
个人版
|
974
975
|
.totals {
font-size: 16px;
|
4c2fb560
梁保满
反馈新需求
|
976
977
978
|
color: #666;
font-weight: normal;
}
|
4c2f99b0
梁保满
修改组卷
|
979
|
|
4c2fb560
梁保满
反馈新需求
|
980
981
982
983
984
985
|
.name-box {
display: flex;
white-space: nowrap;
align-items: center;
margin-bottom: 10px;
font-size: 16px;
|
77ebf04d
梁保满
个人版
|
986
|
font-weight: normal;
|
4c2f99b0
梁保满
修改组卷
|
987
|
|
4c2fb560
梁保满
反馈新需求
|
988
989
990
991
992
|
:deep(.el-input__inner) {
font-size: 16px;
color: #333;
font-weight: 700;
}
|
77ebf04d
梁保满
个人版
|
993
994
|
}
}
|
4c2f99b0
梁保满
修改组卷
|
995
|
|
77ebf04d
梁保满
个人版
|
996
997
|
.question-title {
line-height: 40px;
|
4c2f99b0
梁保满
修改组卷
|
998
|
|
77ebf04d
梁保满
个人版
|
999
1000
1001
|
.ipt {
width: 300px;
margin: 0 16px 0 10px;
|
4c2f99b0
梁保满
修改组卷
|
1002
|
|
77ebf04d
梁保满
个人版
|
1003
1004
1005
1006
1007
1008
|
:deep(.el-input__inner) {
border-radius: 20px;
border-color: #667ffd;
background: rgba($color: #667ffd, $alpha: 0.05);
}
}
|
4c2f99b0
梁保满
修改组卷
|
1009
|
|
77ebf04d
梁保满
个人版
|
1010
1011
1012
|
.delete {
margin-right: 8px;
}
|
4c2f99b0
梁保满
修改组卷
|
1013
|
|
77ebf04d
梁保满
个人版
|
1014
1015
1016
1017
1018
1019
|
.title-txt {
margin-right: 20px;
font-size: 16px;
font-weight: 700;
}
}
|
4c2f99b0
梁保满
修改组卷
|
1020
|
|
77ebf04d
梁保满
个人版
|
1021
1022
1023
1024
1025
1026
1027
|
.set-ans-btn {
width: 100%;
padding: 10px 0 10px 630px;
box-sizing: border-box;
border-bottom: 1px solid #e2e2e2;
border-right: 1px solid #e2e2e2;
}
|
4c2f99b0
梁保满
修改组卷
|
1028
|
|
77ebf04d
梁保满
个人版
|
1029
1030
1031
|
.el-input-number {
width: 140px;
}
|
4c2f99b0
梁保满
修改组卷
|
1032
|
|
d703d72c
梁保满
首页,个人信息,班级名单,部分备题...
|
1033
1034
1035
|
.delete {
margin-left: 8px;
}
|
4c2f99b0
梁保满
修改组卷
|
1036
|
|
77ebf04d
梁保满
个人版
|
1037
1038
1039
1040
1041
|
.questions-ul {
border-left: 1px solid #e2e2e2;
border-top: 1px solid #e2e2e2;
margin: 12px 0;
}
|
4c2f99b0
梁保满
修改组卷
|
1042
|
|
77ebf04d
梁保满
个人版
|
1043
1044
1045
1046
|
.sub-questions {
width: 100%;
display: flex;
border-bottom: 1px solid #e2e2e2;
|
4c2f99b0
梁保满
修改组卷
|
1047
1048
|
&>div {
|
77ebf04d
梁保满
个人版
|
1049
1050
1051
1052
1053
1054
1055
1056
|
min-height: 40px;
padding: 5px;
flex-shrink: 0;
border-right: 1px solid #e2e2e2;
display: flex;
justify-content: center;
align-items: center;
}
|
4c2f99b0
梁保满
修改组卷
|
1057
|
|
77ebf04d
梁保满
个人版
|
1058
1059
1060
|
.qs-num {
width: 80px;
}
|
4c2f99b0
梁保满
修改组卷
|
1061
|
|
77ebf04d
梁保满
个人版
|
1062
1063
1064
|
.qs-type {
width: 160px;
}
|
4c2f99b0
梁保满
修改组卷
|
1065
|
|
77ebf04d
梁保满
个人版
|
1066
1067
1068
1069
|
.qs-score,
.qs-partScore {
width: 160px;
}
|
4c2f99b0
梁保满
修改组卷
|
1070
|
|
77ebf04d
梁保满
个人版
|
1071
|
.qs-set {
|
4c2f99b0
梁保满
修改组卷
|
1072
|
width: 60px;
|
77ebf04d
梁保满
个人版
|
1073
|
}
|
4c2f99b0
梁保满
修改组卷
|
1074
|
|
77ebf04d
梁保满
个人版
|
1075
1076
1077
|
.qs-options {
flex: 1;
}
|
4c2f99b0
梁保满
修改组卷
|
1078
|
|
77ebf04d
梁保满
个人版
|
1079
1080
1081
1082
1083
|
.qs-options2 {
text-align: left;
justify-content: flex-start;
padding-left: 20px;
}
|
4c2f99b0
梁保满
修改组卷
|
1084
|
|
77ebf04d
梁保满
个人版
|
1085
1086
1087
|
.answer-s {
cursor: pointer;
}
|
4c2f99b0
梁保满
修改组卷
|
1088
|
|
77ebf04d
梁保满
个人版
|
1089
1090
1091
1092
1093
1094
1095
1096
1097
|
: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);
}
|
4c2f99b0
梁保满
修改组卷
|
1098
|
|
77ebf04d
梁保满
个人版
|
1099
1100
1101
1102
1103
|
.el-input__icon {
line-height: 32px;
}
}
}
|
4c2f99b0
梁保满
修改组卷
|
1104
|
|
77ebf04d
梁保满
个人版
|
1105
1106
1107
1108
1109
|
.set-questions {
.answer-box {
.answer-s {
cursor: pointer;
user-select: none;
|
4c2f99b0
梁保满
修改组卷
|
1110
|
|
77ebf04d
梁保满
个人版
|
1111
1112
1113
1114
1115
1116
|
&:first-of-type {
margin-left: 0;
}
}
}
}
|
4c2f99b0
梁保满
修改组卷
|
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
|
.upload-box {
.upload-demo {
text-align: center;
}
.stem-pic {
display: block;
margin: 0 auto 20px;
height: 200px;
object-fit: cover;
}
}
|
77ebf04d
梁保满
个人版
|
1130
|
</style>
|