|
|
|
|
@ -4730,7 +4730,8 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
identifier = _useParams.identifier;
|
|
|
|
|
var competition_team = competitions.competition_team,
|
|
|
|
|
is_manager = competitions.is_manager,
|
|
|
|
|
is_member = competitions.is_member;
|
|
|
|
|
is_member = competitions.is_member,
|
|
|
|
|
have_team_appl = competitions.have_team_appl;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)({
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page: 10,
|
|
|
|
|
@ -5235,7 +5236,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
radioOption = _useState68[0],
|
|
|
|
|
setRadioOption = _useState68[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (is_manager) {
|
|
|
|
|
if (have_team_appl) {
|
|
|
|
|
radioOption.push({
|
|
|
|
|
label: '申诉申请',
|
|
|
|
|
value: 'appeal',
|
|
|
|
|
@ -5243,7 +5244,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
});
|
|
|
|
|
setRadioOption(toConsumableArray_default()(radioOption));
|
|
|
|
|
}
|
|
|
|
|
}, [is_manager]);
|
|
|
|
|
}, [have_team_appl]);
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -5913,6 +5914,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
dataIndex: 'created_at',
|
|
|
|
|
render: function render(text) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: dayjs_min_default()(text).format('YYYY-MM-DD HH:mm') || '--',
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: dayjs_min_default()(text).format('YYYY-MM-DD HH:mm') || '- -'
|
|
|
|
|
@ -6094,6 +6096,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
render: function render(text) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: text,
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: text || '- -'
|
|
|
|
|
})
|
|
|
|
|
@ -6107,6 +6110,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
render: function render(text, item) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
title: text,
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: text || '- -'
|
|
|
|
|
})
|
|
|
|
|
@ -9603,16 +9607,15 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
className: addQuestionsmodules.scoreByBlankRadio,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
if (e.target.value === 2) {
|
|
|
|
|
form.setFieldValue('image_id', '');
|
|
|
|
|
form.setFieldValue('spec_id', '');
|
|
|
|
|
getMirrorAndSpecificList('', 'NPU');
|
|
|
|
|
getDataSetList('', 1, 10, 1);
|
|
|
|
|
} else if (e.target.value === 3) {
|
|
|
|
|
form.setFieldValue('image_id', '');
|
|
|
|
|
form.setFieldValue('spec_id', '');
|
|
|
|
|
getMirrorAndSpecificList('', 'GPU');
|
|
|
|
|
getDataSetList('', 1, 10, 0);
|
|
|
|
|
}
|
|
|
|
|
form.setFieldValue('image_id', '');
|
|
|
|
|
form.setFieldValue('spec_id', '');
|
|
|
|
|
form.setFieldValue('image_name', '');
|
|
|
|
|
},
|
|
|
|
|
options: [{
|
|
|
|
|
label: '自定义服务器',
|
|
|
|
|
@ -12798,7 +12801,8 @@ var md5_default = /*#__PURE__*/__webpack_require__.n(md5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
var visible = _ref.visible,
|
|
|
|
|
var defaultValue = _ref.defaultValue,
|
|
|
|
|
visible = _ref.visible,
|
|
|
|
|
teamId = _ref.teamId,
|
|
|
|
|
_ref$cluster_type = _ref.cluster_type,
|
|
|
|
|
cluster_type = _ref$cluster_type === void 0 ? '0' : _ref$cluster_type,
|
|
|
|
|
@ -12860,7 +12864,7 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
keyword: '',
|
|
|
|
|
type: 1,
|
|
|
|
|
type: 3,
|
|
|
|
|
cluster_type: cluster_type || '0'
|
|
|
|
|
}),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
@ -12875,6 +12879,19 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
getDataSetList();
|
|
|
|
|
}
|
|
|
|
|
}, [visible]);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
var tempData = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.map(function (item) {
|
|
|
|
|
return {
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.name,
|
|
|
|
|
key: item === null || item === void 0 ? void 0 : item.uuid
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
var tempKey = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.map(function (item) {
|
|
|
|
|
return item === null || item === void 0 ? void 0 : item.uuid;
|
|
|
|
|
});
|
|
|
|
|
setSelectDataset(tempData || []);
|
|
|
|
|
setCheckedKeys(tempKey || []);
|
|
|
|
|
}, [defaultValue]);
|
|
|
|
|
var getDataSetList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, _res$data, _res$data2, tempTreeData;
|
|
|
|
|
@ -12885,7 +12902,7 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_teams/").concat(teamId, "/get_datasets.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
type: params.type || 1,
|
|
|
|
|
type: params.type || 3,
|
|
|
|
|
q: params.keyword,
|
|
|
|
|
page: params.page || 1,
|
|
|
|
|
limit: params.limit || 10,
|
|
|
|
|
@ -12972,9 +12989,8 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
open: visible,
|
|
|
|
|
width: 1100,
|
|
|
|
|
okText: "\u786E\u5B9A",
|
|
|
|
|
cancelText: "\u53D6\u6D88"
|
|
|
|
|
// zIndex={1000}
|
|
|
|
|
,
|
|
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
|
|
zIndex: 1100,
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var _selectDataset$map;
|
|
|
|
|
var datasetsString, datasets;
|
|
|
|
|
@ -13178,7 +13194,8 @@ var DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
var visible = _ref.visible,
|
|
|
|
|
var defaultValue = _ref.defaultValue,
|
|
|
|
|
visible = _ref.visible,
|
|
|
|
|
teamId = _ref.teamId,
|
|
|
|
|
onCancle = _ref.onCancle,
|
|
|
|
|
onOK = _ref.onOK;
|
|
|
|
|
@ -13239,7 +13256,19 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
getDataSetList();
|
|
|
|
|
}
|
|
|
|
|
}, [visible]);
|
|
|
|
|
console.log("treeData--", treeData);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
var tempData = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.map(function (item) {
|
|
|
|
|
return {
|
|
|
|
|
title: item === null || item === void 0 ? void 0 : item.name,
|
|
|
|
|
key: item === null || item === void 0 ? void 0 : item.id
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
var tempKey = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.map(function (item) {
|
|
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
|
|
});
|
|
|
|
|
setSelectDataset(tempData || []);
|
|
|
|
|
setCheckedKeys(tempKey || []);
|
|
|
|
|
}, [defaultValue]);
|
|
|
|
|
var getDataSetList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, _res$data, _res$data2, tempTreeData;
|
|
|
|
|
@ -13339,9 +13368,8 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
open: visible,
|
|
|
|
|
width: 1100,
|
|
|
|
|
okText: "\u786E\u5B9A",
|
|
|
|
|
cancelText: "\u53D6\u6D88"
|
|
|
|
|
// zIndex={1000}
|
|
|
|
|
,
|
|
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
|
|
zIndex: 1100,
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var _selectDataset$map;
|
|
|
|
|
var datasetsString, datasets;
|
|
|
|
|
@ -13543,7 +13571,6 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
var visible = _ref.visible,
|
|
|
|
|
teamId = _ref.teamId,
|
|
|
|
|
@ -13615,9 +13642,8 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
open: visible,
|
|
|
|
|
width: 800,
|
|
|
|
|
okText: "\u786E\u5B9A",
|
|
|
|
|
cancelText: "\u53D6\u6D88"
|
|
|
|
|
// zIndex={1000}
|
|
|
|
|
,
|
|
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
|
|
zIndex: 1100,
|
|
|
|
|
footer: null,
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
onCancle();
|
|
|
|
|
@ -13652,77 +13678,82 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
},
|
|
|
|
|
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", {
|
|
|
|
|
style: {
|
|
|
|
|
minHeight: '400px'
|
|
|
|
|
},
|
|
|
|
|
children: totalCount > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
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: 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);
|
|
|
|
|
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"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__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);
|
|
|
|
|
}, 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: "\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, {})]
|
|
|
|
|
children: total
|
|
|
|
|
}), "\u6761\u6570\u636E"]
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onChange: function onChange(page, limit) {
|
|
|
|
|
params.page = page;
|
|
|
|
|
params.limit = limit;
|
|
|
|
|
getGpuMirrorList();
|
|
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
@ -13755,7 +13786,7 @@ var MirrorModal_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, _CommitRecords$data16;
|
|
|
|
|
var _CommitRecords$data8, _CommitRecords$data9, _CommitRecords$data10, _CommitRecords$data11, _competitions$competi2, _CommitRecords$data12, _CommitRecords$data13, _competitionStage$dat, _CommitRecords$data14, _CommitRecords$data15, _CommitRecords$data16;
|
|
|
|
|
var dispatch = _ref.dispatch,
|
|
|
|
|
competitions = _ref.competitions,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
@ -14586,16 +14617,19 @@ 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.data_sets = dataSets;
|
|
|
|
|
payload.models = models;
|
|
|
|
|
payload.data_sets = !!dataSets.length ? dataSets : competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.data_sets;
|
|
|
|
|
payload.models = !!models.length ? models : [{
|
|
|
|
|
name: "llama_model_7B",
|
|
|
|
|
id: "7e99c056-587f-4174-bd15-bff987d364e6"
|
|
|
|
|
}];
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
|
|
|
|
|
payload.image_name = mirrorParams.image_name;
|
|
|
|
|
payload.image_id = mirrorParams.image_id;
|
|
|
|
|
payload.image_name = (mirrorParams === null || mirrorParams === void 0 ? void 0 : mirrorParams.image_name) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_name);
|
|
|
|
|
payload.image_id = (mirrorParams === null || mirrorParams === void 0 ? void 0 : mirrorParams.image_id) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.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;
|
|
|
|
|
payload.image_name = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.image_name) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_name);
|
|
|
|
|
payload.image_id = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.image_id) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_id);
|
|
|
|
|
payload.place = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.place) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.place);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_context10.next = 4;
|
|
|
|
|
@ -14937,6 +14971,14 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
setMirrorParams(objectSpread2_default()({}, mirrorParams));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
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,
|
|
|
|
|
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('、'),
|
|
|
|
|
pattern: 'llama_model_7B'
|
|
|
|
|
},
|
|
|
|
|
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",
|
|
|
|
|
@ -14946,6 +14988,9 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择镜像'
|
|
|
|
|
}],
|
|
|
|
|
style: {
|
|
|
|
|
width: '628px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
@ -15064,6 +15109,9 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
type: "default",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setPatternVis(true);
|
|
|
|
|
},
|
|
|
|
|
@ -15073,6 +15121,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$data14 = CommitRecords.data) === null || _CommitRecords$data14 === void 0 ? void 0 : _CommitRecords$data14.competition_team_id,
|
|
|
|
|
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
|
|
|
|
|
@ -15084,6 +15133,10 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
form.setFieldValue('data_sets', datasetsString);
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PatternModal, {
|
|
|
|
|
defaultValue: [{
|
|
|
|
|
name: "llama_model_7B",
|
|
|
|
|
id: "7e99c056-587f-4174-bd15-bff987d364e6"
|
|
|
|
|
}],
|
|
|
|
|
visible: patternVis,
|
|
|
|
|
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data15 = CommitRecords.data) === null || _CommitRecords$data15 === void 0 ? void 0 : _CommitRecords$data15.competition_team_id,
|
|
|
|
|
onCancle: function onCancle() {
|