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