|
|
|
|
@ -5063,24 +5063,23 @@ var Answer = function Answer(_ref) {
|
|
|
|
|
if (item.question_type === key) {
|
|
|
|
|
var _answerData$exercise21, _answerData$question_7;
|
|
|
|
|
if (answerData !== null && answerData !== void 0 && (_answerData$exercise21 = answerData.exercise) !== null && _answerData$exercise21 !== void 0 && _answerData$exercise21.open_score) {
|
|
|
|
|
var _item$answer_comments2;
|
|
|
|
|
if (item.question_type === 4) {
|
|
|
|
|
var _item$answer_comments;
|
|
|
|
|
if ((item === null || item === void 0 || (_item$answer_comments = item.answer_comments) === null || _item$answer_comments === void 0 ? void 0 : _item$answer_comments.length) > 0) {
|
|
|
|
|
classNames = Answermodules.green;
|
|
|
|
|
} else {
|
|
|
|
|
classNames = Answermodules.grey;
|
|
|
|
|
}
|
|
|
|
|
} else if (Number(item.question_score) === Number(item.user_score)) {
|
|
|
|
|
// if (item.question_type === 4) {
|
|
|
|
|
// if (item?.answer_comments?.length > 0) {
|
|
|
|
|
// classNames = styles.green
|
|
|
|
|
// } else {
|
|
|
|
|
// classNames = styles.grey
|
|
|
|
|
// }
|
|
|
|
|
// } else
|
|
|
|
|
if (Number(item.question_score) === Number(item.user_score)) {
|
|
|
|
|
classNames = Answermodules.green;
|
|
|
|
|
} else if (item.user_score > 0) {
|
|
|
|
|
classNames = Answermodules.orange;
|
|
|
|
|
} else {
|
|
|
|
|
classNames = Answermodules.red;
|
|
|
|
|
}
|
|
|
|
|
if ((item === null || item === void 0 || (_item$answer_comments2 = item.answer_comments) === null || _item$answer_comments2 === void 0 ? void 0 : _item$answer_comments2.length) > 0) {
|
|
|
|
|
classNames = Answermodules.green;
|
|
|
|
|
}
|
|
|
|
|
// if (item?.answer_comments?.length > 0) {
|
|
|
|
|
// classNames = styles.green
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
// 为交卷逻辑
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|