|
|
|
|
@ -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);
|