@zykjcommon/questions 0.0.13 → 0.0.14
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/.env.production +2 -1
- package/.env.test +2 -1
- package/dist/zykjcommon-questions.common.js +14850 -2485
- package/dist/zykjcommon-questions.css +1 -1
- package/dist/zykjcommon-questions.umd.js +14851 -2494
- package/dist/zykjcommon-questions.umd.min.js +24 -1
- package/package.json +2 -2
- package/src/App.vue +2 -0
- package/src/assets/js/fun.js +23 -2
- package/src/assets/js/http.js +1 -1
- package/src/assets/scss/questions/index.scss +85 -22
- package/src/components/common/IframeComponent.vue +60 -76
- package/src/components/common/Loading.vue +9 -20
- package/src/components/common/TextAreaEditor.vue +72 -87
- package/src/components/exam/QuestionCard.vue +3 -3
- package/src/components/questions/QuestionReader.js +4 -4
- package/src/components/questions/Question_BriefAnswer.vue +146 -0
- package/src/components/questions/Question_FillBlank.vue +151 -0
- package/src/components/questions/Question_MultipleChoice.vue +179 -0
- package/src/components/questions/Question_Programming.vue +285 -0
- package/src/components/questions/Question_Reading.vue +173 -0
- package/src/components/questions/Question_SingleChoice.vue +7 -21
- package/src/components/questions/buildEntry.js +130 -5
- package/src/components/questions/const.js +15 -0
- package/src/components/questions/developmentEntry.js +130 -5
- package/src/components/questions/entry.js +2 -18
- package/src/components/questions/store.js +44 -0
- package/src/main.ts +17 -13
- package/src/views/exam/Analysis.vue +620 -7
- package/src/views/exam/Exam.vue +612 -11
- package/vue.config.js +8 -4
package/src/views/exam/Exam.vue
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<li v-for="(item,index) in responsiveObj.questionList" :id="'question'+ index">
|
|
16
16
|
<component :is="item.questionComponent"
|
|
17
17
|
:bus="eventBus"
|
|
18
|
+
:urlQuery="getUrlQuery(item)"
|
|
18
19
|
:questionInfo="item"
|
|
19
20
|
:key="'question'+ index"
|
|
20
21
|
:ref="'question'+ index"/>
|
|
@@ -49,6 +50,7 @@ import {defineComponent, ref, toRefs, reactive, watch, computed, onMounted,getCu
|
|
|
49
50
|
import QuestionCard from '@src/components/exam/QuestionCard.vue'
|
|
50
51
|
import QuestionHeader from '@src/components/exam/QuestionHeader.vue'
|
|
51
52
|
import TimeCounter from '@src/components/exam/TimeCounter.vue'
|
|
53
|
+
import { useState as rootUseState } from 'vuex-composition-helpers'
|
|
52
54
|
import {createNamespacedHelpers} from 'vuex-composition-helpers';
|
|
53
55
|
import {useRouter,useRoute} from 'vue-router'
|
|
54
56
|
import fun from "@/assets/js/fun";
|
|
@@ -65,7 +67,8 @@ interface dataInterface{
|
|
|
65
67
|
routeName:string,
|
|
66
68
|
loading:boolean,
|
|
67
69
|
warnText:string,
|
|
68
|
-
eventBus:any
|
|
70
|
+
eventBus:any,
|
|
71
|
+
token:string
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
interface responsiveData{
|
|
@@ -86,7 +89,8 @@ export default defineComponent({
|
|
|
86
89
|
setup(props,context) {
|
|
87
90
|
const {useState, useActions,useMutations} = createNamespacedHelpers('exam'); // specific module name
|
|
88
91
|
const {getExamPaperActions,resetExamActions} = useActions(['getExamPaperActions','resetExamActions'])
|
|
89
|
-
|
|
92
|
+
const {token} = rootUseState(['token'])
|
|
93
|
+
let {examInfo,userId} = useState(['examInfo','userId'])
|
|
90
94
|
let route = useRoute()
|
|
91
95
|
let router = useRouter()
|
|
92
96
|
const currentInstance:any = getCurrentInstance()
|
|
@@ -100,7 +104,8 @@ export default defineComponent({
|
|
|
100
104
|
warnVisible:false,
|
|
101
105
|
routeName:route.name as string,
|
|
102
106
|
loading:false,
|
|
103
|
-
warnText:''
|
|
107
|
+
warnText:'',
|
|
108
|
+
token
|
|
104
109
|
})
|
|
105
110
|
|
|
106
111
|
//需要响应式放里面
|
|
@@ -133,6 +138,503 @@ export default defineComponent({
|
|
|
133
138
|
"have_not_auto_check_question": false,
|
|
134
139
|
"size": 23,
|
|
135
140
|
"question_list": [
|
|
141
|
+
{
|
|
142
|
+
"question_type_str": "编程题",
|
|
143
|
+
"data_mode": 1,
|
|
144
|
+
"correct_judge": "",
|
|
145
|
+
"is_auto_check": "",
|
|
146
|
+
"content": "[{\"<>\":\"p\",\"text\":\"1、准备工作\"},{\"<>\":\"p\",\"text\":\" (1) 选择背景 Desert,Galaxy;\"},{\"<>\":\"p\",\"text\":\" (2) 选择角色 Rocketship。\"},{\"<>\":\"p\",\"text\":\" 2、功能实现\"},{\"<>\":\"p\",\"text\":\" (1)火箭初始造型为 rocketship-a,初始位置为舞台下端,初始背景为 Dessert;\"},{\"<>\":\"p\",\"text\":\" (2)点击绿旗,火箭垂直向上移动,一直移动到舞台顶端,并在移动过 程中切换造型;\"},{\"<>\":\"p\",\"text\":\" (3)当火箭达到舞台顶端时,背景切换为 Galaxy;\"},{\"<>\":\"p\",\"html\":[{\"<>\":\"span\",\"style\":\"\",\"text\":\" (4)火箭最后移到舞台下端的位置(初始位置),造型不限。\"}]},{\"<>\":\"p\",\"html\":[{\"<>\":\"span\",\"style\":\"\",\"html\":[{\"<>\":\"img\",\"src\":\"https://dev-resource.thedeer.cn/pre/resource-testing/image/3ae47ad6586554f0cd57b4858b800034qve9a1g4zs6twrc5.jpg\",\"width\":\"89\",\"height\":\"89\",\"base_src\":\"resource-testing/image/3ae47ad6586554f0cd57b4858b800034qve9a1g4zs6twrc5.jpg\"}]}]}]",
|
|
147
|
+
"correct_subjective_answer": "",
|
|
148
|
+
"auto_check": false,
|
|
149
|
+
"options_data": [],
|
|
150
|
+
"score": "30.00",
|
|
151
|
+
"sub_questions": [],
|
|
152
|
+
"style_type": "CODING",
|
|
153
|
+
"template_file_full_url": "https://dev-resource.thedeer.cn/pre/resource-testing/coding/d489ef8637c0198c9905b9628536ef875jsskgofnaulimvh.sb3",
|
|
154
|
+
"question_name": "1、准备工作 (1) 选择背景 Desert,Galaxy; (2) 选择角色 Rocketship。 2、功能实现 (1)火箭初始造型为 rocketship-a,初始位置为舞台下端,初始背景为 Dessert; (2)点击绿旗,火箭垂直向上移动,一直移动到舞台顶端,并在移动过 程中切换造型; (3)当火箭达到舞台顶端时,背景切换为 Galaxy; (4)火箭最后移到舞台下端的位置(初始位置),造型不限。",
|
|
155
|
+
"correct_rate": "",
|
|
156
|
+
"knowledge_name": "",
|
|
157
|
+
"page_location_list": [],
|
|
158
|
+
"code_type": 1,
|
|
159
|
+
"difficulty_level": "2",
|
|
160
|
+
"question_index": "",
|
|
161
|
+
"correct_single_index": 0,
|
|
162
|
+
"question_type": "16",
|
|
163
|
+
"media_resources": [],
|
|
164
|
+
"analysis": "",
|
|
165
|
+
"question_id": "12918",
|
|
166
|
+
"difficulty_level_str": "困难",
|
|
167
|
+
"update_date": "2023-05-13 10:09:59",
|
|
168
|
+
"exam_options_data": [],
|
|
169
|
+
"exam_link_answer_data": [],
|
|
170
|
+
"reference_file_full_url": "",
|
|
171
|
+
"correct_multiple_index_set": [],
|
|
172
|
+
"hint": "飞向太空",
|
|
173
|
+
"knowledge_id": ""
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"question_type_str": "填空题",
|
|
177
|
+
"data_mode": 1,
|
|
178
|
+
"correct_judge": "",
|
|
179
|
+
"is_auto_check": "",
|
|
180
|
+
"content": "[{\"<>\":\"p\",\"html\":[{\"<>\":\"span\",\"style\":\"\",\"text\":\"六年级数学课程特色是: \"},{\"<>\":\"span\",\"style\":\"display:inline-block; line-height:1.2; text-align:center; padding:0 1.5em; border:0; border-bottom: 1px solid #000; color:#E6A23C;\",\"html\":[{\"<>\":\"span\",\"text\":\"①\"},{\"<>\":\"span\",\"style\":\"\"}],\"data_key\":\"fill-blank-6281256\",\"class\":\"fill-blank\"},{\"<>\":\"span\",\"style\":\"\"},{\"<>\":\"span\",\"style\":\"\",\"text\":\"学习,循环巩固; \"},{\"<>\":\"span\",\"style\":\"display:inline-block; line-height:1.2; text-align:center; padding:0 1.5em; border:0; border-bottom: 1px solid #000; color:#E6A23C;\",\"html\":[{\"<>\":\"span\",\"text\":\"②\"},{\"<>\":\"span\",\"style\":\"\"}],\"data_key\":\"fill-blank-11845542\",\"class\":\"fill-blank\"},{\"<>\":\"span\",\"style\":\"\"},{\"<>\":\"span\",\"style\":\"\",\"text\":\"教学,因材施教;精选精讲, \"},{\"<>\":\"span\",\"style\":\"display:inline-block; line-height:1.2; text-align:center; padding:0 1.5em; border:0; border-bottom: 1px solid #000; color:#E6A23C;\",\"html\":[{\"<>\":\"span\",\"text\":\"③\"},{\"<>\":\"span\",\"style\":\"\"}],\"data_key\":\"fill-blank-95523722\",\"class\":\"fill-blank\"},{\"<>\":\"span\",\"style\":\"\"},{\"<>\":\"span\",\"style\":\"\",\"html\":[{\"<>\":\"font\",\"text\":\"练习; \"},{\"<>\":\"span\",\"style\":\"display:inline-block; line-height:1.2; text-align:center; padding:0 1.5em; border:0; border-bottom: 1px solid #000; color:#E6A23C;\",\"html\":[{\"<>\":\"span\",\"text\":\"④\"}],\"data_key\":\"fill-blank-5441657\",\"class\":\"fill-blank\"},{\"<>\":\"font\",\"text\":\"进阶,循环巩固。\"}]},{\"<>\":\"span\",\"style\":\"\"}]}]",
|
|
181
|
+
"correct_subjective_answer": "",
|
|
182
|
+
"auto_check": true,
|
|
183
|
+
"options_data": [],
|
|
184
|
+
"score": "2.00",
|
|
185
|
+
"sub_questions": [],
|
|
186
|
+
"style_type": "",
|
|
187
|
+
"template_file_full_url": "",
|
|
188
|
+
"question_name": "六年级数学课程特色是: ①学习,循环巩固; ②教学,因材施教;精选精讲, ③练习; ④进阶,循环巩固。",
|
|
189
|
+
"correct_rate": "",
|
|
190
|
+
"knowledge_name": "中学",
|
|
191
|
+
"page_location_list": [],
|
|
192
|
+
"code_type": 0,
|
|
193
|
+
"difficulty_level": "1",
|
|
194
|
+
"question_index": "",
|
|
195
|
+
"correct_single_index": 0,
|
|
196
|
+
"question_type": "4",
|
|
197
|
+
"media_resources": [],
|
|
198
|
+
"analysis": "[{\"<>\":\"p\",\"html\":[{\"<>\":\"br\"}]}]",
|
|
199
|
+
"question_id": "2433",
|
|
200
|
+
"difficulty_level_str": "简单",
|
|
201
|
+
"update_date": "2019-12-18 19:18:05",
|
|
202
|
+
"exam_options_data": [],
|
|
203
|
+
"exam_link_answer_data": [],
|
|
204
|
+
"reference_file_full_url": "",
|
|
205
|
+
"correct_multiple_index_set": [],
|
|
206
|
+
"hint": "Read and write.(填空题)",
|
|
207
|
+
"knowledge_id": "193"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"question_type_str": "简答题",
|
|
211
|
+
"data_mode": 1,
|
|
212
|
+
"correct_judge": "",
|
|
213
|
+
"is_auto_check": "",
|
|
214
|
+
"content": "[{\"<>\":\"p\",\"html\":[{\"<>\":\"img\",\"src\":\"https://dev-resource.thedeer.cn/pre/resource-testing/image/189cf50d746bb69d3337f5b0787a3febcmizk0vlpx5fdfh6.jpg\",\"base_src\":\"resource-testing/image/189cf50d746bb69d3337f5b0787a3febcmizk0vlpx5fdfh6.jpg\",\"width\":\"1800\"}]},{\"<>\":\"p\",\"text\":\"Hello, I'm_________\"},{\"<>\":\"p\",\"text\":\"I_________on Mondays, I________on Tuesdays,\"},{\"<>\":\"p\",\"text\":\"I_________on Wednesdays, I_____ on Thursdays,\"},{\"<>\":\"p\",\"html\":[{\"<>\":\"span\",\"text\":\"I_________\"},{\"<>\":\"span\",\"style\":\"\",\"text\":\"on Fridays, I ____on Saturdays,\"}]},{\"<>\":\"p\",\"text\":\"I____ on Sundays.\"},{\"<>\":\"p\",\"html\":[{\"<>\":\"br\"}]}]",
|
|
215
|
+
"correct_subjective_answer": "",
|
|
216
|
+
"auto_check": false,
|
|
217
|
+
"options_data": [],
|
|
218
|
+
"score": "5.00",
|
|
219
|
+
"sub_questions": [],
|
|
220
|
+
"style_type": "BRIEF",
|
|
221
|
+
"template_file_full_url": "",
|
|
222
|
+
"question_name": "Hello, I'm_________I_________on Mondays, I________on Tuesdays,I_________on Wednesdays, I_____ on Thursdays,I_________on Fridays, I ____on Saturdays,I____ on Sundays.",
|
|
223
|
+
"correct_rate": "",
|
|
224
|
+
"knowledge_name": "",
|
|
225
|
+
"page_location_list": [],
|
|
226
|
+
"code_type": 0,
|
|
227
|
+
"difficulty_level": "1",
|
|
228
|
+
"question_index": "",
|
|
229
|
+
"correct_single_index": 0,
|
|
230
|
+
"question_type": "7",
|
|
231
|
+
"media_resources": [],
|
|
232
|
+
"analysis": "",
|
|
233
|
+
"question_id": "3104",
|
|
234
|
+
"difficulty_level_str": "简单",
|
|
235
|
+
"update_date": "2020-06-17 16:20:30",
|
|
236
|
+
"exam_options_data": [],
|
|
237
|
+
"exam_link_answer_data": [],
|
|
238
|
+
"reference_file_full_url": "",
|
|
239
|
+
"correct_multiple_index_set": [],
|
|
240
|
+
"hint": "主观题",
|
|
241
|
+
"knowledge_id": ""
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"question_type_str": "阅读理解题",
|
|
245
|
+
"data_mode": 1,
|
|
246
|
+
"correct_judge": "",
|
|
247
|
+
"is_auto_check": "",
|
|
248
|
+
"content": "[{\"<>\":\"p\",\"text\":\" There is no denying that students should learn something about how computers work, just as we expect them at least to understand that the internal-combustion engine (内燃机) has something to do with burning fuel, expanding gases and pistons (活塞) being driven. For people should have some basic idea of how the things that they use do what they do. Further, students might be helped by a course that considers the computer’s impact on society. But that is not what is meant by computer literacy. For computer literacy is not a form of literacy (读写能力); it is a trade skill that should not be taught as a liberal art.\"},{\"<>\":\"p\",\"text\":\" Learning how to use a computer and learning how to program one are two distinct activities. A case might be made that the competent citizens of tomorrow should free themselves from their fear of computers. But this is quite different from saying that all ought to know how to program one. Leave that to people who have chosen programming as a career. While programming can be lots of fun, and while our society needs some people who are experts at it, the same is true of auto repair and violin-making.\"},{\"<>\":\"p\",\"text\":\" Learning how to use a computer is not that difficu1t, and it gets easier all the time as programs become more “user-friendly”. Let us assume that in the future everyone is going to have to know how to use a computer to be a competent citizen. What does the phrase “learning to use a computer” mean? It sounds like “learning to drive a car”, that is, it sounds as if there is some set of definite skills that, once acquired, enable one to use a computer.\"},{\"<>\":\"p\",\"text\":\"In fact, “learning to use a computer” is much more like “learning to play a game”, but learning the rules of one game may not he1p you play a second game, whose rules may not be the same. There is no such a thing as teaching someone how to use a computer. One can only teach people to use this or that program and generally that is easily accomplished.\"},{\"<>\":\"p\",\"html\":[{\"<>\":\"br\"}]}]",
|
|
249
|
+
"correct_subjective_answer": "",
|
|
250
|
+
"auto_check": true,
|
|
251
|
+
"options_data": [],
|
|
252
|
+
"score": "5.00",
|
|
253
|
+
"sub_questions": [
|
|
254
|
+
{
|
|
255
|
+
"question_type_str": "单选题",
|
|
256
|
+
"data_mode": 2,
|
|
257
|
+
"correct_judge": "",
|
|
258
|
+
"is_auto_check": "",
|
|
259
|
+
"content": "To be the competent citizens of tomorrow, people should _____________.",
|
|
260
|
+
"correct_subjective_answer": "",
|
|
261
|
+
"auto_check": true,
|
|
262
|
+
"options_data": [
|
|
263
|
+
{
|
|
264
|
+
"file_url": "",
|
|
265
|
+
"content_type": 1,
|
|
266
|
+
"file_type": 0,
|
|
267
|
+
"name": "",
|
|
268
|
+
"id": 0,
|
|
269
|
+
"thumbnail_url": "",
|
|
270
|
+
"option_content": " try to lay a solid foundation in computer science"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"file_url": "",
|
|
274
|
+
"content_type": 1,
|
|
275
|
+
"file_type": 0,
|
|
276
|
+
"name": "",
|
|
277
|
+
"id": 0,
|
|
278
|
+
"thumbnail_url": "",
|
|
279
|
+
"option_content": " be aware of how the things that they use do what they do"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"file_url": "",
|
|
283
|
+
"content_type": 1,
|
|
284
|
+
"file_type": 0,
|
|
285
|
+
"name": "",
|
|
286
|
+
"id": 0,
|
|
287
|
+
"thumbnail_url": "",
|
|
288
|
+
"option_content": " learn to use a computer by acquiring a certain set of skills"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"file_url": "",
|
|
292
|
+
"content_type": 1,
|
|
293
|
+
"file_type": 0,
|
|
294
|
+
"name": "",
|
|
295
|
+
"id": 0,
|
|
296
|
+
"thumbnail_url": "",
|
|
297
|
+
"option_content": "understand that programming a computer is more essential than repairing a car"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"score": "100",
|
|
301
|
+
"sub_questions": [],
|
|
302
|
+
"style_type": "",
|
|
303
|
+
"template_file_full_url": "",
|
|
304
|
+
"question_name": "To be the competent citizens of tomorrow, people should _____________.",
|
|
305
|
+
"correct_rate": "",
|
|
306
|
+
"knowledge_name": "",
|
|
307
|
+
"page_location_list": [],
|
|
308
|
+
"code_type": 0,
|
|
309
|
+
"difficulty_level": "0",
|
|
310
|
+
"question_index": "",
|
|
311
|
+
"correct_single_index": 0,
|
|
312
|
+
"question_type": "1",
|
|
313
|
+
"media_resources": [],
|
|
314
|
+
"analysis": "",
|
|
315
|
+
"question_id": "13118",
|
|
316
|
+
"difficulty_level_str": "未知",
|
|
317
|
+
"update_date": "",
|
|
318
|
+
"exam_options_data": [
|
|
319
|
+
{
|
|
320
|
+
"data": {
|
|
321
|
+
"file_url": "",
|
|
322
|
+
"content_type": 1,
|
|
323
|
+
"file_type": 0,
|
|
324
|
+
"name": "",
|
|
325
|
+
"id": 0,
|
|
326
|
+
"thumbnail_url": "",
|
|
327
|
+
"option_content": " try to lay a solid foundation in computer science"
|
|
328
|
+
},
|
|
329
|
+
"index": 1
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"data": {
|
|
333
|
+
"file_url": "",
|
|
334
|
+
"content_type": 1,
|
|
335
|
+
"file_type": 0,
|
|
336
|
+
"name": "",
|
|
337
|
+
"id": 0,
|
|
338
|
+
"thumbnail_url": "",
|
|
339
|
+
"option_content": " be aware of how the things that they use do what they do"
|
|
340
|
+
},
|
|
341
|
+
"index": 2
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"data": {
|
|
345
|
+
"file_url": "",
|
|
346
|
+
"content_type": 1,
|
|
347
|
+
"file_type": 0,
|
|
348
|
+
"name": "",
|
|
349
|
+
"id": 0,
|
|
350
|
+
"thumbnail_url": "",
|
|
351
|
+
"option_content": " learn to use a computer by acquiring a certain set of skills"
|
|
352
|
+
},
|
|
353
|
+
"index": 3
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"data": {
|
|
357
|
+
"file_url": "",
|
|
358
|
+
"content_type": 1,
|
|
359
|
+
"file_type": 0,
|
|
360
|
+
"name": "",
|
|
361
|
+
"id": 0,
|
|
362
|
+
"thumbnail_url": "",
|
|
363
|
+
"option_content": "understand that programming a computer is more essential than repairing a car"
|
|
364
|
+
},
|
|
365
|
+
"index": 4
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"exam_link_answer_data": [],
|
|
369
|
+
"reference_file_full_url": "",
|
|
370
|
+
"correct_multiple_index_set": [],
|
|
371
|
+
"hint": "",
|
|
372
|
+
"knowledge_id": ""
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"question_type_str": "单选题",
|
|
376
|
+
"data_mode": 2,
|
|
377
|
+
"correct_judge": "",
|
|
378
|
+
"is_auto_check": "",
|
|
379
|
+
"content": "In the second paragraph “violin-making” is mentioned to show that_____________.",
|
|
380
|
+
"correct_subjective_answer": "",
|
|
381
|
+
"auto_check": true,
|
|
382
|
+
"options_data": [
|
|
383
|
+
{
|
|
384
|
+
"file_url": "",
|
|
385
|
+
"content_type": 1,
|
|
386
|
+
"file_type": 0,
|
|
387
|
+
"name": "",
|
|
388
|
+
"id": 0,
|
|
389
|
+
"thumbnail_url": "",
|
|
390
|
+
"option_content": "programming a computer is as interesting as making a violin"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"file_url": "",
|
|
394
|
+
"content_type": 1,
|
|
395
|
+
"file_type": 0,
|
|
396
|
+
"name": "",
|
|
397
|
+
"id": 0,
|
|
398
|
+
"thumbnail_url": "",
|
|
399
|
+
"option_content": "our society needs experts in different fields"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"file_url": "",
|
|
403
|
+
"content_type": 1,
|
|
404
|
+
"file_type": 0,
|
|
405
|
+
"name": "",
|
|
406
|
+
"id": 0,
|
|
407
|
+
"thumbnail_url": "",
|
|
408
|
+
"option_content": "violin-making requires as much skill as computer programming"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"file_url": "",
|
|
412
|
+
"content_type": 1,
|
|
413
|
+
"file_type": 0,
|
|
414
|
+
"name": "",
|
|
415
|
+
"id": 0,
|
|
416
|
+
"thumbnail_url": "",
|
|
417
|
+
"option_content": "people who can use a computer don't necessarily have to know computer programming"
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"score": "100",
|
|
421
|
+
"sub_questions": [],
|
|
422
|
+
"style_type": "",
|
|
423
|
+
"template_file_full_url": "",
|
|
424
|
+
"question_name": "In the second paragraph “violin-making” is mentioned to show that_____________.",
|
|
425
|
+
"correct_rate": "",
|
|
426
|
+
"knowledge_name": "",
|
|
427
|
+
"page_location_list": [],
|
|
428
|
+
"code_type": 0,
|
|
429
|
+
"difficulty_level": "0",
|
|
430
|
+
"question_index": "",
|
|
431
|
+
"correct_single_index": 0,
|
|
432
|
+
"question_type": "1",
|
|
433
|
+
"media_resources": [],
|
|
434
|
+
"analysis": "",
|
|
435
|
+
"question_id": "13119",
|
|
436
|
+
"difficulty_level_str": "未知",
|
|
437
|
+
"update_date": "",
|
|
438
|
+
"exam_options_data": [
|
|
439
|
+
{
|
|
440
|
+
"data": {
|
|
441
|
+
"file_url": "",
|
|
442
|
+
"content_type": 1,
|
|
443
|
+
"file_type": 0,
|
|
444
|
+
"name": "",
|
|
445
|
+
"id": 0,
|
|
446
|
+
"thumbnail_url": "",
|
|
447
|
+
"option_content": "programming a computer is as interesting as making a violin"
|
|
448
|
+
},
|
|
449
|
+
"index": 1
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"data": {
|
|
453
|
+
"file_url": "",
|
|
454
|
+
"content_type": 1,
|
|
455
|
+
"file_type": 0,
|
|
456
|
+
"name": "",
|
|
457
|
+
"id": 0,
|
|
458
|
+
"thumbnail_url": "",
|
|
459
|
+
"option_content": "our society needs experts in different fields"
|
|
460
|
+
},
|
|
461
|
+
"index": 2
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"data": {
|
|
465
|
+
"file_url": "",
|
|
466
|
+
"content_type": 1,
|
|
467
|
+
"file_type": 0,
|
|
468
|
+
"name": "",
|
|
469
|
+
"id": 0,
|
|
470
|
+
"thumbnail_url": "",
|
|
471
|
+
"option_content": "violin-making requires as much skill as computer programming"
|
|
472
|
+
},
|
|
473
|
+
"index": 3
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"data": {
|
|
477
|
+
"file_url": "",
|
|
478
|
+
"content_type": 1,
|
|
479
|
+
"file_type": 0,
|
|
480
|
+
"name": "",
|
|
481
|
+
"id": 0,
|
|
482
|
+
"thumbnail_url": "",
|
|
483
|
+
"option_content": "people who can use a computer don't necessarily have to know computer programming"
|
|
484
|
+
},
|
|
485
|
+
"index": 4
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"exam_link_answer_data": [],
|
|
489
|
+
"reference_file_full_url": "",
|
|
490
|
+
"correct_multiple_index_set": [],
|
|
491
|
+
"hint": "",
|
|
492
|
+
"knowledge_id": ""
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"style_type": "READ_R",
|
|
496
|
+
"template_file_full_url": "",
|
|
497
|
+
"question_name": " There is no denying that students should learn something about how computers work, just as we expect them at least to understand that the internal-combustion engine (内燃机) has something to do with burning fuel, expanding gases and pistons (活塞) being driven. For people should have some basic idea of how the things that they use do what they do. Further, students might be helped by a course that considers the computer’s impact on society. But that is not what is meant by computer literacy. For computer literacy is not a form of literacy (读写能力); it is a trade skill that should not be taught as a liberal art. Learning how to use a computer and learning how to program one are two distinct activities. A case might be made that the competent citizens of tomorrow should free themselves from their fear of computers. But this is quite different from saying that all ought to know how to program one. Leave that to people who have chosen programming as a career. While programming can be lots of fun, and while our society needs some people who are experts at it, the same is true of auto repair and violin-making. Learning how to use a computer is not that difficu1t, and it gets easier all the time as programs become more “user-friendly”. Let us assume that in the future everyone is going to have to know how to use a computer to be a competent citizen. What does the phrase “learning to use a computer” mean? It sounds like “learning to drive a car”, that is, it sounds as if there is some set of definite skills that, once acquired, enable one to use a computer.In fact, “learning to use a computer” is much more like “learning to play a game”, but learning the rules of one game may not he1p you play a second game, whose rules may not be the same. There is no such a thing as teaching someone how to use a computer. One can only teach people to use this or that program and generally that is easily accomplished.",
|
|
498
|
+
"correct_rate": "",
|
|
499
|
+
"knowledge_name": "",
|
|
500
|
+
"page_location_list": [],
|
|
501
|
+
"code_type": 0,
|
|
502
|
+
"difficulty_level": "2",
|
|
503
|
+
"question_index": "",
|
|
504
|
+
"correct_single_index": 0,
|
|
505
|
+
"question_type": "11",
|
|
506
|
+
"media_resources": [],
|
|
507
|
+
"analysis": "",
|
|
508
|
+
"question_id": "13123",
|
|
509
|
+
"difficulty_level_str": "困难",
|
|
510
|
+
"update_date": "",
|
|
511
|
+
"exam_options_data": [],
|
|
512
|
+
"exam_link_answer_data": [],
|
|
513
|
+
"reference_file_full_url": "",
|
|
514
|
+
"correct_multiple_index_set": [],
|
|
515
|
+
"hint": "Reading.B",
|
|
516
|
+
"knowledge_id": ""
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"question_type_str": "多选题",
|
|
520
|
+
"data_mode": 1,
|
|
521
|
+
"correct_judge": "",
|
|
522
|
+
"is_auto_check": "",
|
|
523
|
+
"content": "[{\"<>\":\"p\",\"text\":\"如果角色想在舞台上呈现多种时尚穿戴,应该使用以下哪种积 木?\"}]",
|
|
524
|
+
"correct_subjective_answer": "",
|
|
525
|
+
"auto_check": true,
|
|
526
|
+
"options_data": [
|
|
527
|
+
{
|
|
528
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4aa9ef2cc18fbaa10bd7260598c47a03x9x34xv4b0rg2zjv.png-quality_80",
|
|
529
|
+
"content_type": 2,
|
|
530
|
+
"file_type": 1,
|
|
531
|
+
"name": "01",
|
|
532
|
+
"id": 3450,
|
|
533
|
+
"thumbnail_url": "",
|
|
534
|
+
"option_content": "3450"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/683cfb2ce022c4fc1b7c12d8ecf045e8bn5n4y03uobvtg7d.png-quality_80",
|
|
538
|
+
"content_type": 2,
|
|
539
|
+
"file_type": 1,
|
|
540
|
+
"name": "02",
|
|
541
|
+
"id": 3451,
|
|
542
|
+
"thumbnail_url": "",
|
|
543
|
+
"option_content": "3451"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/7413e421584f4c14eafb3d9ffed29fdbz0ovou38mhw6oeww.png-quality_80",
|
|
547
|
+
"content_type": 2,
|
|
548
|
+
"file_type": 1,
|
|
549
|
+
"name": "03",
|
|
550
|
+
"id": 3452,
|
|
551
|
+
"thumbnail_url": "",
|
|
552
|
+
"option_content": "3452"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/a8d3af78518632174fb853544d36672cn4g1bnsuzrsuke1d.png-quality_80",
|
|
556
|
+
"content_type": 2,
|
|
557
|
+
"file_type": 1,
|
|
558
|
+
"name": "04",
|
|
559
|
+
"id": 3453,
|
|
560
|
+
"thumbnail_url": "",
|
|
561
|
+
"option_content": "3453"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"score": "8.00",
|
|
565
|
+
"sub_questions": [],
|
|
566
|
+
"style_type": "SELECT_R-P",
|
|
567
|
+
"template_file_full_url": "",
|
|
568
|
+
"question_name": "如果角色想在舞台上呈现多种时尚穿戴,应该使用以下哪种积 木?",
|
|
569
|
+
"correct_rate": "",
|
|
570
|
+
"knowledge_name": "",
|
|
571
|
+
"page_location_list": [],
|
|
572
|
+
"code_type": 0,
|
|
573
|
+
"difficulty_level": "1",
|
|
574
|
+
"question_index": "",
|
|
575
|
+
"correct_single_index": 0,
|
|
576
|
+
"question_type": "2",
|
|
577
|
+
"media_resources": [],
|
|
578
|
+
"analysis": "",
|
|
579
|
+
"question_id": "12919",
|
|
580
|
+
"difficulty_level_str": "简单",
|
|
581
|
+
"update_date": "2022-05-19 11:37:23",
|
|
582
|
+
"exam_options_data": [
|
|
583
|
+
{
|
|
584
|
+
"data": {
|
|
585
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/4aa9ef2cc18fbaa10bd7260598c47a03x9x34xv4b0rg2zjv.png-quality_80",
|
|
586
|
+
"content_type": 2,
|
|
587
|
+
"file_type": 1,
|
|
588
|
+
"name": "01",
|
|
589
|
+
"id": 3450,
|
|
590
|
+
"thumbnail_url": "",
|
|
591
|
+
"option_content": "3450"
|
|
592
|
+
},
|
|
593
|
+
"index": 1
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"data": {
|
|
597
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/683cfb2ce022c4fc1b7c12d8ecf045e8bn5n4y03uobvtg7d.png-quality_80",
|
|
598
|
+
"content_type": 2,
|
|
599
|
+
"file_type": 1,
|
|
600
|
+
"name": "02",
|
|
601
|
+
"id": 3451,
|
|
602
|
+
"thumbnail_url": "",
|
|
603
|
+
"option_content": "3451"
|
|
604
|
+
},
|
|
605
|
+
"index": 2
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"data": {
|
|
609
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/7413e421584f4c14eafb3d9ffed29fdbz0ovou38mhw6oeww.png-quality_80",
|
|
610
|
+
"content_type": 2,
|
|
611
|
+
"file_type": 1,
|
|
612
|
+
"name": "03",
|
|
613
|
+
"id": 3452,
|
|
614
|
+
"thumbnail_url": "",
|
|
615
|
+
"option_content": "3452"
|
|
616
|
+
},
|
|
617
|
+
"index": 3
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"data": {
|
|
621
|
+
"file_url": "https://dev-resource.thedeer.cn/pre/resource-media/image/a8d3af78518632174fb853544d36672cn4g1bnsuzrsuke1d.png-quality_80",
|
|
622
|
+
"content_type": 2,
|
|
623
|
+
"file_type": 1,
|
|
624
|
+
"name": "04",
|
|
625
|
+
"id": 3453,
|
|
626
|
+
"thumbnail_url": "",
|
|
627
|
+
"option_content": "3453"
|
|
628
|
+
},
|
|
629
|
+
"index": 4
|
|
630
|
+
}
|
|
631
|
+
],
|
|
632
|
+
"exam_link_answer_data": [],
|
|
633
|
+
"reference_file_full_url": "",
|
|
634
|
+
"correct_multiple_index_set": [],
|
|
635
|
+
"hint": "根据题目要求作答",
|
|
636
|
+
"knowledge_id": ""
|
|
637
|
+
},
|
|
136
638
|
{
|
|
137
639
|
"question_type_str": "单选题",
|
|
138
640
|
"data_mode": 1,
|
|
@@ -423,6 +925,71 @@ export default defineComponent({
|
|
|
423
925
|
"applicant_name": "李老丹"
|
|
424
926
|
},
|
|
425
927
|
"answer_map": {
|
|
928
|
+
"12918":{
|
|
929
|
+
"answer_use_time": 0,
|
|
930
|
+
"scratch_answer_json": "",
|
|
931
|
+
"question_type": 0,
|
|
932
|
+
"code_file_oss_temp_path": "coding_temp/20230726/983f527ba282f8dd4f475bd8930a71d8av48t9vp2nifa492.sb3",
|
|
933
|
+
"multiple_index_set": [],
|
|
934
|
+
"single_index": 0,
|
|
935
|
+
"judge": false,
|
|
936
|
+
"question_id": 12918,
|
|
937
|
+
"is_correct": "",
|
|
938
|
+
"gap_data": [],
|
|
939
|
+
"subjective_answer": "",
|
|
940
|
+
"oss_temp_url": "https://zykj-resource-repository-dev.oss-cn-hangzhou.aliyuncs.com/coding_temp/20230726/983f527ba282f8dd4f475bd8930a71d8av48t9vp2nifa492.sb3"
|
|
941
|
+
},
|
|
942
|
+
"2433":{
|
|
943
|
+
"answer_use_time": 0,
|
|
944
|
+
"scratch_answer_json": "",
|
|
945
|
+
"question_type": 0,
|
|
946
|
+
"code_file_oss_temp_path": "",
|
|
947
|
+
"multiple_index_set": [],
|
|
948
|
+
"single_index": 0,
|
|
949
|
+
"judge": false,
|
|
950
|
+
"question_id": 2433,
|
|
951
|
+
"is_correct": "",
|
|
952
|
+
"gap_data": [
|
|
953
|
+
"",
|
|
954
|
+
"",
|
|
955
|
+
"121212121212121121212121212",
|
|
956
|
+
""
|
|
957
|
+
],
|
|
958
|
+
"subjective_answer": "",
|
|
959
|
+
"oss_temp_url": ""
|
|
960
|
+
},
|
|
961
|
+
"3104":{
|
|
962
|
+
"answer_use_time": 0,
|
|
963
|
+
"scratch_answer_json": "",
|
|
964
|
+
"question_type": 0,
|
|
965
|
+
"code_file_oss_temp_path": "",
|
|
966
|
+
"multiple_index_set": [],
|
|
967
|
+
"single_index": 0,
|
|
968
|
+
"judge": false,
|
|
969
|
+
"question_id": 3104,
|
|
970
|
+
"is_correct": "",
|
|
971
|
+
"gap_data": [],
|
|
972
|
+
"subjective_answer": "66666666666",
|
|
973
|
+
"oss_temp_url": ""
|
|
974
|
+
},
|
|
975
|
+
"12919":{
|
|
976
|
+
"answer_use_time": 0,
|
|
977
|
+
"scratch_answer_json": "",
|
|
978
|
+
"question_type": 0,
|
|
979
|
+
"code_file_oss_temp_path": "",
|
|
980
|
+
"multiple_index_set": [
|
|
981
|
+
1,
|
|
982
|
+
2,
|
|
983
|
+
3
|
|
984
|
+
],
|
|
985
|
+
"single_index": 0,
|
|
986
|
+
"judge": false,
|
|
987
|
+
"question_id": 12919,
|
|
988
|
+
"is_correct": "",
|
|
989
|
+
"gap_data": [],
|
|
990
|
+
"subjective_answer": "",
|
|
991
|
+
"oss_temp_url": ""
|
|
992
|
+
},
|
|
426
993
|
"13091": {
|
|
427
994
|
"answer_use_time": 0,
|
|
428
995
|
"scratch_answer_json": "",
|
|
@@ -464,6 +1031,34 @@ export default defineComponent({
|
|
|
464
1031
|
"gap_data": [],
|
|
465
1032
|
"subjective_answer": "",
|
|
466
1033
|
"oss_temp_url": ""
|
|
1034
|
+
},
|
|
1035
|
+
"13118":{
|
|
1036
|
+
"answer_use_time": 0,
|
|
1037
|
+
"scratch_answer_json": "",
|
|
1038
|
+
"question_type": 0,
|
|
1039
|
+
"code_file_oss_temp_path": "",
|
|
1040
|
+
"multiple_index_set": [],
|
|
1041
|
+
"single_index": 3,
|
|
1042
|
+
"judge": false,
|
|
1043
|
+
"question_id": 13118,
|
|
1044
|
+
"is_correct": "",
|
|
1045
|
+
"gap_data": [],
|
|
1046
|
+
"subjective_answer": "",
|
|
1047
|
+
"oss_temp_url": ""
|
|
1048
|
+
},
|
|
1049
|
+
"13119":{
|
|
1050
|
+
"answer_use_time": 0,
|
|
1051
|
+
"scratch_answer_json": "",
|
|
1052
|
+
"question_type": 0,
|
|
1053
|
+
"code_file_oss_temp_path": "",
|
|
1054
|
+
"multiple_index_set": [],
|
|
1055
|
+
"single_index": 1,
|
|
1056
|
+
"judge": false,
|
|
1057
|
+
"question_id": 13119,
|
|
1058
|
+
"is_correct": "",
|
|
1059
|
+
"gap_data": [],
|
|
1060
|
+
"subjective_answer": "",
|
|
1061
|
+
"oss_temp_url": ""
|
|
467
1062
|
}
|
|
468
1063
|
}
|
|
469
1064
|
},
|
|
@@ -479,14 +1074,19 @@ export default defineComponent({
|
|
|
479
1074
|
responsiveObj.value.resData = res.data
|
|
480
1075
|
responsiveObj.value.resData.remain_second = responsiveObj.value.resData.remain_second * 1000
|
|
481
1076
|
// responsiveObj.value.resData.remain_second = 0
|
|
482
|
-
parseQuestionListItem(question_list,answer_map)
|
|
1077
|
+
_this.parseQuestionListItem('exam',question_list,answer_map)
|
|
483
1078
|
// responsiveObj.value.questionList = question_list.slice(0,1)
|
|
484
1079
|
responsiveObj.value.questionList = question_list
|
|
485
1080
|
}
|
|
486
1081
|
|
|
1082
|
+
function getUrlQuery(item:any){
|
|
1083
|
+
let canEditQuery = route.name === 'examIndex' ? 'canEdit=1' : 'canEdit=0'
|
|
1084
|
+
let urlQuery = `token=${token.value}&tmplUrl=${item.template_file_full_url}&isExam=1&examId=${route.query.examId}&questionId=${item.question_id}&${canEditQuery}&userId=${userId.value}`
|
|
1085
|
+
return urlQuery
|
|
1086
|
+
}
|
|
487
1087
|
|
|
488
|
-
function parseQuestionListItem(question_list:Array<any>,answer_map:any,parentIndex:any = undefined){
|
|
489
|
-
|
|
1088
|
+
/*function parseQuestionListItem(question_list:Array<any>,answer_map:any,parentIndex:any = undefined){
|
|
1089
|
+
/!*setTimeout(()=>{
|
|
490
1090
|
// let editorContentWidth = (document.querySelector('.editor-content') as any)
|
|
491
1091
|
// console.log(editorContentWidth,777);
|
|
492
1092
|
console.log(jQuery('.editor-content').width());
|
|
@@ -502,7 +1102,7 @@ export default defineComponent({
|
|
|
502
1102
|
}
|
|
503
1103
|
})
|
|
504
1104
|
// console.log(imgs,1);
|
|
505
|
-
},500)
|
|
1105
|
+
},500)*!/
|
|
506
1106
|
question_list.forEach((item:any,index:number)=>{
|
|
507
1107
|
item.questionComponent = questionMapper[item.question_type]
|
|
508
1108
|
if(parentIndex === undefined){
|
|
@@ -557,10 +1157,10 @@ export default defineComponent({
|
|
|
557
1157
|
|
|
558
1158
|
})
|
|
559
1159
|
// console.log(question_list,33333);
|
|
560
|
-
}
|
|
1160
|
+
}*/
|
|
561
1161
|
|
|
562
1162
|
//图片宽度超出框架的时候把宽度设置成框架大小
|
|
563
|
-
function parseContent(arr:any,contentWidth:number){
|
|
1163
|
+
/*function parseContent(arr:any,contentWidth:number){
|
|
564
1164
|
arr.forEach((item:any)=>{
|
|
565
1165
|
if(item['<>'] === 'img'){
|
|
566
1166
|
if(item.hasOwnProperty('width')){
|
|
@@ -575,13 +1175,14 @@ export default defineComponent({
|
|
|
575
1175
|
parseContent(item.html,contentWidth)
|
|
576
1176
|
}
|
|
577
1177
|
})
|
|
578
|
-
}
|
|
1178
|
+
}*/
|
|
579
1179
|
|
|
580
1180
|
|
|
581
1181
|
return {
|
|
582
1182
|
...toRefs(data),
|
|
583
1183
|
responsiveObj,
|
|
584
|
-
quitQuestion
|
|
1184
|
+
quitQuestion,
|
|
1185
|
+
getUrlQuery
|
|
585
1186
|
}
|
|
586
1187
|
}
|
|
587
1188
|
})
|