|
|
|
|
@ -7273,48 +7273,52 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
setGoBackTeam = _useState12[1];
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
phone_check = _useState14[0],
|
|
|
|
|
setphonecheck = _useState14[1];
|
|
|
|
|
canOrnotEdit = _useState14[0],
|
|
|
|
|
setCanOrnotEdit = _useState14[1];
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
|
|
student_check = _useState16[0],
|
|
|
|
|
setstudentcheck = _useState16[1];
|
|
|
|
|
phone_check = _useState16[0],
|
|
|
|
|
setphonecheck = _useState16[1];
|
|
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
|
|
teacher_check = _useState18[0],
|
|
|
|
|
setteachercheck = _useState18[1];
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
student_check = _useState18[0],
|
|
|
|
|
setstudentcheck = _useState18[1];
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
|
|
schoolList = _useState20[0],
|
|
|
|
|
setSchoolList = _useState20[1];
|
|
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
teacher_check = _useState20[0],
|
|
|
|
|
setteachercheck = _useState20[1];
|
|
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
|
|
jinsai_id = _useState22[0],
|
|
|
|
|
setjingsaiid = _useState22[1];
|
|
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
schoolList = _useState22[0],
|
|
|
|
|
setSchoolList = _useState22[1];
|
|
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
|
|
showFailed = _useState24[0],
|
|
|
|
|
setShowFailed = _useState24[1];
|
|
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
jinsai_id = _useState24[0],
|
|
|
|
|
setjingsaiid = _useState24[1];
|
|
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
|
|
dataSource = _useState26[0],
|
|
|
|
|
setdataSource = _useState26[1];
|
|
|
|
|
var _useState27 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
showFailed = _useState26[0],
|
|
|
|
|
setShowFailed = _useState26[1];
|
|
|
|
|
var _useState27 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
|
|
showtext = _useState28[0],
|
|
|
|
|
setshowtext = _useState28[1];
|
|
|
|
|
dataSource = _useState28[0],
|
|
|
|
|
setdataSource = _useState28[1];
|
|
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState30 = slicedToArray_default()(_useState29, 2),
|
|
|
|
|
createOpen = _useState30[0],
|
|
|
|
|
setCreateOpen = _useState30[1];
|
|
|
|
|
showtext = _useState30[0],
|
|
|
|
|
setshowtext = _useState30[1];
|
|
|
|
|
var _useState31 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState32 = slicedToArray_default()(_useState31, 2),
|
|
|
|
|
createOpenLoading = _useState32[0],
|
|
|
|
|
setCreateOpenLoading = _useState32[1];
|
|
|
|
|
var _useState33 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
createOpen = _useState32[0],
|
|
|
|
|
setCreateOpen = _useState32[1];
|
|
|
|
|
var _useState33 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState34 = slicedToArray_default()(_useState33, 2),
|
|
|
|
|
organizations = _useState34[0],
|
|
|
|
|
setOrganizations = _useState34[1];
|
|
|
|
|
createOpenLoading = _useState34[0],
|
|
|
|
|
setCreateOpenLoading = _useState34[1];
|
|
|
|
|
var _useState35 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState36 = slicedToArray_default()(_useState35, 2),
|
|
|
|
|
organizations = _useState36[0],
|
|
|
|
|
setOrganizations = _useState36[1];
|
|
|
|
|
var competition = competitions.competition;
|
|
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
|
|
var organizationsName = (_organizations$find = organizations.find(function (e) {
|
|
|
|
|
@ -7322,22 +7326,22 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
})) === null || _organizations$find === void 0 ? void 0 : _organizations$find.label;
|
|
|
|
|
|
|
|
|
|
//参赛协议
|
|
|
|
|
var _useState35 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState36 = slicedToArray_default()(_useState35, 2),
|
|
|
|
|
showXieyi = _useState36[0],
|
|
|
|
|
setShowXieyi = _useState36[1];
|
|
|
|
|
var _useState37 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
var _useState37 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState38 = slicedToArray_default()(_useState37, 2),
|
|
|
|
|
xieyitype = _useState38[0],
|
|
|
|
|
setXieyitype = _useState38[1];
|
|
|
|
|
showXieyi = _useState38[0],
|
|
|
|
|
setShowXieyi = _useState38[1];
|
|
|
|
|
var _useState39 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
_useState40 = slicedToArray_default()(_useState39, 2),
|
|
|
|
|
xieyicontent = _useState40[0],
|
|
|
|
|
setXieyicontent = _useState40[1];
|
|
|
|
|
var _useState41 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
xieyitype = _useState40[0],
|
|
|
|
|
setXieyitype = _useState40[1];
|
|
|
|
|
var _useState41 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
_useState42 = slicedToArray_default()(_useState41, 2),
|
|
|
|
|
isContent = _useState42[0],
|
|
|
|
|
setIscontent = _useState42[1];
|
|
|
|
|
xieyicontent = _useState42[0],
|
|
|
|
|
setXieyicontent = _useState42[1];
|
|
|
|
|
var _useState43 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState44 = slicedToArray_default()(_useState43, 2),
|
|
|
|
|
isContent = _useState44[0],
|
|
|
|
|
setIscontent = _useState44[1];
|
|
|
|
|
var submitData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
|
|
|
var _formValue$identifier;
|
|
|
|
|
@ -7345,6 +7349,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
console.log("values--", values);
|
|
|
|
|
obj_file = [];
|
|
|
|
|
if ((file === null || file === void 0 ? void 0 : file.length) > 0) {
|
|
|
|
|
file === null || file === void 0 || file.map(function (item) {
|
|
|
|
|
@ -7383,7 +7388,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
'leader_submit': authentication_check,
|
|
|
|
|
'is_show': phone_check,
|
|
|
|
|
'cannot_leave_team': goBackTeam,
|
|
|
|
|
'cannot_edit_info': values === null || values === void 0 ? void 0 : values.cannot_edit_info,
|
|
|
|
|
'cannot_edit_info': canOrnotEdit,
|
|
|
|
|
'competition_staffs': [{
|
|
|
|
|
minimum: form.getFieldValue('student_min'),
|
|
|
|
|
maximum: form.getFieldValue('student_max'),
|
|
|
|
|
@ -7399,14 +7404,14 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
}]
|
|
|
|
|
});
|
|
|
|
|
if (!(((_formValue$identifier = formValue.identifier) === null || _formValue$identifier === void 0 ? void 0 : _formValue$identifier.length) < 3)) {
|
|
|
|
|
_context.next = 9;
|
|
|
|
|
_context.next = 10;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.error('比赛网址最少要输入三个字符');
|
|
|
|
|
_context.next = 13;
|
|
|
|
|
_context.next = 14;
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
|
|
|
|
_context.next = 11;
|
|
|
|
|
case 10:
|
|
|
|
|
_context.next = 12;
|
|
|
|
|
return (0,service_competitions/* basicSetting */.$M)(objectSpread2_default()(objectSpread2_default()({
|
|
|
|
|
id: props === null || props === void 0 ? void 0 : props.competitionId
|
|
|
|
|
}, form.getFieldsValue()), {}, {
|
|
|
|
|
@ -7415,7 +7420,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
start_time: form.getFieldValue('start_time') ? dayjs_min_default()(form.getFieldValue('start_time')).format('YYYY-MM-DD HH:mm') : '',
|
|
|
|
|
end_time: form.getFieldValue('end_time') ? dayjs_min_default()(form.getFieldValue('end_time')).format('YYYY-MM-DD HH:mm') : ''
|
|
|
|
|
}, required_info));
|
|
|
|
|
case 11:
|
|
|
|
|
case 12:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success('更改成功');
|
|
|
|
|
@ -7451,7 +7456,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
} else {
|
|
|
|
|
// message.error(res?.message)
|
|
|
|
|
}
|
|
|
|
|
case 13:
|
|
|
|
|
case 14:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -7599,13 +7604,14 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
setauthenticationcheck(res === null || res === void 0 ? void 0 : res.leader_submit);
|
|
|
|
|
setphonecheck(res === null || res === void 0 ? void 0 : res.is_show);
|
|
|
|
|
setGoBackTeam(res === null || res === void 0 ? void 0 : res.cannot_leave_team);
|
|
|
|
|
setCanOrnotEdit(res === null || res === void 0 ? void 0 : res.cannot_edit_info);
|
|
|
|
|
form.setFieldsValue({
|
|
|
|
|
'region_rule': res === null || res === void 0 ? void 0 : res.region_rule,
|
|
|
|
|
'region_schools': res === null || res === void 0 ? void 0 : res.region_school_array,
|
|
|
|
|
'leader_submit': res === null || res === void 0 ? void 0 : res.leader_submit,
|
|
|
|
|
'is_show': res === null || res === void 0 ? void 0 : res.is_show,
|
|
|
|
|
'cannot_leave_team': res === null || res === void 0 ? void 0 : res.cannot_leave_team,
|
|
|
|
|
" cannot_edit_info": res === null || res === void 0 ? void 0 : res.cannot_edit_info
|
|
|
|
|
"cannot_edit_info": res === null || res === void 0 ? void 0 : res.cannot_edit_info
|
|
|
|
|
});
|
|
|
|
|
var required_info = {
|
|
|
|
|
required_name: res === null || res === void 0 ? void 0 : res.required_name,
|
|
|
|
|
@ -8312,10 +8318,16 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u6218\u961F\u4FE1\u606F",
|
|
|
|
|
name: "\u2005cannot_edit_info",
|
|
|
|
|
name: "cannot_edit_info",
|
|
|
|
|
className: informationmodules.form_item,
|
|
|
|
|
colon: false,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
|
|
checked: canOrnotEdit,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
var _e$target4, _e$target5;
|
|
|
|
|
setCanOrnotEdit(e === null || e === void 0 || (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : _e$target4.checked);
|
|
|
|
|
form.setFieldValue('cannot_edit_info', e === null || e === void 0 || (_e$target5 = e.target) === null || _e$target5 === void 0 ? void 0 : _e$target5.checked);
|
|
|
|
|
},
|
|
|
|
|
children: "\u4E0D\u5141\u8BB8\u4FEE\u6539\u6218\u961F\u540D\u79F0\u548CLOGO"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
@ -8371,8 +8383,8 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
|
|
checked: authentication_check,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
var _e$target4;
|
|
|
|
|
return setauthenticationcheck(e === null || e === void 0 || (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : _e$target4.checked);
|
|
|
|
|
var _e$target6;
|
|
|
|
|
return setauthenticationcheck(e === null || e === void 0 || (_e$target6 = e.target) === null || _e$target6 === void 0 ? void 0 : _e$target6.checked);
|
|
|
|
|
},
|
|
|
|
|
children: "\u53EA\u5141\u8BB8\u961F\u4F0D\u5185\u961F\u957F\u63D0\u4EA4\u8BC4\u5BA1\u5185\u5BB9"
|
|
|
|
|
})
|
|
|
|
|
@ -8393,8 +8405,8 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
|
|
checked: phone_check,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
var _e$target5;
|
|
|
|
|
return setphonecheck(e === null || e === void 0 || (_e$target5 = e.target) === null || _e$target5 === void 0 ? void 0 : _e$target5.checked);
|
|
|
|
|
var _e$target7;
|
|
|
|
|
return setphonecheck(e === null || e === void 0 || (_e$target7 = e.target) === null || _e$target7 === void 0 ? void 0 : _e$target7.checked);
|
|
|
|
|
},
|
|
|
|
|
children: "\u6BD4\u8D5B\u5BF9\u9009\u624B\u53EF\u89C1"
|
|
|
|
|
})
|
|
|
|
|
@ -13717,7 +13729,7 @@ var previewImg_questionsPage = function questionsPage(_ref) {
|
|
|
|
|
}), "\u4E3E\u529E\u7684", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: zsInfo === null || zsInfo === void 0 ? void 0 : zsInfo.name
|
|
|
|
|
}), "\uFF0C\u5E76\u5728\u7531", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: zsInfo === null || zsInfo === void 0 ? void 0 : zsInfo.competition_member_num
|
|
|
|
|
children: (zsInfo === null || zsInfo === void 0 ? void 0 : zsInfo.competition_member_num) || 256
|
|
|
|
|
}), "\u4EBA\u62A5\u540D\u7684", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: zsInfo === null || zsInfo === void 0 ? void 0 : zsInfo.section_name
|
|
|
|
|
}), "\u8D5B\u9898\u4E2D\u3002"]
|
|
|
|
|
@ -16091,7 +16103,7 @@ var Certificate_previewImg_questionsPage = function questionsPage(_ref) {
|
|
|
|
|
}), "\u4E3E\u529E\u7684", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: zsMyInfo === null || zsMyInfo === void 0 ? void 0 : zsMyInfo.name
|
|
|
|
|
}), "\uFF0C\u5E76\u5728\u7531", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: classroomList === null || classroomList === void 0 || (_classroomList$action11 = classroomList.actionTabs) === null || _classroomList$action11 === void 0 || (_classroomList$action11 = _classroomList$action11.params) === null || _classroomList$action11 === void 0 || (_classroomList$action11 = _classroomList$action11.zsData) === null || _classroomList$action11 === void 0 ? void 0 : _classroomList$action11.competition_member_num
|
|
|
|
|
children: (classroomList === null || classroomList === void 0 || (_classroomList$action11 = classroomList.actionTabs) === null || _classroomList$action11 === void 0 || (_classroomList$action11 = _classroomList$action11.params) === null || _classroomList$action11 === void 0 || (_classroomList$action11 = _classroomList$action11.zsData) === null || _classroomList$action11 === void 0 ? void 0 : _classroomList$action11.competition_member_num) || 256
|
|
|
|
|
}), "\u4EBA\u62A5\u540D\u7684", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: classroomList === null || classroomList === void 0 || (_classroomList$action12 = classroomList.actionTabs) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12.params) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12.zsData) === null || _classroomList$action12 === void 0 ? void 0 : _classroomList$action12.section_name
|
|
|
|
|
}), "\u8D5B\u9898\u4E2D\u3002"]
|