|
|
|
|
@ -5741,7 +5741,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
_useState32 = slicedToArray_default()(_useState31, 2),
|
|
|
|
|
organizations = _useState32[0],
|
|
|
|
|
setOrganizations = _useState32[1];
|
|
|
|
|
var Header = competitions.Header;
|
|
|
|
|
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;
|
|
|
|
|
@ -6307,7 +6307,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
// onmouseover={()=>{setshowtext(true)}}
|
|
|
|
|
,
|
|
|
|
|
disabled: (Header === null || Header === void 0 ? void 0 : Header.competition_status) == 'ended' ? true : false
|
|
|
|
|
disabled: (competition === null || competition === void 0 ? void 0 : competition.competition_status) == 'ended' ? true : false
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
@ -6334,15 +6334,26 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择竞赛组织'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
options: organizations,
|
|
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u7ADE\u8D5B\u7EC4\u7EC7",
|
|
|
|
|
style: {
|
|
|
|
|
width: 628
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
color: "#fb3226",
|
|
|
|
|
overlayStyle: {
|
|
|
|
|
maxWidth: '350px',
|
|
|
|
|
width: '350px'
|
|
|
|
|
},
|
|
|
|
|
size: "large"
|
|
|
|
|
title: '竞赛发布后将不可更改竞赛组织,请谨慎选择',
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
disabled: ['progressing', 'ended'].includes(competition === null || competition === void 0 ? void 0 : competition.competition_status),
|
|
|
|
|
options: organizations,
|
|
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u7ADE\u8D5B\u7EC4\u7EC7",
|
|
|
|
|
style: {
|
|
|
|
|
width: 628
|
|
|
|
|
},
|
|
|
|
|
size: "large"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
disabled: ['progressing', 'ended'].includes(competition === null || competition === void 0 ? void 0 : competition.competition_status),
|
|
|
|
|
style: {
|
|
|
|
|
borderRadius: 2
|
|
|
|
|
},
|
|
|
|
|
@ -6482,7 +6493,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
changetime(e, '竞赛开始时间');
|
|
|
|
|
},
|
|
|
|
|
disabled: (Header === null || Header === void 0 ? void 0 : Header.competition_status) == 'progressing' ? true : (Header === null || Header === void 0 ? void 0 : Header.competition_status) == 'ended' ? true : false
|
|
|
|
|
disabled: (competition === null || competition === void 0 ? void 0 : competition.competition_status) == 'progressing' ? true : (competition === null || competition === void 0 ? void 0 : competition.competition_status) == 'ended' ? true : false
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -6504,7 +6515,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
changetime(e, '竞赛结束时间');
|
|
|
|
|
},
|
|
|
|
|
disabled: (Header === null || Header === void 0 ? void 0 : Header.competition_status) == 'ended' ? true : false
|
|
|
|
|
disabled: (competition === null || competition === void 0 ? void 0 : competition.competition_status) == 'ended' ? true : false
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|