|
|
|
|
@ -3911,9 +3911,9 @@ function useInterval(callback, delay) {
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 71980:
|
|
|
|
|
/***/ 53668:
|
|
|
|
|
/*!************************************************************!*\
|
|
|
|
|
!*** ./src/pages/Competitions/Edit/index.tsx + 51 modules ***!
|
|
|
|
|
!*** ./src/pages/Competitions/Edit/index.tsx + 53 modules ***!
|
|
|
|
|
\************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
@ -13527,6 +13527,207 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var PatternModal = (PatternModal_DataSetModal);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Edit/view/components/MirrorModal/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var MirrorModalmodules = ({"Onerow":"Onerow___Hw3mj","mirrModalSty":"mirrModalSty___nQv9n","scoreByBlankRadio":"scoreByBlankRadio___EnJIP","mirrorItem":"mirrorItem___lciDE","tagSty":"tagSty___bIYqR","descTagSty":"descTagSty___KYs6R","description":"description___HnLjl"});
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Edit/view/components/MirrorModal/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
var visible = _ref.visible,
|
|
|
|
|
teamId = _ref.teamId,
|
|
|
|
|
_ref$cluster_type = _ref.cluster_type,
|
|
|
|
|
cluster_type = _ref$cluster_type === void 0 ? '0' : _ref$cluster_type,
|
|
|
|
|
onCancle = _ref.onCancle,
|
|
|
|
|
onOK = _ref.onOK;
|
|
|
|
|
var _useParams = (0,_umi_production_exports.useParams)(),
|
|
|
|
|
identifier = _useParams.identifier;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
gpuMirrorList = _useState2[0],
|
|
|
|
|
setGpuMirrorList = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 5,
|
|
|
|
|
keyword: '',
|
|
|
|
|
type: 1,
|
|
|
|
|
cluster_type: cluster_type || '0'
|
|
|
|
|
}),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
params = _useState4[0],
|
|
|
|
|
setParams = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
totalCount = _useState6[0],
|
|
|
|
|
setTotalCount = _useState6[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (visible) {
|
|
|
|
|
getGpuMirrorList();
|
|
|
|
|
}
|
|
|
|
|
}, [visible]);
|
|
|
|
|
var getGpuMirrorList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, _res$data, _res$data2;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_gpu_resources.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
page: params.page || 1,
|
|
|
|
|
limit: params.limit || 5,
|
|
|
|
|
type: params.type || 1
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
setGpuMirrorList((res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.images) || 0);
|
|
|
|
|
setTotalCount((res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.count) || []);
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
return function getGpuMirrorList() {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
className: MirrorModalmodules.addStudentWrapContainer,
|
|
|
|
|
centered: true,
|
|
|
|
|
title: "\u9009\u62E9\u955C\u50CF",
|
|
|
|
|
open: visible,
|
|
|
|
|
width: 800,
|
|
|
|
|
okText: "\u786E\u5B9A",
|
|
|
|
|
cancelText: "\u53D6\u6D88"
|
|
|
|
|
// zIndex={1000}
|
|
|
|
|
,
|
|
|
|
|
footer: null,
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
onCancle();
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: MirrorModalmodules.mirrModalSty,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'baseline',
|
|
|
|
|
zIndex: 0
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
|
|
|
|
|
className: MirrorModalmodules.scoreByBlankRadio,
|
|
|
|
|
optionType: "button",
|
|
|
|
|
options: [{
|
|
|
|
|
label: '平台推荐镜像',
|
|
|
|
|
value: 1
|
|
|
|
|
}, {
|
|
|
|
|
label: '我的镜像',
|
|
|
|
|
value: 2
|
|
|
|
|
}, {
|
|
|
|
|
label: '我收藏的镜像',
|
|
|
|
|
value: 3
|
|
|
|
|
}],
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
params.type = e.target.value;
|
|
|
|
|
params.keyword = '';
|
|
|
|
|
params.page = 1;
|
|
|
|
|
getGpuMirrorList();
|
|
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
|
|
},
|
|
|
|
|
value: params.type
|
|
|
|
|
})
|
|
|
|
|
}), totalCount > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: gpuMirrorList === null || gpuMirrorList === void 0 ? void 0 : gpuMirrorList.map(function (item, index) {
|
|
|
|
|
var _item$topics;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: MirrorModalmodules.mirrorItem,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
flex: 1
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: MirrorModalmodules.tagSty,
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.tag,
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.tag
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: MirrorModalmodules.descTagSty,
|
|
|
|
|
children: item === null || item === void 0 || (_item$topics = item.topics) === null || _item$topics === void 0 ? void 0 : _item$topics.map(function (jtem, jdex) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: jtem
|
|
|
|
|
}, jdex);
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: MirrorModalmodules.description,
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.description,
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.description
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "ml20 current",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var imageInfo = {
|
|
|
|
|
image_name: item.tag,
|
|
|
|
|
image_id: item.image_id,
|
|
|
|
|
place: item.place
|
|
|
|
|
};
|
|
|
|
|
onOK(imageInfo);
|
|
|
|
|
onCancle();
|
|
|
|
|
// form.setFieldValue('image_name', imageInfo.image_name);
|
|
|
|
|
// setGpuImage([{ ...imageInfo }]);
|
|
|
|
|
// setImageModalVis(false);
|
|
|
|
|
},
|
|
|
|
|
children: "\u4F7F\u7528"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
|
|
|
|
hideOnSinglePage: true,
|
|
|
|
|
className: "mt20 mb10",
|
|
|
|
|
size: "small",
|
|
|
|
|
current: params.page,
|
|
|
|
|
pageSize: params.limit,
|
|
|
|
|
total: totalCount || 0,
|
|
|
|
|
showTotal: function showTotal(total) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#3061D0'
|
|
|
|
|
},
|
|
|
|
|
children: total
|
|
|
|
|
}), "\u6761\u6570\u636E"]
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(page, limit) {
|
|
|
|
|
params.page = page;
|
|
|
|
|
params.limit = limit;
|
|
|
|
|
getGpuMirrorList();
|
|
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), totalCount === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})]
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var MirrorModal = (MirrorModal_DataSetModal);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Competitions/Edit/view/Entrance/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -13550,10 +13751,11 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Entrance = function Entrance(_ref) {
|
|
|
|
|
var _CommitRecords$data8, _CommitRecords$data9, _CommitRecords$data10, _CommitRecords$data11, _competitions$competi2, _CommitRecords$data12, _CommitRecords$data13, _CommitRecords$data14, _CommitRecords$data15;
|
|
|
|
|
var _CommitRecords$data8, _CommitRecords$data9, _CommitRecords$data10, _CommitRecords$data11, _competitions$competi2, _CommitRecords$data12, _CommitRecords$data13, _CommitRecords$data14, _CommitRecords$data15, _CommitRecords$data16;
|
|
|
|
|
var dispatch = _ref.dispatch,
|
|
|
|
|
competitions = _ref.competitions,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
@ -13618,14 +13820,18 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
|
|
mirrorParams = _useState22[0],
|
|
|
|
|
setMirrorParams = _useState22[1];
|
|
|
|
|
// const [mirrorList, setMirrorList] = useState([
|
|
|
|
|
// {
|
|
|
|
|
// "image_name": "mindspore_2_1_cann_6_3_xianxing-train",
|
|
|
|
|
// "image_url": "",
|
|
|
|
|
// "image_id": "qb39830ff2e445cdbb53a26690405811"
|
|
|
|
|
// }
|
|
|
|
|
// ]);
|
|
|
|
|
console.log("competitions----", competitions);
|
|
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
|
|
mirrorModalVis = _useState24[0],
|
|
|
|
|
setMirrorModalVis = _useState24[1];
|
|
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
image_name: '',
|
|
|
|
|
image_id: '',
|
|
|
|
|
place: ''
|
|
|
|
|
}),
|
|
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
|
|
mirrorInfo = _useState26[0],
|
|
|
|
|
setMirrorInfo = _useState26[1];
|
|
|
|
|
var Columns = [{
|
|
|
|
|
title: "提交ID",
|
|
|
|
|
dataIndex: "commit_id",
|
|
|
|
|
@ -13815,7 +14021,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}].filter(function (item) {
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu') {
|
|
|
|
|
return item.title != '下载文件';
|
|
|
|
|
} else {
|
|
|
|
|
return !['镜像', '数据集', '模型'].includes(item.title);
|
|
|
|
|
@ -14380,10 +14586,17 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
};
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu') {
|
|
|
|
|
payload.commit_type = 2;
|
|
|
|
|
payload.image_name = mirrorParams.image_name;
|
|
|
|
|
payload.image_id = mirrorParams.image_id;
|
|
|
|
|
payload.data_sets = dataSets;
|
|
|
|
|
payload.models = models;
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
|
|
|
|
|
payload.image_name = mirrorParams.image_name;
|
|
|
|
|
payload.image_id = mirrorParams.image_id;
|
|
|
|
|
}
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu') {
|
|
|
|
|
payload.image_name = mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.image_name;
|
|
|
|
|
payload.image_id = mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.image_id;
|
|
|
|
|
payload.place = mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.place;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_context10.next = 4;
|
|
|
|
|
return dispatch({
|
|
|
|
|
@ -14433,6 +14646,8 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
return _ref8.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
console.log("competitionStage?.category === 'gpu'==", (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu');
|
|
|
|
|
console.log("competitionStage?.category", competitionStage);
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
@ -14466,7 +14681,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
className: "ml20",
|
|
|
|
|
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data8 = CommitRecords.data) === null || _CommitRecords$data8 === void 0 || (_CommitRecords$data8 = _CommitRecords$data8.question) === null || _CommitRecords$data8 === void 0 ? void 0 : _CommitRecords$data8.name
|
|
|
|
|
})]
|
|
|
|
|
}), (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) !== 'npu' && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
}), (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",
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
@ -14487,7 +14702,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) !== 'npu' && radioValue == 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) !== 'npu' && (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) !== 'gpu' && radioValue == 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
style: {
|
|
|
|
|
width: 333
|
|
|
|
|
@ -14690,6 +14905,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
maskClosable: false,
|
|
|
|
|
centered: true,
|
|
|
|
|
keyboard: false,
|
|
|
|
|
destroyOnClose: true,
|
|
|
|
|
@ -14721,7 +14937,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
setMirrorParams(objectSpread2_default()({}, mirrorParams));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
children: [(competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
className: Entrancemodules.form_item,
|
|
|
|
|
label: "\u955C\u50CF",
|
|
|
|
|
colon: false,
|
|
|
|
|
@ -14746,6 +14962,46 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
},
|
|
|
|
|
options: mirrorList
|
|
|
|
|
})
|
|
|
|
|
}), (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu' && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
flex: 1
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
className: Entrancemodules.form_item,
|
|
|
|
|
style: {
|
|
|
|
|
flex: 1
|
|
|
|
|
},
|
|
|
|
|
label: "\u955C\u50CF",
|
|
|
|
|
colon: false,
|
|
|
|
|
name: "image_name",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择镜像'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
|
|
className: Entrancemodules.form_item_item,
|
|
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u955C\u50CF",
|
|
|
|
|
disabled: true
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
className: "ml20",
|
|
|
|
|
style: {
|
|
|
|
|
paddingTop: '22px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10px',
|
|
|
|
|
marginTop: '6px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setMirrorModalVis(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u9009\u62E9\u955C\u50CF"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
@ -14837,6 +15093,17 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
setModels(datasets);
|
|
|
|
|
form.setFieldValue('pattern', datasetsString);
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(MirrorModal, {
|
|
|
|
|
visible: mirrorModalVis,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data16 = CommitRecords.data) === null || _CommitRecords$data16 === void 0 ? void 0 : _CommitRecords$data16.competition_team_id,
|
|
|
|
|
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
|
|
|
|
|
onCancle: function onCancle() {
|
|
|
|
|
setMirrorModalVis(false);
|
|
|
|
|
},
|
|
|
|
|
onOK: function onOK(mirrorInfo) {
|
|
|
|
|
setMirrorInfo(mirrorInfo);
|
|
|
|
|
form.setFieldValue('image_name', (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.image_name) || '');
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
@ -15848,7 +16115,7 @@ var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}].filter(function (item) {
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu') {
|
|
|
|
|
return item.title != '评测文件';
|
|
|
|
|
} else {
|
|
|
|
|
return !['镜像', '数据集', '模型'].includes(item.title);
|