@zykjcommon/questions 0.0.21 → 0.0.23
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 +147 -53
- package/dist/zykjcommon-questions.umd.js +147 -53
- package/dist/zykjcommon-questions.umd.min.js +3 -3
- package/package.json +1 -1
- package/src/assets/scss/questions/zykjcommon-questions.scss +17 -12
- package/src/components/questions/Question_Classify.vue +119 -33
- package/src/main.ts +5 -5
- package/src/views/exam/FullScreen.vue +149 -101
package/package.json
CHANGED
|
@@ -348,8 +348,8 @@ $greenItemFontSize:0.14rem;
|
|
|
348
348
|
width: 10rem;
|
|
349
349
|
height: 100%;
|
|
350
350
|
position: relative;
|
|
351
|
-
background: url("../../img/classify-bg-seaworld.png") no-repeat center
|
|
352
|
-
background-size: 100% 100
|
|
351
|
+
/*background: url("../../img/classify-bg-seaworld.png") no-repeat center;*/
|
|
352
|
+
/*background-size: 100% 100%;*/
|
|
353
353
|
overflow: auto;
|
|
354
354
|
.box{
|
|
355
355
|
padding: 0 0.8rem;
|
|
@@ -363,8 +363,8 @@ $greenItemFontSize:0.14rem;
|
|
|
363
363
|
height: 4.4rem;
|
|
364
364
|
display: flex;
|
|
365
365
|
flex-direction: column;
|
|
366
|
-
background: url("../../img/classify-boxitem-bg.png") no-repeat center
|
|
367
|
-
background-size: 100% 100
|
|
366
|
+
/*background: url("../../img/classify-boxitem-bg.png") no-repeat center;*/
|
|
367
|
+
/*background-size: 100% 100%;*/
|
|
368
368
|
}
|
|
369
369
|
.main-block{
|
|
370
370
|
margin:0.38rem auto 0;
|
|
@@ -374,6 +374,11 @@ $greenItemFontSize:0.14rem;
|
|
|
374
374
|
border: 1px dashed #ffffff;
|
|
375
375
|
border-radius: 0.11rem;
|
|
376
376
|
flex-shrink: 0;
|
|
377
|
+
img{
|
|
378
|
+
width: 100%;
|
|
379
|
+
height: 100%;
|
|
380
|
+
border-radius: 0.11rem;
|
|
381
|
+
}
|
|
377
382
|
}
|
|
378
383
|
.main-content{
|
|
379
384
|
padding: 0 0.28rem 0.15rem 0.35rem;
|
|
@@ -389,8 +394,8 @@ $greenItemFontSize:0.14rem;
|
|
|
389
394
|
}
|
|
390
395
|
}
|
|
391
396
|
.append-item{
|
|
392
|
-
background: url("../../img/classify-green-item.png") no-repeat center;
|
|
393
|
-
background-size: 100% 100
|
|
397
|
+
/*background: url("../../img/classify-green-item.png") no-repeat center;
|
|
398
|
+
background-size: 100% 100%;*/
|
|
394
399
|
width: 1.3rem;
|
|
395
400
|
height: 1.3rem;
|
|
396
401
|
margin-right: 0.1rem;
|
|
@@ -424,8 +429,8 @@ $greenItemFontSize:0.14rem;
|
|
|
424
429
|
left:50%;
|
|
425
430
|
margin-left: -4.5rem;
|
|
426
431
|
width: 9rem;
|
|
427
|
-
background: url("../../img/classify-list-bg.png") no-repeat center
|
|
428
|
-
background-size: 100% 100
|
|
432
|
+
/*background: url("../../img/classify-list-bg.png") no-repeat center;*/
|
|
433
|
+
/*background-size: 100% 100%;*/
|
|
429
434
|
.list{
|
|
430
435
|
height: 1.5rem;
|
|
431
436
|
display: flex;
|
|
@@ -463,8 +468,8 @@ $greenItemFontSize:0.14rem;
|
|
|
463
468
|
}
|
|
464
469
|
}
|
|
465
470
|
.list-item{
|
|
466
|
-
background: url("../../img/classify-green-item.png") no-repeat center;
|
|
467
|
-
background-size: 100% 100
|
|
471
|
+
/*background: url("../../img/classify-green-item.png") no-repeat center;
|
|
472
|
+
background-size: 100% 100%;*/
|
|
468
473
|
width: 1.3rem;
|
|
469
474
|
height: 1.3rem;
|
|
470
475
|
margin-right: 0.1rem;
|
|
@@ -572,8 +577,8 @@ $greenItemFontSize:0.14rem;
|
|
|
572
577
|
}
|
|
573
578
|
.question-classify-moveDiv{
|
|
574
579
|
position: fixed;
|
|
575
|
-
background: url("../../img/classify-green-item.png") no-repeat center;
|
|
576
|
-
background-size: 100% 100
|
|
580
|
+
/*background: url("../../img/classify-green-item.png") no-repeat center;
|
|
581
|
+
background-size: 100% 100%;*/
|
|
577
582
|
width: 1.3rem;
|
|
578
583
|
height: 1.3rem;
|
|
579
584
|
margin-right: 0.1rem;
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="zykjcommon-question" style="width: 100%;height: 100%;">
|
|
3
|
-
<div class="question-classify">
|
|
3
|
+
<div class="question-classify" :style="bigBgCss">
|
|
4
4
|
<div class="box">
|
|
5
|
-
<div class="box-item"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
</div>
|
|
5
|
+
<div class="box-item"
|
|
6
|
+
:style="item.bgUrlCss"
|
|
7
|
+
v-for="(item,index) in bigBoxItemList" :key="index">
|
|
8
|
+
<div class="main-block">
|
|
9
|
+
<img :src="item.imgUrl" alt="">
|
|
11
10
|
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="box-item">
|
|
14
|
-
<div class="main-block"></div>
|
|
15
11
|
<div class="main-content">
|
|
16
12
|
<div class="main-append">
|
|
13
|
+
<!-- <div class="append-item"></div>-->
|
|
17
14
|
</div>
|
|
18
15
|
</div>
|
|
19
16
|
</div>
|
|
20
17
|
</div>
|
|
21
|
-
<div class="list-outter">
|
|
18
|
+
<div class="list-outter" :style="bottomBgCss">
|
|
22
19
|
<div class="prev">
|
|
23
20
|
<div class="prev-main"></div>
|
|
24
21
|
</div>
|
|
@@ -26,8 +23,12 @@
|
|
|
26
23
|
<div class="next-main"></div>
|
|
27
24
|
</div>
|
|
28
25
|
<div class="list">
|
|
29
|
-
<div class="list-item"
|
|
30
|
-
|
|
26
|
+
<div class="list-item"
|
|
27
|
+
:idx="index+1"
|
|
28
|
+
:style="item.bgUrlCss"
|
|
29
|
+
v-for="(item,index) in optionList"
|
|
30
|
+
:key="index">
|
|
31
|
+
<div class="list-item-text">{{item.content}}</div>
|
|
31
32
|
</div>
|
|
32
33
|
</div>
|
|
33
34
|
</div>
|
|
@@ -52,6 +53,14 @@ export default {
|
|
|
52
53
|
mode: {
|
|
53
54
|
type: String,
|
|
54
55
|
default: 'exam'
|
|
56
|
+
},
|
|
57
|
+
screenRepairH:{
|
|
58
|
+
type: Number,
|
|
59
|
+
default: 0
|
|
60
|
+
},
|
|
61
|
+
screenScale:{
|
|
62
|
+
type: Number,
|
|
63
|
+
default: 0
|
|
55
64
|
}
|
|
56
65
|
},
|
|
57
66
|
created() {
|
|
@@ -66,23 +75,27 @@ export default {
|
|
|
66
75
|
},
|
|
67
76
|
mounted() {
|
|
68
77
|
this.init()
|
|
69
|
-
this.$watch('
|
|
78
|
+
this.$watch('optionList',(nv)=>{
|
|
70
79
|
if(nv && nv.length){
|
|
71
80
|
this.$nextTick(()=>{
|
|
72
81
|
this.dothings()
|
|
73
82
|
})
|
|
74
83
|
}
|
|
75
|
-
})
|
|
76
|
-
setTimeout(()=>{
|
|
77
|
-
|
|
78
|
-
},500)
|
|
84
|
+
},{immediate:true,deep:true})
|
|
85
|
+
// setTimeout(()=>{
|
|
86
|
+
// this.optionList = [{name:'每年春夏秋冬季节变化'},{name:'音乐播放10次'},{name:'把10个梨子放进篮子'},{name:'音乐播放9次'},{name:'把9个梨子放进篮子'},{name:'音乐播放8次'},{name:'把8个梨子放进篮子'},{name:'音乐播放6次'}]
|
|
87
|
+
// },500)
|
|
79
88
|
},
|
|
80
89
|
data() {
|
|
81
90
|
return {
|
|
82
91
|
analyCorrectAnswer:'',
|
|
83
|
-
|
|
92
|
+
classify_question_info:{},
|
|
84
93
|
answerMap:{},
|
|
85
|
-
|
|
94
|
+
optionList:[],
|
|
95
|
+
bigBoxItemList:[],
|
|
96
|
+
bigBgCss:'',
|
|
97
|
+
bottomBgCss:'',
|
|
98
|
+
listItemBgCss:'',
|
|
86
99
|
env,
|
|
87
100
|
p1:{},//存mousedown相关
|
|
88
101
|
p2:{},//存mousemove相关
|
|
@@ -98,19 +111,90 @@ export default {
|
|
|
98
111
|
};
|
|
99
112
|
},
|
|
100
113
|
watch: {
|
|
114
|
+
questionInfo:{
|
|
115
|
+
handler(nv,ov){
|
|
116
|
+
let self = this
|
|
117
|
+
if(nv){
|
|
118
|
+
console.log(nv,33);
|
|
119
|
+
this.parseLists(nv)
|
|
120
|
+
//回显答案
|
|
121
|
+
if(nv.answerMap){
|
|
122
|
+
if(this.mode === 'analysis'){
|
|
101
123
|
|
|
124
|
+
}
|
|
125
|
+
// this.$emit('optionChange', {orderIndex:this.orderIndex,isAnswered:this.isAnswered()})
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
immediate:true
|
|
130
|
+
}
|
|
102
131
|
},
|
|
103
132
|
computed:{
|
|
104
133
|
},
|
|
105
134
|
methods: {
|
|
135
|
+
getAnswer(){
|
|
136
|
+
let result = []
|
|
137
|
+
$(this.$el).find('.box-item').each(function(index,item){
|
|
138
|
+
let cur = $(this)
|
|
139
|
+
let small_type_index_list = []
|
|
140
|
+
cur.find('.append-item').each((subIndex,subItem)=>{
|
|
141
|
+
small_type_index_list.push(Number($(subItem).attr('idx')))
|
|
142
|
+
})
|
|
143
|
+
result.push({
|
|
144
|
+
big_type_index:index+1,
|
|
145
|
+
small_type_index_list
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
return result
|
|
149
|
+
},
|
|
150
|
+
isAnswered(){
|
|
151
|
+
let len = $(this.$el).find('.list .list-item').length
|
|
152
|
+
let answerd = len === 0
|
|
153
|
+
return answerd
|
|
154
|
+
},
|
|
155
|
+
isCorrect(){
|
|
156
|
+
let correct = this.questionInfo.answerMap.is_correct === '1' ? true : false
|
|
157
|
+
return correct
|
|
158
|
+
},
|
|
159
|
+
parseLists(nv){
|
|
160
|
+
this.classify_question_info = nv.classify_question_info
|
|
161
|
+
this.answerMap = nv.answerMap
|
|
162
|
+
|
|
163
|
+
this.bigBgCss = `background: url(${this.classify_question_info.background_file.file_url}) no-repeat center;background-size: 100% 100%`
|
|
164
|
+
this.bottomBgCss = `background: url(${this.classify_question_info.bottom_img_file.file_url}) no-repeat center;background-size: 100% 100%`
|
|
165
|
+
|
|
166
|
+
let optionList = []
|
|
167
|
+
this.classify_question_info.small_type_option_list.forEach((item)=>{
|
|
168
|
+
optionList.push({
|
|
169
|
+
content:item.option_content,
|
|
170
|
+
bgUrlCss:`background: url(${item.file_url}) no-repeat center;background-size: 100% 100%`
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
this.optionList = optionList
|
|
174
|
+
this.listItemBgCss = !optionList[0]?'':optionList[0].bgUrlCss
|
|
175
|
+
|
|
176
|
+
let bigBoxItemList = []
|
|
177
|
+
let big_type_box_image_list = this.classify_question_info.big_type_box_image_list
|
|
178
|
+
let big_type_option_list = this.classify_question_info.big_type_option_list
|
|
179
|
+
big_type_box_image_list.forEach((item,index)=>{
|
|
180
|
+
bigBoxItemList.push({
|
|
181
|
+
imgUrl:big_type_option_list[index].file_url,
|
|
182
|
+
bgUrl:item.file_url,
|
|
183
|
+
bgUrlCss:`background: url(${item.file_url}) no-repeat center;background-size: 100% 100%`
|
|
184
|
+
})
|
|
185
|
+
})
|
|
186
|
+
this.bigBoxItemList = bigBoxItemList
|
|
187
|
+
},
|
|
106
188
|
setRootFontSize() {
|
|
107
|
-
setRemFixedHeight(1000,140,1.08)
|
|
189
|
+
// setRemFixedHeight(1000,140,1.08)
|
|
190
|
+
setRemFixedHeight(1000,this.screenRepairH,this.screenScale)
|
|
108
191
|
},
|
|
109
192
|
unmountedDo(){
|
|
110
193
|
window.removeEventListener('resize',this.setRootFontSize)
|
|
111
194
|
document.removeEventListener('gesturestart', this.gesturestartListener)
|
|
112
|
-
|
|
113
|
-
$('.question-classify .
|
|
195
|
+
this.$el
|
|
196
|
+
$(this.$el).find('.question-classify .append-item').off(this.mousedown)
|
|
197
|
+
$(this.$el).find('.question-classify .list-item').off(this.mousedown)
|
|
114
198
|
$(document).off(this.mouseup)
|
|
115
199
|
let html = document.getElementsByTagName("html")[0];
|
|
116
200
|
html.style.fontSize = "";
|
|
@@ -131,7 +215,7 @@ export default {
|
|
|
131
215
|
let moveDivLeftEnd = moveDivLeft + self.moveDiv.width()
|
|
132
216
|
let moveDivTop = self.moveDiv.offset().top
|
|
133
217
|
let moveDivTopEnd = moveDivTop + self.moveDiv.height()
|
|
134
|
-
$('.box-item').each((index,item)=>{
|
|
218
|
+
$(this.$el).find('.box-item').each((index,item)=>{
|
|
135
219
|
let boxItem = $(item)
|
|
136
220
|
let boxLeft = boxItem.offset().left
|
|
137
221
|
let boxLeftEnd = boxLeft + boxItem.width()
|
|
@@ -161,8 +245,8 @@ export default {
|
|
|
161
245
|
self.listItem.addClass('drag')
|
|
162
246
|
self.p1.moveX = self.listItem.offset().left;
|
|
163
247
|
self.p1.moveY = self.listItem.offset().top - 30;
|
|
164
|
-
|
|
165
|
-
self.moveDiv = $(`<div class="question-classify-moveDiv"><div class="list-item-text">${self.listItem.find('.list-item-text').text()}</div></div>`)
|
|
248
|
+
let idx = self.listItem.attr('idx')
|
|
249
|
+
self.moveDiv = $(`<div class="question-classify-moveDiv" idx="${idx}" style="${self.listItemBgCss}"><div class="list-item-text">${self.listItem.find('.list-item-text').text()}</div></div>`)
|
|
166
250
|
self.moveDiv.css({left:`${self.p1.moveX}px`,top:`${self.p1.moveY}px`})
|
|
167
251
|
$('body').append(self.moveDiv)
|
|
168
252
|
$(document).on(self.mousemove,function(e2){
|
|
@@ -184,7 +268,8 @@ export default {
|
|
|
184
268
|
appendMoveDiv(options){
|
|
185
269
|
let self = this
|
|
186
270
|
self.listItem.remove()
|
|
187
|
-
let
|
|
271
|
+
let idx = self.moveDiv.attr('idx')
|
|
272
|
+
let appendItem = $(`<div class="${options.appendItemClassName}" idx="${idx}" style="${self.listItemBgCss}"><div class="list-item-text">${self.moveDiv.find('.list-item-text').text()}</div></div>`)
|
|
188
273
|
appendItem.css({opacity:0})
|
|
189
274
|
options.targetList.append(appendItem)
|
|
190
275
|
options.targetList[options.scrollDirection](self.scrollDistance)
|
|
@@ -207,20 +292,21 @@ export default {
|
|
|
207
292
|
})
|
|
208
293
|
},
|
|
209
294
|
bindNextPrevEvent(type){
|
|
210
|
-
|
|
295
|
+
let self = this
|
|
296
|
+
$(this.$el).find(`.question-classify .${type}`).on('click',function(e){
|
|
211
297
|
e.stopPropagation()
|
|
212
298
|
e.preventDefault()
|
|
213
|
-
let listItem = $('.question-classify .list-item')
|
|
214
|
-
let list = $('.question-classify .list')
|
|
299
|
+
let listItem = $(self.$el).find('.question-classify .list-item')
|
|
300
|
+
let list = $(self.$el).find('.question-classify .list')
|
|
215
301
|
let w = listItem.outerWidth() * (type === 'next' ? 1 : -1)
|
|
216
302
|
let scrollLeft = list.scrollLeft()
|
|
217
303
|
console.log(scrollLeft);
|
|
218
|
-
$('.question-classify .list').stop(true).animate({scrollLeft:scrollLeft + w},500)
|
|
304
|
+
$(self.$el).find('.question-classify .list').stop(true).animate({scrollLeft:scrollLeft + w},500)
|
|
219
305
|
})
|
|
220
306
|
},
|
|
221
307
|
dothings(){
|
|
222
308
|
let self = this
|
|
223
|
-
self.bindDragDomEvent($('.question-classify .list-item'),'go')
|
|
309
|
+
self.bindDragDomEvent($(this.$el).find('.question-classify .list-item'),'go')
|
|
224
310
|
$(document).on(self.mouseup,function(e){
|
|
225
311
|
// e.preventDefault()
|
|
226
312
|
if(self.dragWay === 'go'){
|
|
@@ -252,7 +338,7 @@ export default {
|
|
|
252
338
|
//0说明都不在两个框内 1说明在其中一个框内
|
|
253
339
|
if(specArr.length === 0){
|
|
254
340
|
self.appendMoveDiv({
|
|
255
|
-
targetList:$('.question-classify .list'),
|
|
341
|
+
targetList:$(self.$el).find('.question-classify .list'),
|
|
256
342
|
appendItemClassName:'list-item',
|
|
257
343
|
op:'go',
|
|
258
344
|
scrollDirection:'scrollLeft'
|
package/src/main.ts
CHANGED
|
@@ -174,14 +174,14 @@ vueInstance.use(validationPlugin)
|
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
import ZYKJQuestionsPlugin from "@src/components/questions/developmentEntry.js"
|
|
178
178
|
// vueInstance.use((ZYKJQuestionsPlugin as any)(store))
|
|
179
|
-
|
|
180
179
|
// import ZYKJQuestionsPlugin from "../dist/zykjcommon-questions.umd.min"
|
|
181
|
-
import ZYKJQuestionsPlugin from "@zykjcommon/questions"
|
|
180
|
+
// import ZYKJQuestionsPlugin from "@zykjcommon/questions"
|
|
182
181
|
vueInstance.use((ZYKJQuestionsPlugin as any)(store))
|
|
183
|
-
import '@zykjcommon/questions/src/assets/scss/questions/zykjcommon-questions.scss';
|
|
184
|
-
|
|
182
|
+
// import '@zykjcommon/questions/src/assets/scss/questions/zykjcommon-questions.scss';
|
|
183
|
+
import '@src/assets/scss/questions/zykjcommon-questions.scss';
|
|
184
|
+
|
|
185
185
|
|
|
186
186
|
// console.log(ZYKJQuestionsPlugin,111);
|
|
187
187
|
|
|
@@ -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
|
})
|