Auto Submit

dev_local_v9_haijunshiguan_net
autosubmit 2 years ago
parent a556193661
commit 014ba8ef1f

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.58c5b861.js"></script>
<script src="/react/build/umi.c75f091e.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -3256,12 +3256,13 @@ var Answer = function Answer(_ref) {
item.question_score = 1;
item.standard_answer = item === null || item === void 0 ? void 0 : item.answer_content;
item.user_answer_right = item === null || item === void 0 ? void 0 : item.is_right;
console.log("item?.answer_content", item === null || item === void 0 ? void 0 : item.answer_content);
// 单选 多选 判断
if (['SINGLE', 'MULTIPLE', 'JUDGMENT'].includes(item === null || item === void 0 ? void 0 : item.question_type)) {
item === null || item === void 0 || item.question_choices.forEach(function (val1) {
item === null || item === void 0 || item.answer_content.forEach(function (val2) {
val1.user_answer_boolean = val1.choice_id === val2 ? true : false;
});
item === null || item === void 0 || item.question_choices.forEach(function (choice) {
var exists = item === null || item === void 0 ? void 0 : item.answer_content.includes(choice.choice_id);
choice.user_answer_boolean = exists;
});
}
// 填空
@ -3269,6 +3270,7 @@ var Answer = function Answer(_ref) {
item.user_answer = item === null || item === void 0 ? void 0 : item.answer_content;
}
});
console.log(banks);
setItemBankData(banks);
} else {
banks.forEach(function (item) {

@ -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,

@ -1484,7 +1484,7 @@ var Statistics = function Statistics(_ref8) {
end_time: "",
limit: 20,
page: 1,
sort: "asc",
sort: "desc",
order: null,
order_by: undefined,
question_type: [],

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save