Auto Submit

dev_local_v9_xiangongyedaxue
autosubmit 2 years ago
parent 7622ec6d22
commit 6b97bf27df

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

@ -8146,7 +8146,8 @@ var QuestionInfo = function QuestionInfo(_ref) {
message/* default */.ZP.success('保存成功');
if (!notRedirect) _umi_production_exports.history.push("/paperlibrary");
}
case 16:
return _context.abrupt("return", res);
case 17:
case "end":
return _context.stop();
}
@ -8157,7 +8158,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
};
}();
var handleExerciseSave = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(notRedirect, type) {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(notRedirect, type, itemType) {
var body, res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
@ -8171,6 +8172,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
exercise_name: data.examination_bank.name,
time: data.examination_bank.time,
item_types: data.item_types,
changed_item_type: currentItemType,
// is_reset: 1,
sub_discipline_id: data.examination_bank.sub_discipline_id
});
@ -8185,13 +8187,14 @@ var QuestionInfo = function QuestionInfo(_ref) {
_umi_production_exports.history.push("/classrooms/".concat(urlParams.coursesId, "/exercise/").concat(urlParams.categoryId, "/detail?random=true"));
}
}
case 7:
return _context2.abrupt("return", res);
case 8:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function handleExerciseSave(_x2, _x3) {
return function handleExerciseSave(_x2, _x3, _x4) {
return _ref4.apply(this, arguments);
};
}();
@ -8277,18 +8280,21 @@ var QuestionInfo = function QuestionInfo(_ref) {
}, [data === null || data === void 0 || (_data$examination_ban2 = data.examination_bank) === null || _data$examination_ban2 === void 0 ? void 0 : _data$examination_ban2.name]);
var handlePracticeTest = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _userInfo;
var res, _userInfo;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return handleExerciseSave(true, 1);
case 2:
res = _context4.sent;
// const res = await startSimulateAnswer({ ...urlParams, is_reset: 1 })
// if (res?.exercise?.id) {
_umi_production_exports.history.push("/classrooms/".concat(urlParams.coursesId, "/exercise/").concat(urlParams.categoryId, "/").concat((_userInfo = (0,authority/* userInfo */.eY)()) === null || _userInfo === void 0 ? void 0 : _userInfo.login, "/initate_answer"));
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
_umi_production_exports.history.push("/classrooms/".concat(urlParams.coursesId, "/exercise/").concat(urlParams.categoryId, "/").concat((_userInfo = (0,authority/* userInfo */.eY)()) === null || _userInfo === void 0 ? void 0 : _userInfo.login, "/initate_answer"));
}
// }
case 3:
case 4:
case "end":
return _context4.stop();
}
@ -8322,7 +8328,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
}
}, _callee5);
}));
return function (_x4) {
return function (_x5) {
return _ref6.apply(this, arguments);
};
}())
@ -8394,7 +8400,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
list: data.item_types,
onSelect: ( /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(itemType) {
var currentItem, dataCopy, _ref8, item_types;
var currentItem, dataCopy, _ref8, item_types, res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
@ -8409,7 +8415,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
return item.item_type === currentItemType;
});
if (!(currentItemType !== 'PRACTICAL' && currentItem.contents.length > 0 && urlParams !== null && urlParams !== void 0 && urlParams.id)) {
_context6.next = 17;
_context6.next = 19;
break;
}
dataCopy = (0,lodash.cloneDeep)(data);
@ -8421,30 +8427,35 @@ var QuestionInfo = function QuestionInfo(_ref) {
_context6.next = 11;
return updateRandomExam(urlParams.id || urlParams.categoryId, dataCopy);
case 11:
_context6.next = 15;
res = _context6.sent;
if (res.status === 0) {
setCurrentItemType(itemType);
}
_context6.next = 17;
break;
case 13:
_context6.prev = 13;
_context6.t0 = _context6["catch"](8);
case 15:
_context6.next = 18;
break;
_context6.prev = 15;
_context6.t0 = _context6["catch"](8);
case 17:
_context6.next = 20;
break;
case 19:
if (urlParams.categoryId) {
handleExerciseSave(true);
handleExerciseSave(true, 2, itemType);
// handleExerciseSave(true);
} else {
handleSave(true);
}
case 18:
setLoading(false);
setCurrentItemType(itemType);
case 20:
setLoading(false);
// setCurrentItemType(itemType)
case 21:
case "end":
return _context6.stop();
}
}, _callee6, null, [[8, 13]]);
}, _callee6, null, [[8, 15]]);
}));
return function (_x5) {
return function (_x6) {
return _ref7.apply(this, arguments);
};
}()),
@ -8487,7 +8498,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
className: "".concat(QuestionInfomodules.previewBtn, " mr20"),
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _data$item_types8, _data$item_types9;
var items;
var items, res;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
@ -8509,10 +8520,17 @@ var QuestionInfo = function QuestionInfo(_ref) {
message/* default */.ZP.warning('试题总数=0请先设置抽题规则');
return _context7.abrupt("return");
case 7:
handleSave(true);
_context7.next = 10;
_context7.next = 9;
return handleSave(true);
case 9:
res = _context7.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
_context7.next = 13;
break;
}
_context7.next = 13;
return handlePreview();
case 10:
case 13:
case "end":
return _context7.stop();
}
@ -8621,7 +8639,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
}
}, _callee9);
}));
return function (_x6) {
return function (_x7) {
return _ref11.apply(this, arguments);
};
}())
@ -8683,7 +8701,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
}
}, _callee10);
}));
return function (_x7) {
return function (_x8) {
return _ref12.apply(this, arguments);
};
}())

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