|
|
|
|
@ -14221,7 +14221,6 @@ var md5_default = /*#__PURE__*/__webpack_require__.n(md5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
var defaultValue = _ref.defaultValue,
|
|
|
|
|
visible = _ref.visible,
|
|
|
|
|
@ -14420,9 +14419,9 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
className: DataSetModalmodules.dataSetModSty,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: DataSetModalmodules.boxLeft,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: DataSetModalmodules.headerBox,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'baseline',
|
|
|
|
|
@ -14453,20 +14452,7 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
},
|
|
|
|
|
value: params.type
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomInput */.t7, {
|
|
|
|
|
style: {
|
|
|
|
|
width: 300,
|
|
|
|
|
marginBottom: '20px'
|
|
|
|
|
},
|
|
|
|
|
placeholder: "\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0/\u63CF\u8FF0\u8FDB\u884C\u641C\u7D22",
|
|
|
|
|
value: params.keyword,
|
|
|
|
|
onChange: function onChange(keyword) {
|
|
|
|
|
params.keyword = keyword;
|
|
|
|
|
params.page = 1;
|
|
|
|
|
getDataSetList();
|
|
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), totalCount > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: DataSetModalmodules.listSty,
|
|
|
|
|
@ -14585,7 +14571,6 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
var _CommitRecords$data2;
|
|
|
|
|
var defaultValue = _ref.defaultValue,
|
|
|
|
|
@ -14837,9 +14822,9 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
className: PatternModalmodules.dataSetModSty,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: PatternModalmodules.boxLeft,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: PatternModalmodules.headerBox,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'baseline',
|
|
|
|
|
@ -14858,20 +14843,7 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
},
|
|
|
|
|
value: params.type
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomInput */.t7, {
|
|
|
|
|
style: {
|
|
|
|
|
width: 300,
|
|
|
|
|
marginBottom: '20px'
|
|
|
|
|
},
|
|
|
|
|
placeholder: "\u8F93\u5165\u6A21\u578B\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
|
|
|
|
|
value: params.keyword,
|
|
|
|
|
onChange: function onChange(keyword) {
|
|
|
|
|
params.keyword = keyword;
|
|
|
|
|
params.page = 1;
|
|
|
|
|
getDataSetList();
|
|
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), totalCount > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: PatternModalmodules.listSty,
|
|
|
|
|
@ -15056,7 +15028,8 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
params: {
|
|
|
|
|
page: params.page || 1,
|
|
|
|
|
limit: params.limit || 5,
|
|
|
|
|
type: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data = CommitRecords.data) !== null && _CommitRecords$data !== void 0 && _CommitRecords$data.is_txbm_b_first ? 2 : params.type || 1
|
|
|
|
|
type: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data = CommitRecords.data) !== null && _CommitRecords$data !== void 0 && _CommitRecords$data.is_txbm_b_first ? 2 : params.type || 1,
|
|
|
|
|
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 4:
|
|
|
|
|
@ -15069,7 +15042,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data2 = CommitRecords.data) !== null && _CommitRecords$data2 !== void 0 && _CommitRecords$data2.is_txbm_b_first ? {
|
|
|
|
|
keyword: keyword,
|
|
|
|
|
section_id: competitionStage.id
|
|
|
|
|
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id
|
|
|
|
|
} : {
|
|
|
|
|
keyword: keyword
|
|
|
|
|
}
|
|
|
|
|
@ -15265,7 +15238,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Entrance = function Entrance(_ref) {
|
|
|
|
|
var _CommitRecords$data12, _CommitRecords$data13, _CommitRecords$data14, _CommitRecords$data15, _CommitRecords$data16, _CommitRecords$data17, _competitions$competi4, _CommitRecords$data18, _CommitRecords$data19, _competitionStage$dat, _defaultPatten$, _CommitRecords$data20, _CommitRecords$data21, _CommitRecords$data22;
|
|
|
|
|
var _CommitRecords$data13, _CommitRecords$data14, _CommitRecords$data15, _CommitRecords$data16, _CommitRecords$data17, _CommitRecords$data18, _competitions$competi4, _CommitRecords$data19, _CommitRecords$data20, _mirrorList$, _competitionStage$dat, _defaultPatten$, _CommitRecords$data21, _CommitRecords$data22, _CommitRecords$data23;
|
|
|
|
|
var dispatch = _ref.dispatch,
|
|
|
|
|
competitions = _ref.competitions,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
@ -16125,19 +16098,52 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
return _ref9.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
|
|
|
|
|
// 获取规格和镜像
|
|
|
|
|
var getMirrorAndSpecificList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(keyword) {
|
|
|
|
|
var getGpuMirrorList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
|
|
|
|
|
var _CommitRecords$data7;
|
|
|
|
|
var res, _res$data, _res$data2;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context10) {
|
|
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context10.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_gpu_resources.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 5,
|
|
|
|
|
type: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data7 = CommitRecords.data) !== null && _CommitRecords$data7 !== void 0 && _CommitRecords$data7.is_txbm_b_first ? 2 : 1,
|
|
|
|
|
section_id: competitionStage.id || null
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context10.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
setMirrorList(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.images);
|
|
|
|
|
form.setFieldValue('image_name', res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 || (_res$data2 = _res$data2.images) === null || _res$data2 === void 0 || (_res$data2 = _res$data2[0]) === null || _res$data2 === void 0 ? void 0 : _res$data2.image_name);
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee9);
|
|
|
|
|
}));
|
|
|
|
|
return function getGpuMirrorList() {
|
|
|
|
|
return _ref10.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
|
|
|
|
|
// 获取规格和镜像
|
|
|
|
|
var getMirrorAndSpecificList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10(keyword) {
|
|
|
|
|
var _CommitRecords$data8;
|
|
|
|
|
var res, _res$data3, _res$data4;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee10$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context11.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_resources.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data7 = CommitRecords.data) !== null && _CommitRecords$data7 !== void 0 && _CommitRecords$data7.is_txbm_b_first ? {
|
|
|
|
|
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data8 = CommitRecords.data) !== null && _CommitRecords$data8 !== void 0 && _CommitRecords$data8.is_txbm_b_first ? {
|
|
|
|
|
keyword: keyword,
|
|
|
|
|
section_id: competitionStage.id
|
|
|
|
|
} : {
|
|
|
|
|
@ -16145,34 +16151,34 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context10.sent;
|
|
|
|
|
res = _context11.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
setMirrorList(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.images);
|
|
|
|
|
console.log('res?.data?.images---', res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.images);
|
|
|
|
|
setMirrorList(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.images);
|
|
|
|
|
console.log('res?.data?.images---', res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.images);
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee9);
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}));
|
|
|
|
|
return function getMirrorAndSpecificList(_x8) {
|
|
|
|
|
return _ref10.apply(this, arguments);
|
|
|
|
|
return _ref11.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
// 获取模型数据
|
|
|
|
|
var getDefaultPatten = /*#__PURE__*/function () {
|
|
|
|
|
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
|
|
|
|
|
var _CommitRecords$data8, _CommitRecords$data9;
|
|
|
|
|
var res, _res$data3, _tempData$, tempData;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee10$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
var _ref12 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
|
|
|
|
|
var _CommitRecords$data9, _CommitRecords$data10;
|
|
|
|
|
var res, _res$data5, _tempData$, tempData;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
setPageLoading(true);
|
|
|
|
|
_context11.next = 3;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_teams/").concat(CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data8 = CommitRecords.data) === null || _CommitRecords$data8 === void 0 ? void 0 : _CommitRecords$data8.competition_team_id, "/get_models.json"), {
|
|
|
|
|
_context12.next = 3;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_teams/").concat(CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data9 = CommitRecords.data) === null || _CommitRecords$data9 === void 0 ? void 0 : _CommitRecords$data9.competition_team_id, "/get_models.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data9 = CommitRecords.data) !== null && _CommitRecords$data9 !== void 0 && _CommitRecords$data9.is_txbm_b_first ? {
|
|
|
|
|
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data10 = CommitRecords.data) !== null && _CommitRecords$data10 !== void 0 && _CommitRecords$data10.is_txbm_b_first ? {
|
|
|
|
|
type: competitionStage !== null && competitionStage !== void 0 && competitionStage.used_section_datasets ? 4 : 1,
|
|
|
|
|
q: '',
|
|
|
|
|
page: 1,
|
|
|
|
|
@ -16186,10 +16192,10 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context11.sent;
|
|
|
|
|
res = _context12.sent;
|
|
|
|
|
setPageLoading(false);
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
tempData = res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 || (_res$data3 = _res$data3.data) === null || _res$data3 === void 0 || (_res$data3 = _res$data3.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.map(function (item, index) {
|
|
|
|
|
tempData = res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5.data) === null || _res$data5 === void 0 || (_res$data5 = _res$data5.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.map(function (item, index) {
|
|
|
|
|
return {
|
|
|
|
|
id: item === null || item === void 0 ? void 0 : item.id,
|
|
|
|
|
name: item === null || item === void 0 ? void 0 : item.name
|
|
|
|
|
@ -16200,27 +16206,27 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}));
|
|
|
|
|
return function getDefaultPatten() {
|
|
|
|
|
return _ref11.apply(this, arguments);
|
|
|
|
|
return _ref12.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
var handleCommit = /*#__PURE__*/function () {
|
|
|
|
|
var _ref12 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
|
|
|
|
|
var _CommitRecords$data10, _CommitRecords$data11;
|
|
|
|
|
var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
|
|
|
|
|
var _CommitRecords$data11, _CommitRecords$data12;
|
|
|
|
|
var payload, res, _res$del_filename, _res$del_filename2, s3;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
payload = {
|
|
|
|
|
identifier: identifier,
|
|
|
|
|
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id,
|
|
|
|
|
commit_type: radioValue,
|
|
|
|
|
type: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data10 = CommitRecords.data) !== null && _CommitRecords$data10 !== void 0 && _CommitRecords$data10.is_yd_oss ? 'yd' : '',
|
|
|
|
|
attachment_ids: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data11 = CommitRecords.data) !== null && _CommitRecords$data11 !== void 0 && _CommitRecords$data11.is_yd_oss ? fileList === null || fileList === void 0 ? void 0 : fileList.map(function (item) {
|
|
|
|
|
type: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data11 = CommitRecords.data) !== null && _CommitRecords$data11 !== void 0 && _CommitRecords$data11.is_yd_oss ? 'yd' : '',
|
|
|
|
|
attachment_ids: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data12 = CommitRecords.data) !== null && _CommitRecords$data12 !== void 0 && _CommitRecords$data12.is_yd_oss ? fileList === null || fileList === void 0 ? void 0 : fileList.map(function (item) {
|
|
|
|
|
var _item$response, _item$response2, _item$response3, _item$response4;
|
|
|
|
|
return {
|
|
|
|
|
name: item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.oldName,
|
|
|
|
|
@ -16252,13 +16258,13 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
payload.place = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.place) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.place);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_context12.next = 4;
|
|
|
|
|
_context13.next = 4;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: "competitions/postCompetitionCommitRecords",
|
|
|
|
|
payload: objectSpread2_default()({}, payload)
|
|
|
|
|
});
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context12.sent;
|
|
|
|
|
res = _context13.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success(res === null || res === void 0 ? void 0 : res.message);
|
|
|
|
|
setFileList([]);
|
|
|
|
|
@ -16293,12 +16299,12 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 7:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}));
|
|
|
|
|
return function handleCommit() {
|
|
|
|
|
return _ref12.apply(this, arguments);
|
|
|
|
|
return _ref13.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
@ -16311,7 +16317,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: "\u63D0\u4EA4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
children: [(CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data12 = CommitRecords.data) === null || _CommitRecords$data12 === void 0 ? void 0 : _CommitRecords$data12.submit_count) !== -1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [(CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data13 = CommitRecords.data) === null || _CommitRecords$data13 === void 0 ? void 0 : _CommitRecords$data13.submit_count) !== -1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "mr10",
|
|
|
|
|
children: ["\u4ECA\u5929\u8FD8\u53EF\u4EE5\u63D0\u4EA4", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "font16",
|
|
|
|
|
@ -16320,7 +16326,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
fontWeight: 600,
|
|
|
|
|
margin: "0 6px"
|
|
|
|
|
},
|
|
|
|
|
children: (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data13 = CommitRecords.data) === null || _CommitRecords$data13 === void 0 ? void 0 : _CommitRecords$data13.submit_count) || 0
|
|
|
|
|
children: (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data14 = CommitRecords.data) === null || _CommitRecords$data14 === void 0 ? void 0 : _CommitRecords$data14.submit_count) || 0
|
|
|
|
|
}), "\u6B21"]
|
|
|
|
|
}), (is_manager || (competition === null || competition === void 0 ? void 0 : competition.is_member)) && (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.can_evaluation) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "primary",
|
|
|
|
|
@ -16330,6 +16336,9 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
|
|
|
|
|
getMirrorAndSpecificList();
|
|
|
|
|
}
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu') {
|
|
|
|
|
getGpuMirrorList();
|
|
|
|
|
}
|
|
|
|
|
getDefaultPatten();
|
|
|
|
|
} else {
|
|
|
|
|
handleCommit();
|
|
|
|
|
@ -16346,7 +16355,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
children: "\u9898\u76EE\u540D\u79F0"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
className: "ml20",
|
|
|
|
|
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data14 = CommitRecords.data) === null || _CommitRecords$data14 === void 0 || (_CommitRecords$data14 = _CommitRecords$data14.question) === null || _CommitRecords$data14 === void 0 ? void 0 : _CommitRecords$data14.name
|
|
|
|
|
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data15 = CommitRecords.data) === null || _CommitRecords$data15 === void 0 || (_CommitRecords$data15 = _CommitRecords$data15.question) === null || _CommitRecords$data15 === void 0 ? void 0 : _CommitRecords$data15.name
|
|
|
|
|
})]
|
|
|
|
|
}), (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) !== 'npu' && (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) !== 'gpu' && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: "mt25",
|
|
|
|
|
@ -16462,10 +16471,10 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
display: "inline-block"
|
|
|
|
|
},
|
|
|
|
|
children: ["\u4ED3\u5E93\u6587\u4EF6\u8DEF\u5F84\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data15 = CommitRecords.data) === null || _CommitRecords$data15 === void 0 ? void 0 : _CommitRecords$data15.git_address,
|
|
|
|
|
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data16 = CommitRecords.data) === null || _CommitRecords$data16 === void 0 ? void 0 : _CommitRecords$data16.git_address
|
|
|
|
|
href: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data16 = CommitRecords.data) === null || _CommitRecords$data16 === void 0 ? void 0 : _CommitRecords$data16.git_address,
|
|
|
|
|
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data17 = CommitRecords.data) === null || _CommitRecords$data17 === void 0 ? void 0 : _CommitRecords$data17.git_address
|
|
|
|
|
})]
|
|
|
|
|
}), (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data17 = CommitRecords.data) === null || _CommitRecords$data17 === void 0 || (_CommitRecords$data17 = _CommitRecords$data17.records) === null || _CommitRecords$data17 === void 0 ? void 0 : _CommitRecords$data17.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data18 = CommitRecords.data) === null || _CommitRecords$data18 === void 0 || (_CommitRecords$data18 = _CommitRecords$data18.records) === null || _CommitRecords$data18 === void 0 ? void 0 : _CommitRecords$data18.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mt30",
|
|
|
|
|
style: {
|
|
|
|
|
borderTop: "1px solid #F1F1F1"
|
|
|
|
|
@ -16491,7 +16500,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
pagination: false
|
|
|
|
|
// loading={loading["competitions/getCompetitionCommitRecords"]}
|
|
|
|
|
,
|
|
|
|
|
dataSource: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data18 = CommitRecords.data) === null || _CommitRecords$data18 === void 0 ? void 0 : _CommitRecords$data18.records,
|
|
|
|
|
dataSource: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data19 = CommitRecords.data) === null || _CommitRecords$data19 === void 0 ? void 0 : _CommitRecords$data19.records,
|
|
|
|
|
columns: Columns
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -16528,7 +16537,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
|
|
className: "mt30",
|
|
|
|
|
value: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data19 = CommitRecords.data) === null || _CommitRecords$data19 === void 0 || (_CommitRecords$data19 = _CommitRecords$data19.question) === null || _CommitRecords$data19 === void 0 ? void 0 : _CommitRecords$data19.description
|
|
|
|
|
value: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data20 = CommitRecords.data) === null || _CommitRecords$data20 === void 0 || (_CommitRecords$data20 = _CommitRecords$data20.question) === null || _CommitRecords$data20 === void 0 ? void 0 : _CommitRecords$data20.description
|
|
|
|
|
}), isEdit && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: "mt40",
|
|
|
|
|
align: "middle",
|
|
|
|
|
@ -16543,12 +16552,12 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
size: "large",
|
|
|
|
|
className: "ml20",
|
|
|
|
|
type: "primary",
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee13$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context13.next = 2;
|
|
|
|
|
_context14.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: "competitions/putCompetitionEntries",
|
|
|
|
|
payload: objectSpread2_default()({
|
|
|
|
|
@ -16556,7 +16565,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}, urlData)
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context13.sent;
|
|
|
|
|
res = _context14.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success("修改成功");
|
|
|
|
|
setIsEdit(false);
|
|
|
|
|
@ -16564,9 +16573,9 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
return _context14.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}, _callee13);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u4FDD\u5B58\u66F4\u6539"
|
|
|
|
|
})]
|
|
|
|
|
@ -16608,7 +16617,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
},
|
|
|
|
|
initialValues: {
|
|
|
|
|
image_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_id,
|
|
|
|
|
image_name: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_name,
|
|
|
|
|
image_name: (mirrorList === null || mirrorList === void 0 || (_mirrorList$ = mirrorList[0]) === null || _mirrorList$ === void 0 ? void 0 : _mirrorList$.image_name) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_name),
|
|
|
|
|
data_sets: competitionStage === null || competitionStage === void 0 || (_competitionStage$dat = competitionStage.data_sets) === null || _competitionStage$dat === void 0 || (_competitionStage$dat = _competitionStage$dat.map(function (item) {
|
|
|
|
|
return item === null || item === void 0 ? void 0 : item.name;
|
|
|
|
|
})) === null || _competitionStage$dat === void 0 ? void 0 : _competitionStage$dat.join('、'),
|
|
|
|
|
@ -16797,7 +16806,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_DataSetModal, {
|
|
|
|
|
defaultValue: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.data_sets,
|
|
|
|
|
visible: dataSetVis,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data20 = CommitRecords.data) === null || _CommitRecords$data20 === void 0 ? void 0 : _CommitRecords$data20.competition_team_id,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data21 = CommitRecords.data) === null || _CommitRecords$data21 === void 0 ? void 0 : _CommitRecords$data21.competition_team_id,
|
|
|
|
|
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
|
|
|
|
|
onCancle: function onCancle() {
|
|
|
|
|
setDataSetVis(false);
|
|
|
|
|
@ -16809,7 +16818,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PatternModal, {
|
|
|
|
|
defaultValue: defaultPatten || [],
|
|
|
|
|
visible: patternVis,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data21 = CommitRecords.data) === null || _CommitRecords$data21 === void 0 ? void 0 : _CommitRecords$data21.competition_team_id,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data22 = CommitRecords.data) === null || _CommitRecords$data22 === void 0 ? void 0 : _CommitRecords$data22.competition_team_id,
|
|
|
|
|
onCancle: function onCancle() {
|
|
|
|
|
setPatternVis(false);
|
|
|
|
|
},
|
|
|
|
|
@ -16820,7 +16829,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
binRatioTab: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.used_section_datasets
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(MirrorModal, {
|
|
|
|
|
visible: mirrorModalVis,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data22 = CommitRecords.data) === null || _CommitRecords$data22 === void 0 ? void 0 : _CommitRecords$data22.competition_team_id,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data23 = CommitRecords.data) === null || _CommitRecords$data23 === void 0 ? void 0 : _CommitRecords$data23.competition_team_id,
|
|
|
|
|
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
|
|
|
|
|
type: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category,
|
|
|
|
|
onCancle: function onCancle() {
|
|
|
|
|
@ -16834,11 +16843,11 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var view_Entrance = ((0,_umi_production_exports.connect)(function (_ref14) {
|
|
|
|
|
var competitions = _ref14.competitions,
|
|
|
|
|
loading = _ref14.loading,
|
|
|
|
|
globalSetting = _ref14.globalSetting,
|
|
|
|
|
user = _ref14.user;
|
|
|
|
|
/* harmony default export */ var view_Entrance = ((0,_umi_production_exports.connect)(function (_ref15) {
|
|
|
|
|
var competitions = _ref15.competitions,
|
|
|
|
|
loading = _ref15.loading,
|
|
|
|
|
globalSetting = _ref15.globalSetting,
|
|
|
|
|
user = _ref15.user;
|
|
|
|
|
return {
|
|
|
|
|
competitions: competitions,
|
|
|
|
|
globalSetting: globalSetting,
|