@zykjcommon/questions 0.0.31 → 0.0.33
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 +124 -120
- package/dist/zykjcommon-questions.umd.js +124 -120
- package/dist/zykjcommon-questions.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/assets/js/rem.js +3 -3
- package/src/components/questions/Question_Classify.vue +2 -0
- package/src/components/questions/buildEntry.js +99 -97
- package/src/components/questions/developmentEntry.js +99 -97
|
@@ -23824,70 +23824,70 @@ var index = {
|
|
|
23824
23824
|
const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_411b6dae_render]])
|
|
23825
23825
|
|
|
23826
23826
|
/* harmony default export */ var Question_Programming = (Question_Programming_exports_);
|
|
23827
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
23827
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=66d3b99c
|
|
23828
23828
|
|
|
23829
|
-
var
|
|
23829
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_1 = {
|
|
23830
23830
|
class: "zykjcommon-question",
|
|
23831
23831
|
style: {
|
|
23832
23832
|
"width": "100%",
|
|
23833
23833
|
"height": "100%"
|
|
23834
23834
|
}
|
|
23835
23835
|
};
|
|
23836
|
-
var
|
|
23836
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_2 = {
|
|
23837
23837
|
class: "box"
|
|
23838
23838
|
};
|
|
23839
|
-
var
|
|
23839
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_3 = {
|
|
23840
23840
|
class: "main-block"
|
|
23841
23841
|
};
|
|
23842
|
-
var
|
|
23843
|
-
var
|
|
23842
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_4 = ["src"];
|
|
23843
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23844
23844
|
class: "main-content"
|
|
23845
23845
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23846
23846
|
class: "main-append"
|
|
23847
23847
|
})], -1);
|
|
23848
|
-
var
|
|
23848
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23849
23849
|
class: "prev"
|
|
23850
23850
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23851
23851
|
class: "prev-main"
|
|
23852
23852
|
})], -1);
|
|
23853
|
-
var
|
|
23853
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23854
23854
|
class: "next"
|
|
23855
23855
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23856
23856
|
class: "next-main"
|
|
23857
23857
|
})], -1);
|
|
23858
|
-
var
|
|
23858
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_8 = {
|
|
23859
23859
|
class: "list"
|
|
23860
23860
|
};
|
|
23861
|
-
var
|
|
23862
|
-
var
|
|
23861
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_9 = ["idx"];
|
|
23862
|
+
var Question_Classifyvue_type_template_id_66d3b99c_hoisted_10 = {
|
|
23863
23863
|
class: "list-item-text"
|
|
23864
23864
|
};
|
|
23865
|
-
function
|
|
23866
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
23865
|
+
function Question_Classifyvue_type_template_id_66d3b99c_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23866
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Classifyvue_type_template_id_66d3b99c_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23867
23867
|
class: "question-classify",
|
|
23868
23868
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bigBgCss)
|
|
23869
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23869
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_66d3b99c_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.bigBoxItemList, function (item, index) {
|
|
23870
23870
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
23871
23871
|
class: "box-item",
|
|
23872
23872
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
23873
23873
|
key: index
|
|
23874
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23874
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_66d3b99c_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
23875
23875
|
src: item.imgUrl,
|
|
23876
23876
|
alt: ""
|
|
23877
|
-
}, null, 8,
|
|
23877
|
+
}, null, 8, Question_Classifyvue_type_template_id_66d3b99c_hoisted_4)]), Question_Classifyvue_type_template_id_66d3b99c_hoisted_5], 4);
|
|
23878
23878
|
}), 128))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
23879
23879
|
class: "list-outter",
|
|
23880
23880
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bottomBgCss)
|
|
23881
|
-
}, [
|
|
23881
|
+
}, [Question_Classifyvue_type_template_id_66d3b99c_hoisted_6, Question_Classifyvue_type_template_id_66d3b99c_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_66d3b99c_hoisted_8, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.optionList, function (item, index) {
|
|
23882
23882
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
23883
23883
|
class: "list-item",
|
|
23884
23884
|
idx: item.idx,
|
|
23885
23885
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
|
|
23886
23886
|
key: index
|
|
23887
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
23887
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_66d3b99c_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 1)], 12, Question_Classifyvue_type_template_id_66d3b99c_hoisted_9);
|
|
23888
23888
|
}), 128))])], 4)], 4)]);
|
|
23889
23889
|
}
|
|
23890
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=
|
|
23890
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=66d3b99c
|
|
23891
23891
|
|
|
23892
23892
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
23893
23893
|
var es_array_sort = __webpack_require__(2707);
|
|
@@ -23934,7 +23934,7 @@ var setRemFixedHeight = function setRemFixedHeight() {
|
|
|
23934
23934
|
var designWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1440;
|
|
23935
23935
|
var repairH = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
23936
23936
|
var scale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
23937
|
-
var
|
|
23937
|
+
var box = arguments.length > 3 ? arguments[3] : undefined;
|
|
23938
23938
|
var baseNum = 100;
|
|
23939
23939
|
var winWidth = document.documentElement.clientWidth || document.body.clientWidth;
|
|
23940
23940
|
var winHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
@@ -23943,8 +23943,8 @@ var setRemFixedHeight = function setRemFixedHeight() {
|
|
|
23943
23943
|
var frameBili = 4.3 / 3;
|
|
23944
23944
|
var b = frameBili / (winWidth / winHeight);
|
|
23945
23945
|
var realW = parseInt(winWidth * b);
|
|
23946
|
-
|
|
23947
|
-
console.log(html.style.fontSize);
|
|
23946
|
+
box.style.fontSize = realW / designWidth * baseNum * scale + 'px';
|
|
23947
|
+
// console.log(html.style.fontSize);
|
|
23948
23948
|
};
|
|
23949
23949
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=script&lang=js
|
|
23950
23950
|
|
|
@@ -24098,6 +24098,8 @@ var env = js_fun.getDeviceEnv();
|
|
|
24098
24098
|
intervalFindEl: function intervalFindEl() {
|
|
24099
24099
|
var _this2 = this;
|
|
24100
24100
|
return new Promise(function (resolve, reject) {
|
|
24101
|
+
console.log(_this2.$el, 345);
|
|
24102
|
+
debugger;
|
|
24101
24103
|
if (_this2.$el) {
|
|
24102
24104
|
resolve();
|
|
24103
24105
|
} else {
|
|
@@ -24389,7 +24391,7 @@ var env = js_fun.getDeviceEnv();
|
|
|
24389
24391
|
|
|
24390
24392
|
|
|
24391
24393
|
;
|
|
24392
|
-
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',
|
|
24394
|
+
const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_66d3b99c_render]])
|
|
24393
24395
|
|
|
24394
24396
|
/* harmony default export */ var Question_Classify = (Question_Classify_exports_);
|
|
24395
24397
|
;// CONCATENATED MODULE: ./src/components/questions/const.js
|
|
@@ -24720,6 +24722,103 @@ var state = {
|
|
|
24720
24722
|
|
|
24721
24723
|
|
|
24722
24724
|
|
|
24725
|
+
var parseQuestionListItem = function parseQuestionListItem(mode, question_list, answer_map) {
|
|
24726
|
+
var _this = this;
|
|
24727
|
+
var parentIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
24728
|
+
function parseContent(arr, contentWidth) {
|
|
24729
|
+
arr.forEach(function (item) {
|
|
24730
|
+
if (item['<>'] === 'img') {
|
|
24731
|
+
if (item.hasOwnProperty('width')) {
|
|
24732
|
+
var width = Number(item.width);
|
|
24733
|
+
if (width > contentWidth) {
|
|
24734
|
+
item.width = Math.floor(contentWidth);
|
|
24735
|
+
item.height && delete item.height;
|
|
24736
|
+
}
|
|
24737
|
+
}
|
|
24738
|
+
}
|
|
24739
|
+
if (item.html && item.html.length) {
|
|
24740
|
+
parseContent(item.html, contentWidth);
|
|
24741
|
+
}
|
|
24742
|
+
});
|
|
24743
|
+
}
|
|
24744
|
+
question_list.forEach(function (item, index) {
|
|
24745
|
+
item.questionComponent = questionMapper[item.question_type];
|
|
24746
|
+
// item.questionIndex = index + 1
|
|
24747
|
+
if (parentIndex === undefined) {
|
|
24748
|
+
item.questionIndex = index + 1;
|
|
24749
|
+
} else {
|
|
24750
|
+
item.questionIndex = parentIndex + 1 + '-' + (index + 1);
|
|
24751
|
+
item.questionIndex2 = index + 1;
|
|
24752
|
+
}
|
|
24753
|
+
if (answer_map && answer_map.hasOwnProperty(item.question_id)) {
|
|
24754
|
+
item.answerMap = answer_map[item.question_id];
|
|
24755
|
+
if (mode === 'analysis') {
|
|
24756
|
+
//analysis页面特殊处理
|
|
24757
|
+
if (item.answerMap.user_coding_file) {
|
|
24758
|
+
item.answerMap.oss_temp_url = item.answerMap.user_coding_file;
|
|
24759
|
+
}
|
|
24760
|
+
//analysis页面特殊处理score字段为 answerMap.question_max_score
|
|
24761
|
+
item.score = item.answerMap.question_max_score;
|
|
24762
|
+
//预览接口学生答案以user_开头,为适配考试的学生答案,做处理
|
|
24763
|
+
var answerMapKeys = Object.keys(item.answerMap);
|
|
24764
|
+
var reg = /^user_/ig;
|
|
24765
|
+
answerMapKeys.forEach(function (answerMapKeysItem) {
|
|
24766
|
+
if (reg.test(answerMapKeysItem)) {
|
|
24767
|
+
var newProp = answerMapKeysItem.replace(reg, '');
|
|
24768
|
+
item.answerMap[newProp] = item.answerMap[answerMapKeysItem];
|
|
24769
|
+
}
|
|
24770
|
+
});
|
|
24771
|
+
}
|
|
24772
|
+
} else {
|
|
24773
|
+
item.answerMap = null;
|
|
24774
|
+
}
|
|
24775
|
+
var question_type = item.question_type;
|
|
24776
|
+
if (question_type == 3) {
|
|
24777
|
+
//判断题手动构造选项数组
|
|
24778
|
+
item.exam_options_data = [{
|
|
24779
|
+
index: 1,
|
|
24780
|
+
data: {
|
|
24781
|
+
name: '正确'
|
|
24782
|
+
}
|
|
24783
|
+
}, {
|
|
24784
|
+
index: 2,
|
|
24785
|
+
data: {
|
|
24786
|
+
name: '错误'
|
|
24787
|
+
}
|
|
24788
|
+
}];
|
|
24789
|
+
} else {
|
|
24790
|
+
if (item.exam_options_data && item.exam_options_data.length) {
|
|
24791
|
+
item.exam_options_data.forEach(function (subItem, subIndex) {
|
|
24792
|
+
subItem.enIndex = js_fun.indexToEnIndex(subIndex + 1);
|
|
24793
|
+
});
|
|
24794
|
+
}
|
|
24795
|
+
}
|
|
24796
|
+
//转化content富文本
|
|
24797
|
+
try {
|
|
24798
|
+
var contentArr = JSON.parse(item.content);
|
|
24799
|
+
var contentWidth = jQuery('.question-list').width() - 30;
|
|
24800
|
+
//图片宽度超出框架的时候把宽度设置成框架大小
|
|
24801
|
+
parseContent(contentArr, contentWidth);
|
|
24802
|
+
item.htmlContent = $.json2html({}, contentArr);
|
|
24803
|
+
} catch (e) {
|
|
24804
|
+
item.htmlContent = item.content;
|
|
24805
|
+
}
|
|
24806
|
+
//转化analysis富文本
|
|
24807
|
+
try {
|
|
24808
|
+
if (item.analysis) {
|
|
24809
|
+
item.analysisHtmlContent = $.json2html({}, JSON.parse(item.analysis));
|
|
24810
|
+
} else {
|
|
24811
|
+
item.analysisHtmlContent = '';
|
|
24812
|
+
}
|
|
24813
|
+
} catch (e) {
|
|
24814
|
+
item.analysisHtmlContent = item.analysis;
|
|
24815
|
+
}
|
|
24816
|
+
//如果是阅读题要递归解析
|
|
24817
|
+
if (item.sub_questions && item.sub_questions.length) {
|
|
24818
|
+
_this.parseQuestionListItem(mode, item.sub_questions, answer_map, index);
|
|
24819
|
+
}
|
|
24820
|
+
});
|
|
24821
|
+
};
|
|
24723
24822
|
/* harmony default export */ function buildEntry(store) {
|
|
24724
24823
|
//动态注册store
|
|
24725
24824
|
store.registerModule('zykjcommonQuestions', questions_store);
|
|
@@ -24729,103 +24828,7 @@ var state = {
|
|
|
24729
24828
|
Vue.mixin({
|
|
24730
24829
|
methods: {
|
|
24731
24830
|
//公共解析questionItem方法
|
|
24732
|
-
parseQuestionListItem:
|
|
24733
|
-
var _this = this;
|
|
24734
|
-
var parentIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
24735
|
-
function parseContent(arr, contentWidth) {
|
|
24736
|
-
arr.forEach(function (item) {
|
|
24737
|
-
if (item['<>'] === 'img') {
|
|
24738
|
-
if (item.hasOwnProperty('width')) {
|
|
24739
|
-
var width = Number(item.width);
|
|
24740
|
-
if (width > contentWidth) {
|
|
24741
|
-
item.width = Math.floor(contentWidth);
|
|
24742
|
-
item.height && delete item.height;
|
|
24743
|
-
}
|
|
24744
|
-
}
|
|
24745
|
-
}
|
|
24746
|
-
if (item.html && item.html.length) {
|
|
24747
|
-
parseContent(item.html, contentWidth);
|
|
24748
|
-
}
|
|
24749
|
-
});
|
|
24750
|
-
}
|
|
24751
|
-
question_list.forEach(function (item, index) {
|
|
24752
|
-
item.questionComponent = questionMapper[item.question_type];
|
|
24753
|
-
// item.questionIndex = index + 1
|
|
24754
|
-
if (parentIndex === undefined) {
|
|
24755
|
-
item.questionIndex = index + 1;
|
|
24756
|
-
} else {
|
|
24757
|
-
item.questionIndex = parentIndex + 1 + '-' + (index + 1);
|
|
24758
|
-
item.questionIndex2 = index + 1;
|
|
24759
|
-
}
|
|
24760
|
-
if (answer_map && answer_map.hasOwnProperty(item.question_id)) {
|
|
24761
|
-
item.answerMap = answer_map[item.question_id];
|
|
24762
|
-
if (mode === 'analysis') {
|
|
24763
|
-
//analysis页面特殊处理
|
|
24764
|
-
if (item.answerMap.user_coding_file) {
|
|
24765
|
-
item.answerMap.oss_temp_url = item.answerMap.user_coding_file;
|
|
24766
|
-
}
|
|
24767
|
-
//analysis页面特殊处理score字段为 answerMap.question_max_score
|
|
24768
|
-
item.score = item.answerMap.question_max_score;
|
|
24769
|
-
//预览接口学生答案以user_开头,为适配考试的学生答案,做处理
|
|
24770
|
-
var answerMapKeys = Object.keys(item.answerMap);
|
|
24771
|
-
var reg = /^user_/ig;
|
|
24772
|
-
answerMapKeys.forEach(function (answerMapKeysItem) {
|
|
24773
|
-
if (reg.test(answerMapKeysItem)) {
|
|
24774
|
-
var newProp = answerMapKeysItem.replace(reg, '');
|
|
24775
|
-
item.answerMap[newProp] = item.answerMap[answerMapKeysItem];
|
|
24776
|
-
}
|
|
24777
|
-
});
|
|
24778
|
-
}
|
|
24779
|
-
} else {
|
|
24780
|
-
item.answerMap = null;
|
|
24781
|
-
}
|
|
24782
|
-
var question_type = item.question_type;
|
|
24783
|
-
if (question_type == 3) {
|
|
24784
|
-
//判断题手动构造选项数组
|
|
24785
|
-
item.exam_options_data = [{
|
|
24786
|
-
index: 1,
|
|
24787
|
-
data: {
|
|
24788
|
-
name: '正确'
|
|
24789
|
-
}
|
|
24790
|
-
}, {
|
|
24791
|
-
index: 2,
|
|
24792
|
-
data: {
|
|
24793
|
-
name: '错误'
|
|
24794
|
-
}
|
|
24795
|
-
}];
|
|
24796
|
-
} else {
|
|
24797
|
-
if (item.exam_options_data && item.exam_options_data.length) {
|
|
24798
|
-
item.exam_options_data.forEach(function (subItem, subIndex) {
|
|
24799
|
-
subItem.enIndex = js_fun.indexToEnIndex(subIndex + 1);
|
|
24800
|
-
});
|
|
24801
|
-
}
|
|
24802
|
-
}
|
|
24803
|
-
//转化content富文本
|
|
24804
|
-
try {
|
|
24805
|
-
var contentArr = JSON.parse(item.content);
|
|
24806
|
-
var contentWidth = jQuery('.question-list').width() - 30;
|
|
24807
|
-
//图片宽度超出框架的时候把宽度设置成框架大小
|
|
24808
|
-
parseContent(contentArr, contentWidth);
|
|
24809
|
-
item.htmlContent = $.json2html({}, contentArr);
|
|
24810
|
-
} catch (e) {
|
|
24811
|
-
item.htmlContent = item.content;
|
|
24812
|
-
}
|
|
24813
|
-
//转化analysis富文本
|
|
24814
|
-
try {
|
|
24815
|
-
if (item.analysis) {
|
|
24816
|
-
item.analysisHtmlContent = $.json2html({}, JSON.parse(item.analysis));
|
|
24817
|
-
} else {
|
|
24818
|
-
item.analysisHtmlContent = '';
|
|
24819
|
-
}
|
|
24820
|
-
} catch (e) {
|
|
24821
|
-
item.analysisHtmlContent = item.analysis;
|
|
24822
|
-
}
|
|
24823
|
-
//如果是阅读题要递归解析
|
|
24824
|
-
if (item.sub_questions && item.sub_questions.length) {
|
|
24825
|
-
_this.parseQuestionListItem(mode, item.sub_questions, answer_map, index);
|
|
24826
|
-
}
|
|
24827
|
-
});
|
|
24828
|
-
}
|
|
24831
|
+
parseQuestionListItem: parseQuestionListItem
|
|
24829
24832
|
}
|
|
24830
24833
|
});
|
|
24831
24834
|
Vue.component('Question_SingleChoice', Question_SingleChoice);
|
|
@@ -24836,6 +24839,7 @@ var state = {
|
|
|
24836
24839
|
Vue.component('Question_Programming', Question_Programming);
|
|
24837
24840
|
Vue.component('Question_Classify', Question_Classify);
|
|
24838
24841
|
},
|
|
24842
|
+
parseQuestionListItem: parseQuestionListItem,
|
|
24839
24843
|
questionMapper: questionMapper,
|
|
24840
24844
|
Question_SingleChoice: Question_SingleChoice,
|
|
24841
24845
|
Question_MultipleChoice: Question_MultipleChoice,
|