autoUpdataFile

dev_local_v9_brain_cloud_competitions
eduauto 1 year ago
parent c2050b6ab3
commit 392ff8210a

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.cfbb5052.js"></script>
<script src="/react/build/umi.0f9aa285.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -5055,9 +5055,9 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
case 0:
setApplyLoading(true);
_context2.next = 3;
return (0,service_competitions/* getMergeList */.fH)({
return (0,service_competitions/* getMergeList */.fH)(objectSpread2_default()({
identifier: identifier
});
}, params));
case 3:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
@ -6001,7 +6001,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
params.page = page;
params.per_page = pageSize;
setparams(objectSpread2_default()({}, params));
getTeams();
getApplyList();
},
pageSize: params.per_page,
current: params.page
@ -11591,7 +11591,8 @@ var Ranking_competitionsPage = function competitionsPage(_ref) {
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier;
var is_manager = competitions.is_manager,
is_member = competitions.is_member;
is_member = competitions.is_member,
competitionStage = competitions.competitionStage;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
items = _useState2[0],
@ -11818,6 +11819,29 @@ var Ranking_competitionsPage = function competitionsPage(_ref) {
children: text || '- -'
});
}
}, {
title: '评分维度',
align: 'right',
dataIndex: 'team_id',
ellipsis: true,
render: function render(text, record) {
if (record !== null && record !== void 0 && record.dim) {
var _record$dim, _record$dim2, _record$dim3, _record$dim4;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["PLCC:", (record === null || record === void 0 || (_record$dim = record.dim) === null || _record$dim === void 0 ? void 0 : _record$dim.PLCC) || '--']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["SRCC:", (record === null || record === void 0 || (_record$dim2 = record.dim) === null || _record$dim2 === void 0 ? void 0 : _record$dim2.SRCC) || '--']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["UR:", (record === null || record === void 0 || (_record$dim3 = record.dim) === null || _record$dim3 === void 0 ? void 0 : _record$dim3.UR) || '--']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["info:", (record === null || record === void 0 || (_record$dim4 = record.dim) === null || _record$dim4 === void 0 ? void 0 : _record$dim4.info) || '--']
})]
});
} else {
return '--';
}
}
}, {
title: '提交总次数',
align: 'center',
@ -11828,7 +11852,13 @@ var Ranking_competitionsPage = function competitionsPage(_ref) {
children: text || '- -'
});
}
}];
}].filter(function (item) {
if (competitionStage !== null && competitionStage !== void 0 && competitionStage.rating_dimensions) {
return !!item;
} else {
return ['评测维度'].includes(item.title);
}
});
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Rankingmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
@ -13127,7 +13157,7 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
})) === null || _selectDataset$map === void 0 ? void 0 : _selectDataset$map.join('、');
datasets = selectDataset === null || selectDataset === void 0 ? void 0 : selectDataset.map(function (item) {
return {
name: item === null || item === void 0 ? void 0 : item.title,
name: item === null || item === void 0 ? void 0 : item.name,
id: item === null || item === void 0 ? void 0 : item.key
};
});
@ -13434,6 +13464,27 @@ var Entrance = function Entrance(_ref) {
render: function render(text) {
return text || "--";
}
}, {
title: "镜像",
width: 200,
dataIndex: "commit_at",
render: function render(text) {
return text ? dayjs_min_default()(text).format('YYYY.MM.DD HH:mm:ss') : "--";
}
}, {
title: "数据集",
width: 200,
dataIndex: "commit_at",
render: function render(text) {
return text ? dayjs_min_default()(text).format('YYYY.MM.DD HH:mm:ss') : "--";
}
}, {
title: "模型",
width: 200,
dataIndex: "commit_at",
render: function render(text) {
return text ? dayjs_min_default()(text).format('YYYY.MM.DD HH:mm:ss') : "--";
}
}, {
title: "提交时间",
width: 200,
@ -13560,7 +13611,13 @@ var Entrance = function Entrance(_ref) {
})]
});
}
}];
}].filter(function (item) {
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
return item.title != '下载文件';
} else {
return !['镜像', '数据集', '模型'].includes(item.title);
}
});
// const UploadProps = {
// fileList,
@ -15324,7 +15381,6 @@ var Playerwork = function Playerwork(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
checkInfo = _useState6[0],
setCheckInfo = _useState6[1];
console.log("------------competitionStage--", competitionStage);
var Columns = [{
title: "选手名称",
dataIndex: "user_name",
@ -15348,6 +15404,27 @@ var Playerwork = function Playerwork(_ref) {
render: function render(text) {
return text || "--";
}
}, {
title: "评分维度",
dataIndex: "commit_id",
render: function render(text, record) {
if (record !== null && record !== void 0 && record.dim) {
var _record$dim, _record$dim2, _record$dim3, _record$dim4;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["PLCC:", (record === null || record === void 0 || (_record$dim = record.dim) === null || _record$dim === void 0 ? void 0 : _record$dim.PLCC) || '--']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["SRCC:", (record === null || record === void 0 || (_record$dim2 = record.dim) === null || _record$dim2 === void 0 ? void 0 : _record$dim2.SRCC) || '--']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["UR:", (record === null || record === void 0 || (_record$dim3 = record.dim) === null || _record$dim3 === void 0 ? void 0 : _record$dim3.UR) || '--']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["info:", (record === null || record === void 0 || (_record$dim4 = record.dim) === null || _record$dim4 === void 0 ? void 0 : _record$dim4.info) || '--']
})]
});
} else {
return '--';
}
}
}, {
title: "提交时间",
width: 150,
@ -15382,6 +15459,31 @@ var Playerwork = function Playerwork(_ref) {
children: "\u5DF2\u5B8C\u6210"
}) : "--";
}
}, {
title: "镜像",
width: 200,
dataIndex: "commit_at",
render: function render(text, record) {
return record === null || record === void 0 ? void 0 : record.image_name;
}
}, {
title: "数据集",
width: 200,
dataIndex: "commit_at",
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;
}
}, {
title: "模型",
width: 200,
dataIndex: "commit_at",
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) {
return item === null || item === void 0 ? void 0 : item.name;
})) === null || _record$models === void 0 ? void 0 : _record$models.join('、');
}
}, {
title: "评测文件",
dataIndex: "commit_id",
@ -15541,7 +15643,19 @@ var Playerwork = function Playerwork(_ref) {
})]
});
}
}];
}].filter(function (item) {
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
return item.title != '下载文件';
} else {
return !['镜像', '数据集', '模型'].includes(item.title);
}
}).filter(function (item) {
if (competitionStage !== null && competitionStage !== void 0 && competitionStage.rating_dimensions) {
return !!item;
} else {
return ['评测维度'].includes(item.title);
}
});
var getData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
@ -15624,13 +15738,13 @@ var Playerwork = function Playerwork(_ref) {
}));
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (MemberWorks === null || MemberWorks === void 0 || (_MemberWorks$data = MemberWorks.data) === null || _MemberWorks$data === void 0 ? void 0 : _MemberWorks$data.count) < 2 && '当前赛段作品数量不足2个无法完成查重操作',
title: (MemberWorks === null || MemberWorks === void 0 || (_MemberWorks$data = MemberWorks.data) === null || _MemberWorks$data === void 0 ? void 0 : _MemberWorks$data.record_size) < 2 && '当前赛段作品数量不足2个无法完成查重操作',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
openLoading: true,
type: "default",
size: "large",
disabled: (MemberWorks === null || MemberWorks === void 0 || (_MemberWorks$data2 = MemberWorks.data) === null || _MemberWorks$data2 === void 0 ? void 0 : _MemberWorks$data2.count) < 2,
disabled: (MemberWorks === null || MemberWorks === void 0 || (_MemberWorks$data2 = MemberWorks.data) === null || _MemberWorks$data2 === void 0 ? void 0 : _MemberWorks$data2.record_size) < 2,
style: {
background: "#3061D0",
color: "#fff",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save