|
|
|
|
@ -611,24 +611,13 @@ var Statistics = function Statistics(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
|
|
children: item.name
|
|
|
|
|
}), item.items.map(function (er, i) {
|
|
|
|
|
var _er$answer_comments2;
|
|
|
|
|
var className = '';
|
|
|
|
|
if (er.question_type === 4) {
|
|
|
|
|
var _er$answer_comments;
|
|
|
|
|
if ((er === null || er === void 0 || (_er$answer_comments = er.answer_comments) === null || _er$answer_comments === void 0 ? void 0 : _er$answer_comments.length) > 0) {
|
|
|
|
|
className = PracticeDetailmodules.green;
|
|
|
|
|
} else {
|
|
|
|
|
className = PracticeDetailmodules.grey;
|
|
|
|
|
}
|
|
|
|
|
} else if (Number(er.question_score) === Number(er.user_score)) {
|
|
|
|
|
if (er.user_answer_right === true) {
|
|
|
|
|
className = PracticeDetailmodules.blue;
|
|
|
|
|
} else if (er.user_score > 0) {
|
|
|
|
|
className = PracticeDetailmodules.orange;
|
|
|
|
|
} else {
|
|
|
|
|
} else if (er.user_answer_right === false) {
|
|
|
|
|
className = PracticeDetailmodules.red;
|
|
|
|
|
}
|
|
|
|
|
if ((er === null || er === void 0 || (_er$answer_comments2 = er.answer_comments) === null || _er$answer_comments2 === void 0 ? void 0 : _er$answer_comments2.length) > 0) {
|
|
|
|
|
className = PracticeDetailmodules.green;
|
|
|
|
|
} else {
|
|
|
|
|
className = PracticeDetailmodules.grey;
|
|
|
|
|
}
|
|
|
|
|
if (urlData.showIncorrect && er.user_score === er.question_score) {
|
|
|
|
|
return null;
|
|
|
|
|
@ -681,7 +670,7 @@ var Statistics = function Statistics(_ref) {
|
|
|
|
|
flex: "284px",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "font20 c-grey-333 multi_ellipsis1",
|
|
|
|
|
children: ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis3 = ExerciseData.exercise) === null || _ExerciseData$exercis3 === void 0 ? void 0 : _ExerciseData$exercis3.exercise_name
|
|
|
|
|
children: ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis3 = ExerciseData.exercise) === null || _ExerciseData$exercis3 === void 0 ? void 0 : _ExerciseData$exercis3.subject_exercise_name
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
flex: 1,
|