autoUpdataFile

dev_local_v9_brain_cloud_competitions
eduauto 1 year ago
parent cf48dbda76
commit 818a3aa098

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

@ -14967,7 +14967,7 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
var MirrorModal_DataSetModal = function DataSetModal(_ref) {
var _CommitRecords$data3;
var _CommitRecords$data4;
var visible = _ref.visible,
teamId = _ref.teamId,
_ref$type = _ref.type,
@ -15012,7 +15012,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
}, [visible]);
var getGpuMirrorList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _CommitRecords$data, _CommitRecords$data2;
var _CommitRecords$data, _CommitRecords$data2, _CommitRecords$data3;
var res, _res$data, _res$data2, _res$data3;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
@ -15029,7 +15029,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
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,
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id
section_id: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data2 = CommitRecords.data) !== null && _CommitRecords$data2 !== void 0 && _CommitRecords$data2.is_txbm_b_first ? competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id : null
}
});
case 4:
@ -15040,7 +15040,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
_context.next = 9;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_resources.json"), {
method: 'get',
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data2 = CommitRecords.data) !== null && _CommitRecords$data2 !== void 0 && _CommitRecords$data2.is_txbm_b_first ? {
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data3 = CommitRecords.data) !== null && _CommitRecords$data3 !== void 0 && _CommitRecords$data3.is_txbm_b_first ? {
keyword: keyword,
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id
} : {
@ -15084,7 +15084,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
spinning: pageLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MirrorModalmodules.mirrModalSty,
children: [!(CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data3 = CommitRecords.data) !== null && _CommitRecords$data3 !== void 0 && _CommitRecords$data3.is_txbm_b_first) ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: [!(CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data4 = CommitRecords.data) !== null && _CommitRecords$data4 !== void 0 && _CommitRecords$data4.is_txbm_b_first) ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: type == 'gpu' ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: 'flex',
@ -15238,7 +15238,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
var Entrance = function Entrance(_ref) {
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 _CommitRecords$data14, _CommitRecords$data15, _CommitRecords$data16, _CommitRecords$data17, _CommitRecords$data18, _CommitRecords$data19, _competitions$competi4, _CommitRecords$data20, _CommitRecords$data21, _mirrorList$, _competitionStage$dat, _defaultPatten$, _CommitRecords$data22, _CommitRecords$data23, _CommitRecords$data24;
var dispatch = _ref.dispatch,
competitions = _ref.competitions,
loading = _ref.loading,
@ -16100,7 +16100,7 @@ var Entrance = function Entrance(_ref) {
}();
var getGpuMirrorList = /*#__PURE__*/function () {
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
var _CommitRecords$data7;
var _CommitRecords$data7, _CommitRecords$data8;
var res, _res$data, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee9$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
@ -16112,7 +16112,7 @@ var Entrance = function Entrance(_ref) {
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
section_id: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data8 = CommitRecords.data) !== null && _CommitRecords$data8 !== void 0 && _CommitRecords$data8.is_txbm_b_first ? competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id : null
}
});
case 2:
@ -16135,7 +16135,7 @@ var Entrance = function Entrance(_ref) {
// 获取规格和镜像
var getMirrorAndSpecificList = /*#__PURE__*/function () {
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10(keyword) {
var _CommitRecords$data8;
var _CommitRecords$data9;
var res, _res$data3, _res$data4;
return regeneratorRuntime_default()().wrap(function _callee10$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
@ -16143,7 +16143,7 @@ var Entrance = function Entrance(_ref) {
_context11.next = 2;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_resources.json"), {
method: 'get',
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data8 = CommitRecords.data) !== null && _CommitRecords$data8 !== void 0 && _CommitRecords$data8.is_txbm_b_first ? {
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data9 = CommitRecords.data) !== null && _CommitRecords$data9 !== void 0 && _CommitRecords$data9.is_txbm_b_first ? {
keyword: keyword,
section_id: competitionStage.id
} : {
@ -16169,16 +16169,16 @@ var Entrance = function Entrance(_ref) {
// 获取模型数据
var getDefaultPatten = /*#__PURE__*/function () {
var _ref12 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var _CommitRecords$data9, _CommitRecords$data10;
var _CommitRecords$data10, _CommitRecords$data11;
var res, _res$data5, _tempData$, tempData;
return regeneratorRuntime_default()().wrap(function _callee11$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
setPageLoading(true);
_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"), {
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_teams/").concat(CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data10 = CommitRecords.data) === null || _CommitRecords$data10 === void 0 ? void 0 : _CommitRecords$data10.competition_team_id, "/get_models.json"), {
method: 'get',
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data10 = CommitRecords.data) !== null && _CommitRecords$data10 !== void 0 && _CommitRecords$data10.is_txbm_b_first ? {
params: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data11 = CommitRecords.data) !== null && _CommitRecords$data11 !== void 0 && _CommitRecords$data11.is_txbm_b_first ? {
type: competitionStage !== null && competitionStage !== void 0 && competitionStage.used_section_datasets ? 4 : 1,
q: '',
page: 1,
@ -16216,7 +16216,7 @@ var Entrance = function Entrance(_ref) {
}();
var handleCommit = /*#__PURE__*/function () {
var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
var _CommitRecords$data11, _CommitRecords$data12;
var _CommitRecords$data12, _CommitRecords$data13;
var payload, res, _res$del_filename, _res$del_filename2, s3;
return regeneratorRuntime_default()().wrap(function _callee12$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
@ -16225,8 +16225,8 @@ var Entrance = function Entrance(_ref) {
identifier: identifier,
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id,
commit_type: radioValue,
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) {
type: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data12 = CommitRecords.data) !== null && _CommitRecords$data12 !== void 0 && _CommitRecords$data12.is_yd_oss ? 'yd' : '',
attachment_ids: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data13 = CommitRecords.data) !== null && _CommitRecords$data13 !== void 0 && _CommitRecords$data13.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,
@ -16317,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$data13 = CommitRecords.data) === null || _CommitRecords$data13 === void 0 ? void 0 : _CommitRecords$data13.submit_count) !== -1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [(CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data14 = CommitRecords.data) === null || _CommitRecords$data14 === void 0 ? void 0 : _CommitRecords$data14.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",
@ -16326,7 +16326,7 @@ var Entrance = function Entrance(_ref) {
fontWeight: 600,
margin: "0 6px"
},
children: (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data14 = CommitRecords.data) === null || _CommitRecords$data14 === void 0 ? void 0 : _CommitRecords$data14.submit_count) || 0
children: (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data15 = CommitRecords.data) === null || _CommitRecords$data15 === void 0 ? void 0 : _CommitRecords$data15.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",
@ -16355,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$data15 = CommitRecords.data) === null || _CommitRecords$data15 === void 0 || (_CommitRecords$data15 = _CommitRecords$data15.question) === null || _CommitRecords$data15 === void 0 ? void 0 : _CommitRecords$data15.name
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data16 = CommitRecords.data) === null || _CommitRecords$data16 === void 0 || (_CommitRecords$data16 = _CommitRecords$data16.question) === null || _CommitRecords$data16 === void 0 ? void 0 : _CommitRecords$data16.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",
@ -16471,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$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
href: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data17 = CommitRecords.data) === null || _CommitRecords$data17 === void 0 ? void 0 : _CommitRecords$data17.git_address,
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data18 = CommitRecords.data) === null || _CommitRecords$data18 === void 0 ? void 0 : _CommitRecords$data18.git_address
})]
}), (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", {
}), (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data19 = CommitRecords.data) === null || _CommitRecords$data19 === void 0 || (_CommitRecords$data19 = _CommitRecords$data19.records) === null || _CommitRecords$data19 === void 0 ? void 0 : _CommitRecords$data19.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30",
style: {
borderTop: "1px solid #F1F1F1"
@ -16500,7 +16500,7 @@ var Entrance = function Entrance(_ref) {
pagination: false
// loading={loading["competitions/getCompetitionCommitRecords"]}
,
dataSource: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data19 = CommitRecords.data) === null || _CommitRecords$data19 === void 0 ? void 0 : _CommitRecords$data19.records,
dataSource: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data20 = CommitRecords.data) === null || _CommitRecords$data20 === void 0 ? void 0 : _CommitRecords$data20.records,
columns: Columns
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -16537,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$data20 = CommitRecords.data) === null || _CommitRecords$data20 === void 0 || (_CommitRecords$data20 = _CommitRecords$data20.question) === null || _CommitRecords$data20 === void 0 ? void 0 : _CommitRecords$data20.description
value: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data21 = CommitRecords.data) === null || _CommitRecords$data21 === void 0 || (_CommitRecords$data21 = _CommitRecords$data21.question) === null || _CommitRecords$data21 === void 0 ? void 0 : _CommitRecords$data21.description
}), isEdit && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mt40",
align: "middle",
@ -16806,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$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,
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
onCancle: function onCancle() {
setDataSetVis(false);
@ -16818,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$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,
onCancle: function onCancle() {
setPatternVis(false);
},
@ -16829,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$data23 = CommitRecords.data) === null || _CommitRecords$data23 === void 0 ? void 0 : _CommitRecords$data23.competition_team_id,
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data24 = CommitRecords.data) === null || _CommitRecords$data24 === void 0 ? void 0 : _CommitRecords$data24.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() {

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