|
|
|
|
@ -5744,8 +5744,8 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
var competition = competitions.competition;
|
|
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
|
|
var organizationsName = (_organizations$find = organizations.find(function (e) {
|
|
|
|
|
return e.id === formValue.open_organization_id;
|
|
|
|
|
})) === null || _organizations$find === void 0 ? void 0 : _organizations$find.name;
|
|
|
|
|
return e.value === formValue.open_organization_id;
|
|
|
|
|
})) === null || _organizations$find === void 0 ? void 0 : _organizations$find.label;
|
|
|
|
|
var submitData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
|
|
|
var _formValue$identifier;
|
|
|
|
|
@ -5827,10 +5827,12 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
if ((params === null || params === void 0 ? void 0 : params.identifier) == form.getFieldValue('identifier')) {
|
|
|
|
|
//未修改比赛网址
|
|
|
|
|
dispatch({
|
|
|
|
|
type: "competitions/common_header",
|
|
|
|
|
payload: props === null || props === void 0 ? void 0 : props.competitionId
|
|
|
|
|
});
|
|
|
|
|
getData();
|
|
|
|
|
|
|
|
|
|
// dispatch({
|
|
|
|
|
// type: "competitions/common_header",
|
|
|
|
|
// payload: props?.competitionId
|
|
|
|
|
// })
|
|
|
|
|
// dispatch({
|
|
|
|
|
// type: 'competitions/getStaff',
|
|
|
|
|
// payload: {
|
|
|
|
|
@ -5846,7 +5848,6 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
} else if ((params === null || params === void 0 ? void 0 : params.identifier) != form.getFieldValue('identifier')) {
|
|
|
|
|
window.location.href = "/competitions/detail/".concat(form.getFieldValue('identifier'), "?type=3");
|
|
|
|
|
}
|
|
|
|
|
getData();
|
|
|
|
|
} else {
|
|
|
|
|
// message.error(res?.message)
|
|
|
|
|
}
|
|
|
|
|
@ -5871,7 +5872,10 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/open_organizations/user_orgs.json", {
|
|
|
|
|
method: 'get'
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
competition_identifier: params === null || params === void 0 ? void 0 : params.identifier
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
@ -6018,6 +6022,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
required_info: filteredKeys,
|
|
|
|
|
open_organization_id: res === null || res === void 0 ? void 0 : res.open_organization_id
|
|
|
|
|
});
|
|
|
|
|
console.log(objectSpread2_default()({}, form.getFieldsValue()), 77);
|
|
|
|
|
setstudentcheck(res === null || res === void 0 || (_res$member_staff = res.member_staff) === null || _res$member_staff === void 0 ? void 0 : _res$member_staff.mutiple_limited);
|
|
|
|
|
setteachercheck(res === null || res === void 0 || (_res$teacher_staff = res.teacher_staff) === null || _res$teacher_staff === void 0 ? void 0 : _res$teacher_staff.mutiple_limited);
|
|
|
|
|
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
|
|
|
|
|
@ -6111,7 +6116,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
return _ref9.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}()),
|
|
|
|
|
onChange: function onChange() {
|
|
|
|
|
onValuesChange: function onValuesChange() {
|
|
|
|
|
var _form$getFieldValue2, _formValue$descriptio;
|
|
|
|
|
var obj = form === null || form === void 0 || (_form$getFieldValue2 = form.getFieldValue('sponsor_user_name')) === null || _form$getFieldValue2 === void 0 ? void 0 : _form$getFieldValue2.replaceAll(' ', '');
|
|
|
|
|
form.setFieldsValue({
|