|
|
|
|
@ -4406,15 +4406,19 @@ var scoresetting_WorkList = function WorkList(_ref) {
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
isshow = _useState6[0],
|
|
|
|
|
setIsshow = _useState6[1];
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
groupSettings = _useState8[0],
|
|
|
|
|
setGroupSetting = _useState8[1];
|
|
|
|
|
showtip = _useState8[0],
|
|
|
|
|
setShowTip = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
repairSettings = _useState10[0],
|
|
|
|
|
setRepairSetting = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
groupSettings = _useState10[0],
|
|
|
|
|
setGroupSetting = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
repairSettings = _useState12[0],
|
|
|
|
|
setRepairSetting = _useState12[1];
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
unified_setting: false,
|
|
|
|
|
//是否统一设置
|
|
|
|
|
publish_time: '',
|
|
|
|
|
@ -4434,8 +4438,8 @@ var scoresetting_WorkList = function WorkList(_ref) {
|
|
|
|
|
//是否勾选效率分
|
|
|
|
|
shixun_evaluation: '',
|
|
|
|
|
//评分比例设置:0:均分, 1:经验值,2:自定义
|
|
|
|
|
answer_open_evaluation: false,
|
|
|
|
|
//查看答案 扣分false满分true
|
|
|
|
|
answer_open_evaluation: true,
|
|
|
|
|
//查看答案 按级别false自定义true
|
|
|
|
|
answer_public: false,
|
|
|
|
|
//公开答案
|
|
|
|
|
score_open: false,
|
|
|
|
|
@ -4448,51 +4452,52 @@ var scoresetting_WorkList = function WorkList(_ref) {
|
|
|
|
|
//效率分
|
|
|
|
|
is_onpage_time: true,
|
|
|
|
|
training_time_rules: 1,
|
|
|
|
|
difficulty_level_sort: 'asc'
|
|
|
|
|
difficulty_level_sort: 'asc',
|
|
|
|
|
game_deduct_score_percentage: 100
|
|
|
|
|
}),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
data = _useState12[0],
|
|
|
|
|
setData = _useState12[1];
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
data = _useState14[0],
|
|
|
|
|
setData = _useState14[1];
|
|
|
|
|
console.log("数据:-----------------------------------", params);
|
|
|
|
|
// 是否开启查重扣分----字段
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
is_repeat_minus = _useState14[0],
|
|
|
|
|
setis_repeat_minus = _useState14[1];
|
|
|
|
|
// 设置的查重扣分-----字段
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
|
|
repeat_setting_score = _useState16[0],
|
|
|
|
|
setrepeat_setting_score = _useState16[1];
|
|
|
|
|
// 设置扣分阈值-----字段
|
|
|
|
|
is_repeat_minus = _useState16[0],
|
|
|
|
|
setis_repeat_minus = _useState16[1];
|
|
|
|
|
// 设置的查重扣分-----字段
|
|
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
|
|
repeat_limit = _useState18[0],
|
|
|
|
|
setrepeat_limit = _useState18[1];
|
|
|
|
|
// 点击编辑设置之后可以勾选代码查重复选框:
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(true),
|
|
|
|
|
repeat_setting_score = _useState18[0],
|
|
|
|
|
setrepeat_setting_score = _useState18[1];
|
|
|
|
|
// 设置扣分阈值-----字段
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
|
|
isDisabled = _useState20[0],
|
|
|
|
|
setisDisabled = _useState20[1];
|
|
|
|
|
// 勾选代码查重复选框:
|
|
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
repeat_limit = _useState20[0],
|
|
|
|
|
setrepeat_limit = _useState20[1];
|
|
|
|
|
// 点击编辑设置之后可以勾选代码查重复选框:
|
|
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)(true),
|
|
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
|
|
isChecked = _useState22[0],
|
|
|
|
|
setisChecked = _useState22[1];
|
|
|
|
|
// 不点编辑设置时,输入框禁用:
|
|
|
|
|
isDisabled = _useState22[0],
|
|
|
|
|
setisDisabled = _useState22[1];
|
|
|
|
|
// 勾选代码查重复选框:
|
|
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
|
|
isReadOnly = _useState24[0],
|
|
|
|
|
setisReadOnly = _useState24[1];
|
|
|
|
|
// 修改输入框之后,新增弹出框:
|
|
|
|
|
isChecked = _useState24[0],
|
|
|
|
|
setisChecked = _useState24[1];
|
|
|
|
|
// 不点编辑设置时,输入框禁用:
|
|
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
|
|
RedoMadol = _useState26[0],
|
|
|
|
|
setRedoMadol = _useState26[1];
|
|
|
|
|
isReadOnly = _useState26[0],
|
|
|
|
|
setisReadOnly = _useState26[1];
|
|
|
|
|
// 修改输入框之后,新增弹出框:
|
|
|
|
|
var _useState27 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
|
|
showInput = _useState28[0],
|
|
|
|
|
setshowInput = _useState28[1];
|
|
|
|
|
RedoMadol = _useState28[0],
|
|
|
|
|
setRedoMadol = _useState28[1];
|
|
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState30 = slicedToArray_default()(_useState29, 2),
|
|
|
|
|
showInput = _useState30[0],
|
|
|
|
|
setshowInput = _useState30[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData();
|
|
|
|
|
return function () {
|
|
|
|
|
@ -4559,6 +4564,11 @@ var scoresetting_WorkList = function WorkList(_ref) {
|
|
|
|
|
return !v.hide;
|
|
|
|
|
});
|
|
|
|
|
bodyData.categoryId = params.categoryId;
|
|
|
|
|
if (bodyData.game_deduct_score_percentage === '') {
|
|
|
|
|
// setShowTip(true)
|
|
|
|
|
message/* default */.ZP.warning('请填写查看答案扣分比例');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if ((_bodyData$challenge_s = bodyData.challenge_settings) !== null && _bodyData$challenge_s !== void 0 && _bodyData$challenge_s.every(function (r) {
|
|
|
|
|
return !r.checked;
|
|
|
|
|
})) {
|
|
|
|
|
@ -5219,25 +5229,58 @@ var scoresetting_WorkList = function WorkList(_ref) {
|
|
|
|
|
setData(objectSpread2_default()({}, data));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
|
|
|
|
|
value: false,
|
|
|
|
|
value: true,
|
|
|
|
|
style: {
|
|
|
|
|
marginTop: 15
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
|
|
|
children: "\u6309\u67E5\u770B\u7B54\u6848\u7EA7\u522B\u6263\u5206"
|
|
|
|
|
children: "\u81EA\u5B9A\u4E49\u6263\u5206\u89C4\u5219"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-grey-c",
|
|
|
|
|
children: "(\u6839\u636E\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7684\u5B9E\u8BAD\u7B54\u6848\u7EA7\u522B(\u89E3\u9898\u601D\u8DEF\u3001\u5B8C\u6574\u7B54\u6848)\uFF0C\u6263\u51CF\u76F8\u5E94\u7684\u5206\u503C)"
|
|
|
|
|
children: "(\u5B66\u5458\u67E5\u770B\u5173\u5361\u7684\u53C2\u8003\u7B54\u6848\uFF0C\u5219\u5BF9\u5E94\u7684\u5173\u5361\u9700\u8981\u6263\u51CF\u4E00\u5B9A\u6BD4\u4F8B\u7684\u5206\u503C)"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
|
|
|
value: true,
|
|
|
|
|
}), data.answer_open_evaluation && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
span: 24,
|
|
|
|
|
className: "pl30 mt10",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
|
|
|
className: "mr15",
|
|
|
|
|
children: "\u67E5\u770B\u7B54\u6848\u6263\u5206"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
|
|
min: 0,
|
|
|
|
|
max: 100,
|
|
|
|
|
value: data.game_deduct_score_percentage,
|
|
|
|
|
disabled: disabled,
|
|
|
|
|
onChange: function onChange(value) {
|
|
|
|
|
console.log(value);
|
|
|
|
|
// return
|
|
|
|
|
if (value || value == 0) {
|
|
|
|
|
data.game_deduct_score_percentage = value.toFixed(2);
|
|
|
|
|
setData(Object.assign({}, data));
|
|
|
|
|
setShowTip(false);
|
|
|
|
|
} else {
|
|
|
|
|
data.game_deduct_score_percentage = '';
|
|
|
|
|
setData(Object.assign({}, data));
|
|
|
|
|
setShowTip(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// calcScore()
|
|
|
|
|
}
|
|
|
|
|
}), "\xA0%", showtip && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: ConfigWorksmodules/* default */.Z.tip,
|
|
|
|
|
children: "\u8BF7\u8F93\u5165\u6263\u5206\u6BD4\u4F8B"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
|
|
|
|
|
value: false,
|
|
|
|
|
style: {
|
|
|
|
|
marginTop: 15
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
|
|
|
children: "\u4E0D\u6263\u5206"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
|
|
|
children: "\u6309\u67E5\u770B\u7B54\u6848\u7EA7\u522B\u6263\u5206"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-grey-c",
|
|
|
|
|
children: "(\u6839\u636E\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7684\u5B9E\u8BAD\u7B54\u6848\u7EA7\u522B(\u89E3\u9898\u601D\u8DEF\u3001\u5B8C\u6574\u7B54\u6848)\uFF0C\u6263\u51CF\u76F8\u5E94\u7684\u5206\u503C)"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
|