Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent bc4fd67646
commit b6af150e64

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

@ -1959,7 +1959,7 @@ var List = function List(_ref) {
backgroundColor: '#FC2D6B'
},
className: "tag-style mr10",
children: "\u5DF2\u7ED3\u675F"
children: "\u5DF2\u622A\u6B62"
});
}
if (v !== null && v !== void 0 && v.includes('未开始')) {
@ -1980,13 +1980,19 @@ var List = function List(_ref) {
children: "\u8003\u8BD5\u4E2D"
});
}
if (v !== null && v !== void 0 && v.includes('已结束')) {
if (v !== null && v !== void 0 && v.includes('已截止')) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
backgroundColor: '#FC2D6B'
},
className: "tag-style mr10",
children: "\u5DF2\u7ED3\u675F"
children: "\u5DF2\u622A\u6B62"
});
}
if (v !== null && v !== void 0 && v.includes('导入')) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "export mr10",
children: "\u5BFC\u5165"
});
}
};

@ -4904,7 +4904,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
case 14:
res = _context.sent;
if (res.status === 0) {
message/* default */.ZP.success('保存成功');
// message.success('保存成功')
if (!notRedirect) _umi_production_exports.history.push("/paperlibrary");
}
return _context.abrupt("return", res);
@ -5209,8 +5209,8 @@ var QuestionInfo = function QuestionInfo(_ref) {
}
case 20:
setLoading(false);
// setCurrentItemType(itemType)
case 21:
setCurrentItemType(itemType);
case 22:
case "end":
return _context6.stop();
}

@ -1831,7 +1831,7 @@ var RenderEditor = function RenderEditor(_ref) {
return editorMapping[currentItemType] || null;
};
var NewItem = function NewItem(_ref2) {
var _form$getFieldsValue$, _form$getFieldsValue;
var _Form$useWatch, _form$getFieldsValue$, _form$getFieldsValue;
var problemset = _ref2.problemset,
loading = _ref2.loading,
dispatch = _ref2.dispatch;
@ -1879,7 +1879,7 @@ var NewItem = function NewItem(_ref2) {
_useState18 = slicedToArray_default()(_useState17, 2),
currentItemType = _useState18[0],
setCurrentItemType = _useState18[1];
var formKnowLedgeValue = currentItemType === es_form/* default */.Z.useWatch('knowledge', form);
var formKnowLedgeValue = currentItemType === "BPROGRAM" ? (_Form$useWatch = es_form/* default */.Z.useWatch('hack', form)) === null || _Form$useWatch === void 0 ? void 0 : _Form$useWatch.tag_discipline_ids : es_form/* default */.Z.useWatch('knowledge', form);
// console.log('---tag_disc', Form.useWatch('hack', form)?.tag_discipline_ids, Form.useWatch('knowledge', form));
@ -1965,7 +1965,7 @@ var NewItem = function NewItem(_ref2) {
sub_item_banks = _ref3$sub_item_banks === void 0 ? [] : _ref3$sub_item_banks;
if (searchParams.get('type') === '1') {
var _problemset$disciplin;
setCurrentItemType('PROGRAM_COMPLETION');
setCurrentItemType('BPROGRAM');
if (problemset !== null && problemset !== void 0 && (_problemset$disciplin = problemset.disciplinesData) !== null && _problemset$disciplin !== void 0 && _problemset$disciplin.disciplines) {
var _problemset$disciplin2, _problemset$editData, _problemset$editData2, _problemset$editData3;
var _getDisciplineIds = (0,OjForm_util/* getDisciplineIds */.y3)(problemset === null || problemset === void 0 || (_problemset$disciplin2 = problemset.disciplinesData) === null || _problemset$disciplin2 === void 0 ? void 0 : _problemset$disciplin2.disciplines, sub_discipline_id),
@ -1973,7 +1973,7 @@ var NewItem = function NewItem(_ref2) {
ids = _getDisciplineIds2[0],
dictData = _getDisciplineIds2[1];
var initData = {
item_type: 'PROGRAM_COMPLETION',
item_type: 'BPROGRAM',
standard_answers: problemset.editData.standard_answer,
difficulty: problemset.editData.difficult,
item_banks_group_id: problemset.editData.item_banks_group_id,
@ -2081,7 +2081,7 @@ var NewItem = function NewItem(_ref2) {
break;
case 'PROGRAM_COMPLETION':
break;
// case 'PROGRAM_COMPLETION':
// case 'BPROGRAM':
// form.setFieldsValue({
// hack: {
// time_limit: 3,

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