|
|
|
|
@ -1752,11 +1752,14 @@ var Simple = function Simple(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Answermodules.simpleText,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
|
|
value: item === null || item === void 0 || (_item$user_answer = item.user_answer) === null || _item$user_answer === void 0 ? void 0 : _item$user_answer[0]
|
|
|
|
|
value: item === null || item === void 0 || (_item$user_answer = item.user_answer) === null || _item$user_answer === void 0 ? void 0 : _item$user_answer[0],
|
|
|
|
|
style: {
|
|
|
|
|
color: item !== null && item !== void 0 && item.analysis ? item !== null && item !== void 0 && item.user_answer_right ? "rgb(41, 166, 79)" : "rgb(229, 51, 51)" : ''
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: item.user_score && (item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red"),
|
|
|
|
|
className: item !== null && item !== void 0 && item.analysis ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '',
|
|
|
|
|
children: showEditor ? /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z
|
|
|
|
|
// hidetoolBar={true}
|
|
|
|
|
// hidetoolBar={document.domain === "kepukehuan.educoder.net"}
|
|
|
|
|
@ -2053,7 +2056,7 @@ var Simple2_Simple = function Simple(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt30 mb20",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: item.user_score && (item.user_score === item.question_score ? "c-green" : "c-red"),
|
|
|
|
|
className: item !== null && item !== void 0 && item.analysis ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '',
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
|
|
|
children: "\u4F5C\u6587\u5185\u5BB9\uFF1A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -2721,7 +2724,7 @@ var Fill = function Fill(_ref) {
|
|
|
|
|
// }, 200)
|
|
|
|
|
// }}
|
|
|
|
|
,
|
|
|
|
|
className: "".concat(item.user_score && (item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red"), " ").concat(componentsmodules.fillInput)
|
|
|
|
|
className: "".concat(item !== null && item !== void 0 && item.analysis ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '', " ").concat(componentsmodules.fillInput)
|
|
|
|
|
})
|
|
|
|
|
}), ((_saveStatusArr$index = saveStatusArr[index]) === null || _saveStatusArr$index === void 0 ? void 0 : _saveStatusArr$index.status) === "success" && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
@ -3796,6 +3799,9 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
});
|
|
|
|
|
signConfigFuc();
|
|
|
|
|
};
|
|
|
|
|
var setClassName = function setClassName(item, type) {
|
|
|
|
|
return item !== null && item !== void 0 && item.analysis ? "edu-".concat(type, "-").concat(item !== null && item !== void 0 && item.user_answer_right ? "green" : "red") : '';
|
|
|
|
|
};
|
|
|
|
|
var renderSingle = function renderSingle(item, key) {
|
|
|
|
|
var _item$question_choice, _item$standard_answer, _item$question_choice2;
|
|
|
|
|
var userAnswer = (item === null || item === void 0 || (_item$question_choice = item.question_choices) === null || _item$question_choice === void 0 ? void 0 : _item$question_choice.filter(function (choice) {
|
|
|
|
|
@ -3813,7 +3819,7 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
handleChangeSingle(e.target.value, item === null || item === void 0 ? void 0 : item.question_id, key, item);
|
|
|
|
|
},
|
|
|
|
|
className: (item === null || item === void 0 ? void 0 : item.user_score) && "edu-radio-".concat(item !== null && item !== void 0 && item.user_answer_right ? "green" : "red"),
|
|
|
|
|
className: setClassName(item, 'radio'),
|
|
|
|
|
children: item === null || item === void 0 || (_item$question_choice2 = item.question_choices) === null || _item$question_choice2 === void 0 ? void 0 : _item$question_choice2.map(function (answer, index) {
|
|
|
|
|
var isJudge = item.question_type == 2;
|
|
|
|
|
var prefix = isJudge ? '' : "".concat(tagList[index], ".");
|
|
|
|
|
@ -3973,7 +3979,7 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
handleChangeSingles(e.target.value, items === null || items === void 0 ? void 0 : items.question_id, key, item, items);
|
|
|
|
|
setShowConfirm(true);
|
|
|
|
|
},
|
|
|
|
|
className: (item === null || item === void 0 ? void 0 : item.user_score) && "edu-radio-".concat(item !== null && item !== void 0 && item.user_answer_right ? "green" : "red"),
|
|
|
|
|
className: setClassName(item, 'radio'),
|
|
|
|
|
children: item === null || item === void 0 || (_item$question_choice3 = item.question_choices) === null || _item$question_choice3 === void 0 ? void 0 : _item$question_choice3.map(function (answer, index) {
|
|
|
|
|
var isJudge = item.question_type == 2;
|
|
|
|
|
var prefix = isJudge ? '' : "".concat(tagList[index], ".");
|
|
|
|
|
@ -4051,7 +4057,7 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
onChange: function onChange(value) {
|
|
|
|
|
handleChangeMultiple(value, item === null || item === void 0 ? void 0 : item.question_id, item);
|
|
|
|
|
},
|
|
|
|
|
className: (item === null || item === void 0 ? void 0 : item.user_score) && "edu-checkbox-".concat(item !== null && item !== void 0 && item.user_answer_right ? "green" : "red"),
|
|
|
|
|
className: setClassName(item, 'checkbox'),
|
|
|
|
|
children: item === null || item === void 0 || (_item$question_choice5 = item.question_choices) === null || _item$question_choice5 === void 0 ? void 0 : _item$question_choice5.map(function (answer, index) {
|
|
|
|
|
var prefix = "".concat(tagList[index], ".");
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|