Auto Submit

dev_local_v9_gfkjdx
autosubmit 1 year ago
parent 0bc62dfd30
commit 53056026cf

File diff suppressed because one or more lines are too long

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

@ -625,12 +625,13 @@ var EditAttendance = function EditAttendance(_ref) {
case 4:
_context.t2 = _context.sent;
formValue = (0, _context.t0)(_context.t1, _context.t2);
_context.next = 8;
console.log(123);
_context.next = 9;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params.id, "/course_groups.json"), {
method: 'post',
body: objectSpread2_default()({}, formValue)
});
case 8:
case 9:
res = _context.sent;
if (res.status === 0) {
message/* default */.ZP.success('添加成功');
@ -655,7 +656,7 @@ var EditAttendance = function EditAttendance(_ref) {
}
});
}
case 10:
case 11:
case "end":
return _context.stop();
}

@ -712,14 +712,14 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
return _getdatas.apply(this, arguments);
}
function _getdatas() {
_getdatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
_getdatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _res$data;
var res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
setisloading(true);
_context6.next = 3;
_context7.next = 3;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params.coursesId, "/homework_commons/edit_hack_homework.json"), {
method: 'get',
params: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
@ -727,7 +727,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
})
});
case 3:
res = _context6.sent;
res = _context7.sent;
setShowReply(res);
setisloading(false);
params.defaultExpandedRowKeys = ["".concat(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data[0]) === null || _res$data === void 0 ? void 0 : _res$data.identifier)];
@ -741,9 +741,9 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
setParams(objectSpread2_default()({}, params));
case 9:
case "end":
return _context6.stop();
return _context7.stop();
}
}, _callee6);
}, _callee7);
}));
return _getdatas.apply(this, arguments);
}
@ -1098,6 +1098,20 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
margin: '0px 20px'
},
children: (0,authority/* isAdmin */.GJ)() ? '体验' : '进入答题'
}), (record === null || record === void 0 ? void 0 : record.hack_manager) && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
window.open("/problems/newedit/".concat(record === null || record === void 0 ? void 0 : record.identifier, "?type=1"));
localStorage.setItem('program_homework', [params.coursesId, params.categoryId]);
case 2:
case "end":
return _context6.stop();
}
}, _callee6);
})),
children: "\u7F16\u8F91"
})]
});
}
@ -1130,12 +1144,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DelComponents, {})]
});
};
/* harmony default export */ var WorkDescription = ((0,_umi_production_exports.connect)(function (_ref5) {
var shixunHomeworks = _ref5.shixunHomeworks,
classroomList = _ref5.classroomList,
loading = _ref5.loading,
user = _ref5.user,
globalSetting = _ref5.globalSetting;
/* harmony default export */ var WorkDescription = ((0,_umi_production_exports.connect)(function (_ref6) {
var shixunHomeworks = _ref6.shixunHomeworks,
classroomList = _ref6.classroomList,
loading = _ref6.loading,
user = _ref6.user,
globalSetting = _ref6.globalSetting;
return {
shixunHomeworks: shixunHomeworks,
globalSetting: globalSetting,

@ -565,19 +565,24 @@ function BaseInfo(_ref) {
children: "\u79D2"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u6D4B\u5F97\u5206\u89C4\u8303",
name: ['hack', 'test_set_score'],
label: "\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",
name: ['hack', 'submit_rule']
// labelCol={{ span: 24 }}
,
rules: [{
required: true
required: true,
message: '请选择评测时空格处理'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
onChange: onChangeScore,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: true,
children: "\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6\u624D\u80FD\u83B7\u5F97\u5956\u52B1"
value: 0,
children: "\u4E0D\u5FFD\u7565\u7A7A\u683C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: false,
children: "\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5956\u52B1"
value: 1,
children: "\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 2,
children: "\u5FFD\u7565\u6240\u6709\u7A7A\u683C"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
@ -585,18 +590,63 @@ function BaseInfo(_ref) {
className: "mb30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
marginLeft: 200
marginLeft: 143,
color: '#666'
},
children: "\u53EF\u89C1\u6027"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
marginLeft: 16,
marginRight: 30
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: ['hack', "hide_actual_output"],
valuePropName: "checked",
noStyle: true,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
children: ["\u9690\u85CF\u5B66\u5458\u8BC4\u6D4B\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#999'
},
children: "\uFF08\u6559\u5E08\u8EAB\u4EFD\u4E0D\u53D7\u5F71\u54CD\uFF0C\u4E00\u76F4\u53EF\u89C1\uFF09"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "ml10",
children: "\u9690\u85CF\u5B66\u5458\u8BC4\u6D4B\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7"
style: {
marginLeft: 201,
marginTop: 10
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: ['hack', "show_case"],
valuePropName: "checked",
noStyle: true,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
children: ["\u8BC4\u6D4B\u672A\u901A\u8FC7\u65F6\uFF0C\u663E\u793A\u5BF9\u5E94\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u548C\u8F93\u51FA", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#999'
},
children: "\uFF08\u6559\u5E08\u8EAB\u4EFD\u4E0D\u53D7\u5F71\u54CD\uFF0C\u4E00\u76F4\u53EF\u89C1\uFF09"
})]
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u6D4B\u5F97\u5206\u89C4\u8303",
name: ['hack', 'test_set_score'],
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
onChange: onChangeScore,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: true,
children: "\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6\u624D\u80FD\u83B7\u5F97\u5956\u52B1"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: false,
children: "\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5956\u52B1"
})]
})
}), !hack.test_set_score && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: ['hack', 'test_set_average'],
label: "\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4",
@ -1078,6 +1128,8 @@ function reducer(state, action) {
is_my,
codes,
answer_text,
submit_rule,
show_case,
_getDisciplineIds,
_getDisciplineIds2,
ids,
@ -1135,7 +1187,7 @@ function reducer(state, action) {
}
} else {
// console.log(res.hack_sets, 'response1')
category = res.category, _user = res.user, code = res.code, language = res.language, _hack_sets = res.hack_sets, description = res.description, difficult = res.difficult, name = res.name, open_or_not = res.open_or_not, sub_discipline_id = res.sub_discipline_id, tag_discipline_id = res.tag_discipline_id, analysis = res.analysis, time_limit = res.time_limit, _test_set_average = res.test_set_average, test_set_score = res.test_set_score, _status = res.status, tag_discipline_ids = res.tag_discipline_ids, item_banks_group_id = res.item_banks_group_id, _res$is_file = res.is_file, is_file = _res$is_file === void 0 ? false : _res$is_file, hide_actual_output = res.hide_actual_output, code_compile_score = res.code_compile_score, languages = res.languages, is_my = res.is_my, codes = res.codes, answer_text = res.answer_text; //
category = res.category, _user = res.user, code = res.code, language = res.language, _hack_sets = res.hack_sets, description = res.description, difficult = res.difficult, name = res.name, open_or_not = res.open_or_not, sub_discipline_id = res.sub_discipline_id, tag_discipline_id = res.tag_discipline_id, analysis = res.analysis, time_limit = res.time_limit, _test_set_average = res.test_set_average, test_set_score = res.test_set_score, _status = res.status, tag_discipline_ids = res.tag_discipline_ids, item_banks_group_id = res.item_banks_group_id, _res$is_file = res.is_file, is_file = _res$is_file === void 0 ? false : _res$is_file, hide_actual_output = res.hide_actual_output, code_compile_score = res.code_compile_score, languages = res.languages, is_my = res.is_my, codes = res.codes, answer_text = res.answer_text, submit_rule = res.submit_rule, show_case = res.show_case; //
_getDisciplineIds = (0,util/* getDisciplineIds */.y3)(discips, sub_discipline_id), _getDisciplineIds2 = slicedToArray_default()(_getDisciplineIds, 2), ids = _getDisciplineIds2[0], dictData = _getDisciplineIds2[1]; // console.log('----',hack_sets);
new_hack_sets = is_file ? [{
input: '',
@ -1187,7 +1239,9 @@ function reducer(state, action) {
code_compile_score: code_compile_score,
hide_actual_output: hide_actual_output,
analysis: analysis,
answer_text: answer_text
answer_text: answer_text,
submit_rule: submit_rule,
show_case: show_case
},
hack_sets: new_hack_sets,
tags: tag_discipline_ids,
@ -1263,7 +1317,8 @@ function reducer(state, action) {
name: '',
item_banks_group_ids: bankstime,
is_file: false,
answer_text: ''
answer_text: '',
submit_rule: 1
},
tags: _tag_discipline_id ? _tag_discipline_id === null || _tag_discipline_id === void 0 ? void 0 : _tag_discipline_id.split(',').map(function (t) {
return parseInt(t, 10);

File diff suppressed because one or more lines are too long

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