|
|
|
|
@ -1530,9 +1530,9 @@ function triggerPlus(id, params) {
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 19704:
|
|
|
|
|
/***/ 30823:
|
|
|
|
|
/*!**************************************************************!*\
|
|
|
|
|
!*** ./src/pages/Paths/Detail/Answer/index.tsx + 12 modules ***!
|
|
|
|
|
!*** ./src/pages/Paths/Detail/Answer/index.tsx + 14 modules ***!
|
|
|
|
|
\**************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
@ -1594,6 +1594,34 @@ var ExclamationCircleOutlined = __webpack_require__(23717);
|
|
|
|
|
var MinusSquareOutlined = __webpack_require__(4917);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/PlusSquareOutlined.js + 1 modules
|
|
|
|
|
var PlusSquareOutlined = __webpack_require__(20614);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/extends.js
|
|
|
|
|
var esm_extends = __webpack_require__(24931);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/LogoutOutlined.js
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
|
|
var LogoutOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z" } }] }, "name": "logout", "theme": "outlined" };
|
|
|
|
|
/* harmony default export */ var asn_LogoutOutlined = (LogoutOutlined);
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
|
|
var AntdIcon = __webpack_require__(99194);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/LogoutOutlined.js
|
|
|
|
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var LogoutOutlined_LogoutOutlined = function LogoutOutlined(props, ref) {
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
|
|
ref: ref,
|
|
|
|
|
icon: asn_LogoutOutlined
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LogoutOutlined_LogoutOutlined);
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var icons_LogoutOutlined = (RefIcon);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/Answer/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Answermodules = ({"flex_box_center":"flex_box_center___oRroB","flex_space_between":"flex_space_between___EwZpo","flex_box_vertical_center":"flex_box_vertical_center___h0s2T","flex_box_center_end":"flex_box_center_end___u9oIy","flex_box_column":"flex_box_column___eWn0O","bg":"bg___d0evx","wrapper":"wrapper___XG7k8","exerciseAlert":"exerciseAlert___mmZ2f","title":"title___TwvsC","content":"content___ToimS","baseMargin":"baseMargin___pgt51","noWrap":"noWrap___USB5L","singleItem":"singleItem___DpTN1","questionIcons":"questionIcons___o5EXi","green":"green___RdbtB","orange":"orange___hAz9v","greenTip":"greenTip___FWmzA","redTip":"redTip___V8fkj","orangeTip":"orangeTip___WdAZU","pollDesc":"pollDesc___OMWEQ","answered":"answered___GMHdE","unanswer":"unanswer___Sdgip","anchor":"anchor___ykWPG","answerFlag":"answerFlag___uqPvZ","flagActive":"flagActive___eL7Gw","flagHalf":"flagHalf___qjjno","answerStudentFlag":"answerStudentFlag___dXP7Z","answerStudentActive":"answerStudentActive___cdsY4","questionItem":"questionItem___GLdn5","questionScore":"questionScore___Qe2Wf","itemType":"itemType___Fxaxa","itemFlag":"itemFlag___BOnUF","answerWrap":"answerWrap___l00IK","answerSubjective":"answerSubjective___mQ3vJ","otherInput":"otherInput___az3Al","submitButton":"submitButton___h0LsL","randomFlag":"randomFlag___Uqnrj","answerTrue":"answerTrue___X_sHN","answerFalse":"answerFalse___Q_tiD","answerHalf":"answerHalf___wKhZS","renderHtml":"renderHtml___zJDPV","simpleText":"simpleText___TIizh","answerYes":"answerYes___ls1Ow","answerNo":"answerNo___dJ25F","answerInfo":"answerInfo___O6CcX","answerProgress":"answerProgress____lbiz","answerSheetWrap":"answerSheetWrap___ImNC3","answerSheetQuestionTitle":"answerSheetQuestionTitle___tT_u1","answerSheet":"answerSheet___pTDxk","answerSheetItem":"answerSheetItem___yNJnx","qindex":"qindex___sqPo7","markIcon":"markIcon___FzWAZ","active":"active___cUK4F","partialActive":"partialActive___EPnJ1","selected":"selected___QFpb7","countDown":"countDown___Xm36I","cnText":"cnText___jmpxc","red":"red___vhTdA","refreshBtn":"refreshBtn___MU9IM","fold":"fold___c4A4d","cardList":"cardList___J8s0N","withQrcode":"withQrcode___B6Mpa","iframe":"iframe___I8TAS","eduTip":"eduTip___QZZkp","eduQrcode":"eduQrcode___O41E2","eduVideo":"eduVideo___AnwT7","eduUsername":"eduUsername___IIV4W","startAnswer":"startAnswer___UeVL4","eduSubmit":"eduSubmit___pUFQ_","eduTitle":"eduTitle___wAF48","wrpAnswer":"wrpAnswer___OVYaB","simpleMd":"simpleMd___EjMj2","videomodal":"videomodal___jheds","mainPart":"mainPart___e8Qpl","userInfoText":"userInfoText___Y_o8M","answerSheetBottom":"answerSheetBottom___P6mpG","tooltipWrap":"tooltipWrap___QyPZg","leftPart":"leftPart___er3Jw","rightPart":"rightPart___HH4jn","questionPart":"questionPart___UUs3M","questionTypeTitle":"questionTypeTitle___UPDLc","questionTypeInfo":"questionTypeInfo___DxkkU","toIframeBtn":"toIframeBtn___lDyBW","bottom":"bottom___vzCsQ","markBtn":"markBtn___eBNxS","changeButton":"changeButton___iIa_B","prevBtn":"prevBtn___NReo3","analysisWrap":"analysisWrap___qQ9JJ","greyBg":"greyBg___On0yQ","fixHeader":"fixHeader___Tuabq","exerciseTitle":"exerciseTitle___OXdrr","commitModal":"commitModal___Necyx","commitItem":"commitItem___ndc0Y","commitInfoLabel":"commitInfoLabel___z9MX8","commitInfoValue":"commitInfoValue___a86os","cameraHeader":"cameraHeader___pt6r7","dottedLineWrapper":"dottedLineWrapper___RyJk7","leftHalfCircle":"leftHalfCircle___PjJKc","dottedLine":"dottedLine___QUhUk","rightHalfCircle":"rightHalfCircle___Dkp6Z","orangeNum":"orangeNum___oyiWt","teachAnalysis":"teachAnalysis___ETB4N","teachAnalysisModal":"teachAnalysisModal___FZZUr"});
|
|
|
|
|
@ -1636,7 +1664,7 @@ var Simple = function Simple(_ref) {
|
|
|
|
|
sign = _ref.sign,
|
|
|
|
|
setKnowledgeDialog = _ref.setKnowledgeDialog,
|
|
|
|
|
_ref$onBlur = _ref.onBlur,
|
|
|
|
|
_onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur;
|
|
|
|
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur;
|
|
|
|
|
var value = (0,_react_17_0_2_react.useRef)("");
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
@ -1654,11 +1682,11 @@ var Simple = function Simple(_ref) {
|
|
|
|
|
var countDown = function countDown() {
|
|
|
|
|
clearInterval(timeRef.current);
|
|
|
|
|
timeRef.current = setInterval(function () {
|
|
|
|
|
if (isFocus) _onBlur(value.current, true);
|
|
|
|
|
if (isFocus) onBlur(value.current, true);
|
|
|
|
|
}, 10 * 1000);
|
|
|
|
|
};
|
|
|
|
|
var onBeforeunload = function onBeforeunload(e) {
|
|
|
|
|
_onBlur(value.current);
|
|
|
|
|
onBlur(value.current);
|
|
|
|
|
var confirmationMessage = "确定离开此页面吗?此页数据可能会丢失";
|
|
|
|
|
(e || window.event).returnValue = confirmationMessage;
|
|
|
|
|
return confirmationMessage;
|
|
|
|
|
@ -1741,15 +1769,20 @@ var Simple = function Simple(_ref) {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
onChange: function onChange(v) {
|
|
|
|
|
value.current = v;
|
|
|
|
|
setIsFocus(true);
|
|
|
|
|
},
|
|
|
|
|
onBlur: function onBlur() {
|
|
|
|
|
// setIsFocus(true)
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
_onBlur(value.current);
|
|
|
|
|
onBlur(value.current);
|
|
|
|
|
}, 200);
|
|
|
|
|
clearInterval(timeRef.current);
|
|
|
|
|
setIsFocus(false);
|
|
|
|
|
}
|
|
|
|
|
// onBlur={() => {
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// onBlur(value.current);
|
|
|
|
|
// }, 200)
|
|
|
|
|
// clearInterval(timeRef.current);
|
|
|
|
|
// setIsFocus(false)
|
|
|
|
|
// }}
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _item$user_answer3;
|
|
|
|
|
@ -2590,7 +2623,7 @@ var Fill = function Fill(_ref) {
|
|
|
|
|
answerData = _ref.answerData,
|
|
|
|
|
setKnowledgeDialog = _ref.setKnowledgeDialog,
|
|
|
|
|
_ref$onBlur = _ref.onBlur,
|
|
|
|
|
_onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur;
|
|
|
|
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
userAnswer = _useState2[0],
|
|
|
|
|
@ -2637,18 +2670,13 @@ var Fill = function Fill(_ref) {
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
userAnswer[index].answer_text = e.target.value;
|
|
|
|
|
setUserAnswer(toConsumableArray_default()(userAnswer));
|
|
|
|
|
},
|
|
|
|
|
onFocus: function onFocus() {
|
|
|
|
|
sign.current = true;
|
|
|
|
|
},
|
|
|
|
|
onBlur: function onBlur(e) {
|
|
|
|
|
setTimeout( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, newArr, _newArr;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return _onBlur(answer === null || answer === void 0 ? void 0 : answer.answer_text, index + 1, userAnswer);
|
|
|
|
|
return onBlur(answer === null || answer === void 0 ? void 0 : answer.answer_text, index + 1, userAnswer);
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if (res.status == 1) {
|
|
|
|
|
@ -2673,6 +2701,24 @@ var Fill = function Fill(_ref) {
|
|
|
|
|
}, _callee);
|
|
|
|
|
})), 200);
|
|
|
|
|
},
|
|
|
|
|
onFocus: function onFocus() {
|
|
|
|
|
sign.current = true;
|
|
|
|
|
}
|
|
|
|
|
// onBlur={(e) => {
|
|
|
|
|
// setTimeout(async () => {
|
|
|
|
|
// const res = await onBlur(answer?.answer_text, index + 1, userAnswer)
|
|
|
|
|
// if (res.status == 1) {
|
|
|
|
|
// const newArr = saveStatusArr.slice()
|
|
|
|
|
// newArr[index] = { status: 'none', errorText: '' }
|
|
|
|
|
// setSaveStatusArr(newArr)
|
|
|
|
|
// } else {
|
|
|
|
|
// const newArr = saveStatusArr.slice()
|
|
|
|
|
// newArr[index] = { status: 'fail', errorText: res.message }
|
|
|
|
|
// setSaveStatusArr(newArr)
|
|
|
|
|
// }
|
|
|
|
|
// }, 200)
|
|
|
|
|
// }}
|
|
|
|
|
,
|
|
|
|
|
className: "".concat(item.user_score && (item.user_score === item.question_score ? "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, {
|
|
|
|
|
@ -3080,7 +3126,7 @@ var Answer_scoreStatusMapping = {
|
|
|
|
|
1: 'c-green'
|
|
|
|
|
};
|
|
|
|
|
var Answer = function Answer(_ref) {
|
|
|
|
|
var _answerData$exercise6, _answerData$exercise7, _answerData$exercise8, _answerData$exercise9, _answerData$exercise10, _answerData$question_5, _answerData$exercise_18, _answerData$question_6, _answerData$exercise_19, _answerData$exercise_20, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_23, _answerData$exercise11, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_27, _answerData$exercise_28, _answerData$exercise_29;
|
|
|
|
|
var _answerData$exercise6, _answerData$exercise7, _answerData$exercise8, _answerData$exercise9, _answerData$exercise10, _answerData$question_5, _answerData$exercise_18, _answerData$question_6, _answerData$exercise_19, _answerData$exercise_20, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_23, _answerData$exercise11, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_26;
|
|
|
|
|
var globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
@ -3606,6 +3652,13 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
message: '答案不能为空'
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
if (!['COMPLETION'].includes(item.question_type)) {
|
|
|
|
|
_context9.next = 6;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
updateSuggestAnswer(value, id, index);
|
|
|
|
|
return _context9.abrupt("return");
|
|
|
|
|
case 6:
|
|
|
|
|
answerData.question_status.find(function (item) {
|
|
|
|
|
return item.ques_id === id;
|
|
|
|
|
}).ques_status = param.every(function (k) {
|
|
|
|
|
@ -3633,7 +3686,7 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
status: 1,
|
|
|
|
|
message: ''
|
|
|
|
|
});
|
|
|
|
|
case 10:
|
|
|
|
|
case 13:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context9.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -3697,12 +3750,26 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
setShowConfirm(true);
|
|
|
|
|
signConfigFuc();
|
|
|
|
|
};
|
|
|
|
|
var updateSuggestAnswer = function updateSuggestAnswer(value, id) {
|
|
|
|
|
var updateSuggestAnswer = function updateSuggestAnswer(value, id, index) {
|
|
|
|
|
setItemBankData(function (e) {
|
|
|
|
|
var arr = e.map(function (item) {
|
|
|
|
|
if ((item === null || item === void 0 ? void 0 : item.question_id) == id) {
|
|
|
|
|
item.user_answer = [];
|
|
|
|
|
item.user_answer.push(value);
|
|
|
|
|
if (['SINGLE', 'MULTIPLE', 'JUDGMENT'].includes(item === null || item === void 0 ? void 0 : item.question_type)) {
|
|
|
|
|
item.user_answer = [];
|
|
|
|
|
item.user_answer.push(value);
|
|
|
|
|
} else if (['COMPLETION'].includes(item === null || item === void 0 ? void 0 : item.question_type)) {
|
|
|
|
|
var answers = {
|
|
|
|
|
choice_id: index,
|
|
|
|
|
answer_text: value
|
|
|
|
|
};
|
|
|
|
|
if (item.user_answer.filter(function (item) {
|
|
|
|
|
return item.choice_id != index;
|
|
|
|
|
})) {
|
|
|
|
|
item.user_answer.splice(index - 1, 1, answers);
|
|
|
|
|
} else {
|
|
|
|
|
item.user_answer.push(answers);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return item;
|
|
|
|
|
});
|
|
|
|
|
@ -4451,7 +4518,7 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
return val.ques_status === 1;
|
|
|
|
|
})) === null || _answerData$question_4 === void 0 ? void 0 : _answerData$question_4.length;
|
|
|
|
|
var b = answerData === null || answerData === void 0 || (_answerData$exercise_9 = answerData.exercise_types) === null || _answerData$exercise_9 === void 0 ? void 0 : _answerData$exercise_9.q_counts;
|
|
|
|
|
if (b - a) {
|
|
|
|
|
if (b - a > 0) {
|
|
|
|
|
modal/* default */.Z.confirm({
|
|
|
|
|
title: '确认退出',
|
|
|
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -4607,7 +4674,8 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
if (item !== null && item !== void 0 && item.user_answer && (item === null || item === void 0 || (_item$user_answer3 = item.user_answer) === null || _item$user_answer3 === void 0 ? void 0 : _item$user_answer3.length) > 0) {
|
|
|
|
|
paramsData === null || paramsData === void 0 || paramsData.item_banks.push({
|
|
|
|
|
item_bank_id: item === null || item === void 0 ? void 0 : item.question_id,
|
|
|
|
|
choice_id: ['SINGLE', 'MULTIPLE', 'JUDGMENT'].includes(item === null || item === void 0 ? void 0 : item.question_type) ? item === null || item === void 0 ? void 0 : item.user_answer : null
|
|
|
|
|
choice_id: ['SINGLE', 'MULTIPLE', 'JUDGMENT'].includes(item === null || item === void 0 ? void 0 : item.question_type) ? item === null || item === void 0 ? void 0 : item.user_answer : null,
|
|
|
|
|
answers: ['COMPLETION'].includes(item === null || item === void 0 ? void 0 : item.question_type) ? item === null || item === void 0 ? void 0 : item.user_answer : null
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -4682,9 +4750,8 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: 'auto'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(AsyncButton/* AsyncButton */.Z, {
|
|
|
|
|
className: "".concat(Answermodules.submitButton, " ml10"),
|
|
|
|
|
type: "primary",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (sign.current) {
|
|
|
|
|
sign.current = 'quit';
|
|
|
|
|
@ -4692,7 +4759,7 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
}
|
|
|
|
|
quitExercise();
|
|
|
|
|
},
|
|
|
|
|
children: "\u9000\u51FA"
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(icons_LogoutOutlined, {}), "\u9000\u51FA"]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
@ -4843,15 +4910,6 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "".concat(Answermodules.answerNo, " ml10")
|
|
|
|
|
}), "\u672A\u7B54"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
className: Answermodules.tooltipWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-biaoji1",
|
|
|
|
|
style: {
|
|
|
|
|
marginRight: 4,
|
|
|
|
|
color: '#FFB538'
|
|
|
|
|
}
|
|
|
|
|
}), "\u6807\u8BB0"]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
@ -4881,44 +4939,11 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
className: "".concat(Answermodules.questionPart, " pl30 pr30"),
|
|
|
|
|
ref: questionPartRef,
|
|
|
|
|
children: renderClassifyQuestion()
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
|
|
|
className: Answermodules.bottom,
|
|
|
|
|
align: "middle",
|
|
|
|
|
justify: "space-between",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
|
|
|
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont ".concat((_answerData$exercise_25 = answerData.exercise_question_types) !== null && _answerData$exercise_25 !== void 0 && (_answerData$exercise_25 = _answerData$exercise_25[oneindex].items[twoindex]) !== null && _answerData$exercise_25 !== void 0 && _answerData$exercise_25.is_marked ? 'icon-biaoji1' : 'icon-biaojigaiti'),
|
|
|
|
|
style: {
|
|
|
|
|
color: '#FFB538',
|
|
|
|
|
marginRight: 6
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
className: Answermodules.markBtn,
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
|
|
|
|
|
var _answerData$exercise_26;
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
|
|
|
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context16.next = 2;
|
|
|
|
|
return (0,service_exercise/* markQuestion */.sS)(params.categoryId, {
|
|
|
|
|
exercise_question_id: (_answerData$exercise_26 = answerData.exercise_question_types[oneindex].items[twoindex]) === null || _answerData$exercise_26 === void 0 ? void 0 : _answerData$exercise_26.question_id
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context16.sent;
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
initData();
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context16.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee16);
|
|
|
|
|
})),
|
|
|
|
|
children: (_answerData$exercise_27 = answerData.exercise_question_types) !== null && _answerData$exercise_27 !== void 0 && (_answerData$exercise_27 = _answerData$exercise_27[oneindex].items[twoindex]) !== null && _answerData$exercise_27 !== void 0 && _answerData$exercise_27.is_marked ? '取消标记' : '标记该题'
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
justify: "end",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
children: [(oneindex != 0 || twoindex != 0) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
className: "".concat(Answermodules.changeButton, " ").concat(Answermodules.prevBtn, " mr20"),
|
|
|
|
|
type: "default",
|
|
|
|
|
@ -4930,7 +4955,7 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
skipPrevQuestion();
|
|
|
|
|
},
|
|
|
|
|
children: "\u4E0A\u4E00\u9898"
|
|
|
|
|
}), !showConfirm && !(oneindex === (answerData === null || answerData === void 0 || (_answerData$exercise_28 = answerData.exercise_question_types) === null || _answerData$exercise_28 === void 0 ? void 0 : _answerData$exercise_28.length) - 1 && twoindex === (answerData === null || answerData === void 0 || (_answerData$exercise_29 = answerData.exercise_question_types) === null || _answerData$exercise_29 === void 0 || (_answerData$exercise_29 = _answerData$exercise_29[oneindex]) === null || _answerData$exercise_29 === void 0 || (_answerData$exercise_29 = _answerData$exercise_29.items) === null || _answerData$exercise_29 === void 0 ? void 0 : _answerData$exercise_29.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
}), !showConfirm && !(oneindex === (answerData === null || answerData === void 0 || (_answerData$exercise_25 = answerData.exercise_question_types) === null || _answerData$exercise_25 === void 0 ? void 0 : _answerData$exercise_25.length) - 1 && twoindex === (answerData === null || answerData === void 0 || (_answerData$exercise_26 = answerData.exercise_question_types) === null || _answerData$exercise_26 === void 0 || (_answerData$exercise_26 = _answerData$exercise_26[oneindex]) === null || _answerData$exercise_26 === void 0 || (_answerData$exercise_26 = _answerData$exercise_26.items) === null || _answerData$exercise_26 === void 0 ? void 0 : _answerData$exercise_26.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
className: Answermodules.changeButton,
|
|
|
|
|
type: "primary",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
@ -4944,20 +4969,20 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
}), showConfirm && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
className: "".concat(Answermodules.changeButton, " ml20"),
|
|
|
|
|
type: "primary",
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
|
|
|
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
|
|
|
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
submitAnswer();
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context17.stop();
|
|
|
|
|
return _context16.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee17);
|
|
|
|
|
}, _callee16);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u786E\u5B9A"
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
@ -4995,19 +5020,19 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
|
|
|
|
|
type: "primary",
|
|
|
|
|
className: Answermodules.toIframeBtn,
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee18() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee18$(_context18) {
|
|
|
|
|
while (1) switch (_context18.prev = _context18.next) {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
|
|
|
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context18.next = 2;
|
|
|
|
|
_context17.next = 2;
|
|
|
|
|
return submitAnswer2();
|
|
|
|
|
case 2:
|
|
|
|
|
return _context18.abrupt("return", _context18.sent);
|
|
|
|
|
return _context17.abrupt("return", _context17.sent);
|
|
|
|
|
case 3:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context18.stop();
|
|
|
|
|
return _context17.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee18);
|
|
|
|
|
}, _callee17);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u786E\u5B9A"
|
|
|
|
|
})
|
|
|
|
|
@ -5019,11 +5044,11 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Detail_Answer = ((0,_umi_production_exports.connect)(function (_ref18) {
|
|
|
|
|
var loading = _ref18.loading,
|
|
|
|
|
user = _ref18.user,
|
|
|
|
|
exercise = _ref18.exercise,
|
|
|
|
|
globalSetting = _ref18.globalSetting;
|
|
|
|
|
/* harmony default export */ var Detail_Answer = ((0,_umi_production_exports.connect)(function (_ref17) {
|
|
|
|
|
var loading = _ref17.loading,
|
|
|
|
|
user = _ref17.user,
|
|
|
|
|
exercise = _ref17.exercise,
|
|
|
|
|
globalSetting = _ref17.globalSetting;
|
|
|
|
|
return {
|
|
|
|
|
globalSetting: globalSetting,
|
|
|
|
|
user: user,
|