@zykjcommon/questions 0.0.41 → 0.0.43
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 +55 -57
- package/dist/zykjcommon-questions.css +1 -1
- package/dist/zykjcommon-questions.umd.js +55 -57
- package/dist/zykjcommon-questions.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/assets/scss/questions/zykjcommon-questions.scss +2 -2
- package/src/components/questions/Question_Classify.vue +0 -2
- package/src/components/questions/Question_Programming.vue +2 -2
- package/src/views/exam/FullScreen.vue +36 -1
- package/tasks/setPublishPackageJson.js +5 -2
package/package.json
CHANGED
|
@@ -374,7 +374,7 @@ $greenItemFontSize:0.13em;
|
|
|
374
374
|
background-size: 100% 100%;
|
|
375
375
|
}
|
|
376
376
|
.main-block{
|
|
377
|
-
margin:0.38em auto 0.
|
|
377
|
+
margin:0.38em auto 0.1em;
|
|
378
378
|
width: 1.1em;
|
|
379
379
|
height: 1.1em;
|
|
380
380
|
background: #76d2ff;
|
|
@@ -391,7 +391,7 @@ $greenItemFontSize:0.13em;
|
|
|
391
391
|
padding: 0 0.28em 0.15em 0.35em;
|
|
392
392
|
flex: 1;
|
|
393
393
|
.main-append{
|
|
394
|
-
height: 2.
|
|
394
|
+
height: 2.74em;
|
|
395
395
|
overflow: auto;
|
|
396
396
|
display: flex;
|
|
397
397
|
flex-wrap: wrap;
|
|
@@ -219,8 +219,6 @@ export default {
|
|
|
219
219
|
$(this.$el).find(`.question-classify .next`).off('click')
|
|
220
220
|
$(this.$el).find(`.question-classify .prev`).off('click')
|
|
221
221
|
$(document).off(this.mouseup)
|
|
222
|
-
let html = document.getElementsByTagName("html")[0];
|
|
223
|
-
html.style.fontSize = "";
|
|
224
222
|
document.onselectstart = null
|
|
225
223
|
},
|
|
226
224
|
answeredNotify(){
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="zykjcommon-question">
|
|
3
|
-
<div class="question-type" v-if="!isSub">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
|
|
3
|
+
<div class="question-type" v-show="!isEnterCodeByInit" v-if="!isSub">{{questionInfo.questionIndex}}、{{ questionInfo.question_type_str }}<span v-if="questionInfo.score!=='null' && showScore">({{questionInfo.score}}分)</span>
|
|
4
4
|
<span class="score fr" v-if="mode==='analysis'">得分:{{questionInfo.answerMap ? questionInfo.answerMap.user_score : '-'}}分</span>
|
|
5
5
|
</div>
|
|
6
|
-
<div class="question-box">
|
|
6
|
+
<div class="question-box" v-show="!isEnterCodeByInit">
|
|
7
7
|
<div class="question-hint" v-if="questionInfo.hint && !isSub">{{ questionInfo.hint }}</div>
|
|
8
8
|
<div class="editor-content" v-html="questionInfo.htmlContent"></div>
|
|
9
9
|
<button class="bcdt-btn"
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<QuestionHeader></QuestionHeader>
|
|
4
4
|
<div class="content-outter" style="overflow: inherit">
|
|
5
5
|
<component :is="responsiveObj.curQuestionInfo.questionComponent"
|
|
6
|
+
:isEnterCodeByInit="true"
|
|
6
7
|
:bus="eventBus"
|
|
7
8
|
:questionInfo="responsiveObj.curQuestionInfo"
|
|
8
9
|
:screenRepairH="140"
|
|
@@ -117,6 +118,40 @@ export default defineComponent({
|
|
|
117
118
|
"size": 23,
|
|
118
119
|
"question_list": [
|
|
119
120
|
{
|
|
121
|
+
"question_type_str": "编程题",
|
|
122
|
+
"data_mode": 1,
|
|
123
|
+
"correct_judge": "",
|
|
124
|
+
"is_auto_check": "",
|
|
125
|
+
"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\"}]}]}]",
|
|
126
|
+
"correct_subjective_answer": "",
|
|
127
|
+
"auto_check": false,
|
|
128
|
+
"options_data": [],
|
|
129
|
+
"score": "30.00",
|
|
130
|
+
"sub_questions": [],
|
|
131
|
+
"style_type": "CODING",
|
|
132
|
+
"template_file_full_url": "https://dev-resource.thedeer.cn/pre/resource-testing/coding/d489ef8637c0198c9905b9628536ef875jsskgofnaulimvh.sb3",
|
|
133
|
+
"question_name": "1、准备工作 (1) 选择背景 Desert,Galaxy; (2) 选择角色 Rocketship。 2、功能实现 (1)火箭初始造型为 rocketship-a,初始位置为舞台下端,初始背景为 Dessert; (2)点击绿旗,火箭垂直向上移动,一直移动到舞台顶端,并在移动过 程中切换造型; (3)当火箭达到舞台顶端时,背景切换为 Galaxy; (4)火箭最后移到舞台下端的位置(初始位置),造型不限。",
|
|
134
|
+
"correct_rate": "",
|
|
135
|
+
"knowledge_name": "",
|
|
136
|
+
"page_location_list": [],
|
|
137
|
+
"code_type": 1,
|
|
138
|
+
"difficulty_level": "2",
|
|
139
|
+
"question_index": "",
|
|
140
|
+
"correct_single_index": 0,
|
|
141
|
+
"question_type": "16",
|
|
142
|
+
"media_resources": [],
|
|
143
|
+
"analysis": "",
|
|
144
|
+
"question_id": "12918",
|
|
145
|
+
"difficulty_level_str": "困难",
|
|
146
|
+
"update_date": "2023-05-13 10:09:59",
|
|
147
|
+
"exam_options_data": [],
|
|
148
|
+
"exam_link_answer_data": [],
|
|
149
|
+
"reference_file_full_url": "",
|
|
150
|
+
"correct_multiple_index_set": [],
|
|
151
|
+
"hint": "飞向太空",
|
|
152
|
+
"knowledge_id": ""
|
|
153
|
+
}
|
|
154
|
+
/*{
|
|
120
155
|
"question_type_str": "分类题",
|
|
121
156
|
"is_need_judge": "",
|
|
122
157
|
"read_audio_url": "",
|
|
@@ -405,7 +440,7 @@ export default defineComponent({
|
|
|
405
440
|
"judge_percent": "",
|
|
406
441
|
"knowledge_id": "367",
|
|
407
442
|
"read_content": ""
|
|
408
|
-
}
|
|
443
|
+
}*/
|
|
409
444
|
],
|
|
410
445
|
"examination_duration": 5400,
|
|
411
446
|
"examination_id": 495,
|
|
@@ -13,8 +13,11 @@ function getPublishJson(jsonStr){
|
|
|
13
13
|
let result = ''
|
|
14
14
|
let json = JSON.parse(jsonStr)
|
|
15
15
|
needOpKeyArr.forEach((item)=>{
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
let dependenciesVal = json.dependencies[item]
|
|
17
|
+
if(dependenciesVal){
|
|
18
|
+
json.devDependencies[item] = dependenciesVal
|
|
19
|
+
delete json.dependencies[item]
|
|
20
|
+
}
|
|
18
21
|
})
|
|
19
22
|
result = JSON.stringify(json,null,2)
|
|
20
23
|
return result
|