|
|
|
|
@ -9143,16 +9143,11 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("https://openi.pcl.ac.cn/api/v1/images/recommend", {
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_gpu_resources.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
ismin: true,
|
|
|
|
|
params: {
|
|
|
|
|
cloudbrainType: -1,
|
|
|
|
|
computeResource: 'GPU',
|
|
|
|
|
spec: -1,
|
|
|
|
|
onlyOpenIImage: true,
|
|
|
|
|
page: gpuParams.page || 1,
|
|
|
|
|
pageSize: gpuParams.limit || 5
|
|
|
|
|
limit: gpuParams.limit || 5
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
@ -15667,23 +15662,25 @@ var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: "镜像",
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: "commit_at",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
dataIndex: "image_name",
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
return record === null || record === void 0 ? void 0 : record.image_name;
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: "数据集",
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: "commit_at",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
dataIndex: "user_id",
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
var _record$data_sets;
|
|
|
|
|
return record === null || record === void 0 || (_record$data_sets = record.data_sets) === null || _record$data_sets === void 0 ? void 0 : _record$data_sets.name;
|
|
|
|
|
return record === null || record === void 0 || (_record$data_sets = record.data_sets) === null || _record$data_sets === void 0 || (_record$data_sets = _record$data_sets.map(function (item) {
|
|
|
|
|
return item === null || item === void 0 ? void 0 : item.name;
|
|
|
|
|
})) === null || _record$data_sets === void 0 ? void 0 : _record$data_sets.join('、');
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: "模型",
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: "commit_at",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
dataIndex: "image_id",
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
var _record$models;
|
|
|
|
|
return record === null || record === void 0 || (_record$models = record.models) === null || _record$models === void 0 || (_record$models = _record$models.map(function (item) {
|
|
|
|
|
@ -15851,7 +15848,7 @@ var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}].filter(function (item) {
|
|
|
|
|
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
|
|
|
|
|
return item.title != '下载文件';
|
|
|
|
|
return item.title != '评测文件';
|
|
|
|
|
} else {
|
|
|
|
|
return !['镜像', '数据集', '模型'].includes(item.title);
|
|
|
|
|
}
|
|
|
|
|
@ -15859,9 +15856,10 @@ var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
if (competitionStage !== null && competitionStage !== void 0 && competitionStage.rating_dimensions) {
|
|
|
|
|
return !!item;
|
|
|
|
|
} else {
|
|
|
|
|
return ['评测维度'].includes(item.title);
|
|
|
|
|
return item.title != '评测维度';
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
console.log("Columns---", Columns);
|
|
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|