|
|
|
|
@ -5667,7 +5667,7 @@ var TextArea = input/* default */.Z.TextArea;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var informationPage = function informationPage(_ref) {
|
|
|
|
|
var _formValue$sponsor, _formValue$organizer, _formValue$co_organiz, _formValue$name, _formValue$identifier2;
|
|
|
|
|
var _organizations$find, _formValue$sponsor, _formValue$organizer, _formValue$co_organiz, _formValue$name, _formValue$identifier2;
|
|
|
|
|
var competitions = _ref.competitions,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
props = objectWithoutProperties_default()(_ref, information_excluded);
|
|
|
|
|
@ -5743,6 +5743,9 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
setOrganizations = _useState32[1];
|
|
|
|
|
var Header = competitions.Header;
|
|
|
|
|
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;
|
|
|
|
|
var submitData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
|
|
|
|
|
var _formValue$identifier;
|
|
|
|
|
@ -5907,6 +5910,7 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
res = _context3.sent;
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
message/* default */.ZP.success('创建成功');
|
|
|
|
|
getOrganizations();
|
|
|
|
|
setCreateOpen(false);
|
|
|
|
|
}
|
|
|
|
|
setCreateOpenLoading(false);
|
|
|
|
|
@ -6347,7 +6351,10 @@ var informationPage = function informationPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
className: "ml20",
|
|
|
|
|
children: "\u521B\u5EFA\u7EC4\u7EC7"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
}), !!organizationsName && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return (0,util/* openNewWindow */.xg)((0,util/* skipNetLogin */.T0)(true) ? 'https://code-kyxt.pcl.ac.cn/' : 'http://121.41.90.210:64300/' + organizationsName);
|
|
|
|
|
},
|
|
|
|
|
type: "primary",
|
|
|
|
|
className: "ml10",
|
|
|
|
|
children: "\u8FDB\u5165\u7EC4\u7EC7"
|