@zykjcommon/questions 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zykjcommon-questions.common.js +146 -53
- package/dist/zykjcommon-questions.umd.js +146 -53
- package/dist/zykjcommon-questions.umd.min.js +3 -3
- package/package.json +4 -4
- package/src/assets/scss/questions/zykjcommon-questions.scss +17 -12
- package/src/components/questions/Question_Classify.vue +119 -33
- package/src/main.ts +1 -1
- package/src/views/exam/FullScreen.vue +149 -101
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
<component :is="responsiveObj.curQuestionInfo.questionComponent"
|
|
6
6
|
:bus="eventBus"
|
|
7
7
|
:questionInfo="responsiveObj.curQuestionInfo"
|
|
8
|
+
:screenRepairH="140"
|
|
9
|
+
:screenScale="1.08"
|
|
8
10
|
:ref="'question'"/>
|
|
9
11
|
</div>
|
|
10
|
-
<div class="footer"></div>
|
|
12
|
+
<div class="footer" @click="submit"></div>
|
|
11
13
|
</div>
|
|
12
14
|
</template>
|
|
13
15
|
|
|
@@ -110,123 +112,162 @@ export default defineComponent({
|
|
|
110
112
|
"question_list": [
|
|
111
113
|
{
|
|
112
114
|
"question_type_str": "分类题",
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
+
"is_need_judge": "",
|
|
116
|
+
"read_audio_url": "",
|
|
115
117
|
"is_auto_check": "",
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"options_data": [
|
|
120
|
-
{
|
|
121
|
-
"file_url": "",
|
|
122
|
-
"content_type": 1,
|
|
123
|
-
"file_type": 0,
|
|
124
|
-
"name": "",
|
|
125
|
-
"id": 0,
|
|
126
|
-
"thumbnail_url": "",
|
|
127
|
-
"option_content": "late, angry"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"file_url": "",
|
|
131
|
-
"content_type": 1,
|
|
132
|
-
"file_type": 0,
|
|
133
|
-
"name": "",
|
|
134
|
-
"id": 0,
|
|
135
|
-
"thumbnail_url": "",
|
|
136
|
-
"option_content": "lately, angrily"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"file_url": "",
|
|
140
|
-
"content_type": 1,
|
|
141
|
-
"file_type": 0,
|
|
142
|
-
"name": "",
|
|
143
|
-
"id": 0,
|
|
144
|
-
"thumbnail_url": "",
|
|
145
|
-
"option_content": " late, angrily"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"file_url": "",
|
|
149
|
-
"content_type": 1,
|
|
150
|
-
"file_type": 0,
|
|
151
|
-
"name": "",
|
|
152
|
-
"id": 0,
|
|
153
|
-
"thumbnail_url": "",
|
|
154
|
-
"option_content": "lately, angry"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"score": "1.00",
|
|
118
|
+
"is_correct": "",
|
|
119
|
+
"options_data": [],
|
|
120
|
+
"score": "100",
|
|
158
121
|
"sub_questions": [],
|
|
159
|
-
"
|
|
122
|
+
"correct_gap_data": [],
|
|
123
|
+
"keyword_set": [],
|
|
160
124
|
"template_file_full_url": "",
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"knowledge_name": "
|
|
125
|
+
"match_rule": "",
|
|
126
|
+
"coverage_rate": "",
|
|
127
|
+
"knowledge_name": "编程环境",
|
|
128
|
+
"keyword_percent_set": [],
|
|
129
|
+
"create_date": "2023-08-05 11:21:50",
|
|
164
130
|
"page_location_list": [],
|
|
165
131
|
"code_type": 0,
|
|
166
|
-
"
|
|
132
|
+
"template_file": "",
|
|
133
|
+
"read_language": "",
|
|
167
134
|
"question_index": "",
|
|
168
|
-
"correct_single_index": 0,
|
|
169
|
-
"question_type": "17",
|
|
170
135
|
"media_resources": [],
|
|
136
|
+
"link_answer_data": [],
|
|
171
137
|
"analysis": "",
|
|
172
|
-
"question_id": "13091",
|
|
173
138
|
"difficulty_level_str": "简单",
|
|
174
|
-
"update_date": "",
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
139
|
+
"update_date": "2023-08-12 11:38:15",
|
|
140
|
+
"content_model_list": [],
|
|
141
|
+
"reference_answer": "",
|
|
142
|
+
"word_id_list": [],
|
|
143
|
+
"exam_link_answer_data": [],
|
|
144
|
+
"reference_file_full_url": "",
|
|
145
|
+
"hint": "分类题",
|
|
146
|
+
"word_list": [],
|
|
147
|
+
"judge_advice_list": [],
|
|
148
|
+
"reference_file": "",
|
|
149
|
+
"data_mode": 1,
|
|
150
|
+
"correct_judge": "",
|
|
151
|
+
"read_pass_score": "",
|
|
152
|
+
"content": "[]",
|
|
153
|
+
"correct_subjective_answer": "",
|
|
154
|
+
"draw_img_url": "",
|
|
155
|
+
"auto_check": true,
|
|
156
|
+
"style_type": "",
|
|
157
|
+
"question_name": "",
|
|
158
|
+
"correct_rate": "",
|
|
159
|
+
"correct_sort_index_list": [],
|
|
160
|
+
"difficulty_level": "1",
|
|
161
|
+
"read_type": "",
|
|
162
|
+
"correct_single_index": 0,
|
|
163
|
+
"question_type": "17",
|
|
164
|
+
"question_id": "13898",
|
|
165
|
+
"classify_question_info": {
|
|
166
|
+
"background_file": {
|
|
167
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/29cdf38b5917b0943858e922901a79666cakkharx0kgw1x0.png-quality_80",
|
|
168
|
+
"content_type": 2,
|
|
169
|
+
"file_type": 1,
|
|
170
|
+
"name": "bg",
|
|
171
|
+
"id": 3485,
|
|
172
|
+
"thumbnail_url": "",
|
|
173
|
+
"option_content": "3485"
|
|
174
|
+
},
|
|
175
|
+
"small_type_option_list": [
|
|
176
|
+
{
|
|
177
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/3629e13ac107f35a57a43f23155c6203u27fvk1q7jvlnc07.png-quality_80",
|
|
178
|
+
"content_type": 2,
|
|
179
|
+
"file_type": 1,
|
|
180
|
+
"name": "sss",
|
|
181
|
+
"id": 3489,
|
|
183
182
|
"thumbnail_url": "",
|
|
184
|
-
"option_content": "
|
|
183
|
+
"option_content": "3489"
|
|
185
184
|
},
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"file_type": 0,
|
|
193
|
-
"name": "",
|
|
194
|
-
"id": 0,
|
|
185
|
+
{
|
|
186
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/3629e13ac107f35a57a43f23155c6203u27fvk1q7jvlnc07.png-quality_80",
|
|
187
|
+
"content_type": 2,
|
|
188
|
+
"file_type": 1,
|
|
189
|
+
"name": "sss",
|
|
190
|
+
"id": 3489,
|
|
195
191
|
"thumbnail_url": "",
|
|
196
|
-
"option_content": "
|
|
192
|
+
"option_content": "3489"
|
|
197
193
|
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"file_type": 0,
|
|
205
|
-
"name": "",
|
|
206
|
-
"id": 0,
|
|
194
|
+
{
|
|
195
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/3629e13ac107f35a57a43f23155c6203u27fvk1q7jvlnc07.png-quality_80",
|
|
196
|
+
"content_type": 2,
|
|
197
|
+
"file_type": 1,
|
|
198
|
+
"name": "sss",
|
|
199
|
+
"id": 3489,
|
|
207
200
|
"thumbnail_url": "",
|
|
208
|
-
"option_content": "
|
|
201
|
+
"option_content": "3489"
|
|
209
202
|
},
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
|
|
203
|
+
{
|
|
204
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/3629e13ac107f35a57a43f23155c6203u27fvk1q7jvlnc07.png-quality_80",
|
|
205
|
+
"content_type": 2,
|
|
206
|
+
"file_type": 1,
|
|
207
|
+
"name": "sss",
|
|
208
|
+
"id": 3489,
|
|
209
|
+
"thumbnail_url": "",
|
|
210
|
+
"option_content": "3489"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"big_type_option_list": [
|
|
214
|
+
{
|
|
215
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/b191bacd49ada74213e3e4830b46e7be7nmqoddfu5y2q657.gif",
|
|
216
|
+
"content_type": 2,
|
|
217
|
+
"file_type": 1,
|
|
218
|
+
"name": "loading",
|
|
219
|
+
"id": 3478,
|
|
219
220
|
"thumbnail_url": "",
|
|
220
|
-
"option_content": "
|
|
221
|
+
"option_content": "3478"
|
|
221
222
|
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
{
|
|
224
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/656bfb1a38a8be8e1c724593080c26d5no3bb3l9m6mnmxhi.png-quality_80",
|
|
225
|
+
"content_type": 2,
|
|
226
|
+
"file_type": 1,
|
|
227
|
+
"name": "DCA0F46E-2A91-42ee-A4AE-B34CCCBC5F53",
|
|
228
|
+
"id": 3316,
|
|
229
|
+
"thumbnail_url": "",
|
|
230
|
+
"option_content": "3316"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"big_type_box_image_list": [
|
|
234
|
+
{
|
|
235
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/283752fd11f2a5796a7d7d61dfd1caa3x5q7j62u97twhudl.png-quality_80",
|
|
236
|
+
"content_type": 2,
|
|
237
|
+
"file_type": 1,
|
|
238
|
+
"name": "type-border",
|
|
239
|
+
"id": 3486,
|
|
240
|
+
"thumbnail_url": "",
|
|
241
|
+
"option_content": "3486"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/283752fd11f2a5796a7d7d61dfd1caa3x5q7j62u97twhudl.png-quality_80",
|
|
245
|
+
"content_type": 2,
|
|
246
|
+
"file_type": 1,
|
|
247
|
+
"name": "type-border",
|
|
248
|
+
"id": 3486,
|
|
249
|
+
"thumbnail_url": "",
|
|
250
|
+
"option_content": "3486"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"bottom_img_file": {
|
|
254
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/426778e9f51977601953390f824b9b40x7fuaf0246ghxjlp.png-quality_80",
|
|
255
|
+
"content_type": 2,
|
|
256
|
+
"file_type": 1,
|
|
257
|
+
"name": "矩形",
|
|
258
|
+
"id": 3488,
|
|
259
|
+
"thumbnail_url": "",
|
|
260
|
+
"option_content": "3488"
|
|
261
|
+
},
|
|
262
|
+
"correct_mapping_list": []
|
|
263
|
+
},
|
|
264
|
+
"exam_options_data": [],
|
|
265
|
+
"draw_img": null,
|
|
227
266
|
"correct_multiple_index_set": [],
|
|
228
|
-
"
|
|
229
|
-
"
|
|
267
|
+
"correct_link_list": [],
|
|
268
|
+
"judge_percent": "",
|
|
269
|
+
"knowledge_id": "367",
|
|
270
|
+
"read_content": ""
|
|
230
271
|
}
|
|
231
272
|
],
|
|
232
273
|
"examination_duration": 5400,
|
|
@@ -264,10 +305,17 @@ export default defineComponent({
|
|
|
264
305
|
}
|
|
265
306
|
|
|
266
307
|
|
|
308
|
+
function submit(){
|
|
309
|
+
let component = _this.$refs['question']
|
|
310
|
+
console.log(component.isAnswered());
|
|
311
|
+
console.log(component.getAnswer());
|
|
312
|
+
}
|
|
313
|
+
|
|
267
314
|
return {
|
|
268
315
|
...toRefs(data),
|
|
269
316
|
responsiveObj,
|
|
270
|
-
quitQuestion
|
|
317
|
+
quitQuestion,
|
|
318
|
+
submit
|
|
271
319
|
}
|
|
272
320
|
}
|
|
273
321
|
})
|