autoUpdataFile

dev_local_v9_brain_cloud_competitions
eduauto 1 year ago
parent f2407634f0
commit 04adb443af

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

@ -13793,7 +13793,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, _competitionStage$dat, _CommitRecords$data14, _CommitRecords$data15, _CommitRecords$data16;
var _CommitRecords$data9, _CommitRecords$data10, _CommitRecords$data11, _CommitRecords$data12, _competitions$competi2, _CommitRecords$data13, _CommitRecords$data14, _competitionStage$dat, _CommitRecords$data15, _CommitRecords$data16, _CommitRecords$data17;
var dispatch = _ref.dispatch,
competitions = _ref.competitions,
loading = _ref.loading,
@ -14123,8 +14123,8 @@ var Entrance = function Entrance(_ref) {
maxCount: 1,
beforeUpload: function () {
var _beforeUpload = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(file) {
var _CommitRecords$data, _CommitRecords$data2, _CommitRecords$data3;
var fileSizeG, fileSizeM, fileType, gather;
var _CommitRecords$data, _CommitRecords$data2, _CommitRecords$data4;
var fileSizeG, fileSizeM, fileType, _CommitRecords$data3, gather;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
@ -14146,12 +14146,19 @@ var Entrance = function Entrance(_ref) {
return _context3.abrupt("return", Promise.reject());
case 9:
if (!(fileType != "zip")) {
_context3.next = 12;
_context3.next = 15;
break;
}
if (!(!(CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data3 = CommitRecords.data) !== null && _CommitRecords$data3 !== void 0 && _CommitRecords$data3.is_yd_oss) && fileType != "csv")) {
_context3.next = 13;
break;
}
message/* default */.ZP.error("\u4EC5\u652F\u6301zip\u548Ccsv\u4E0A\u4F20");
return _context3.abrupt("return", Promise.reject());
case 13:
message/* default */.ZP.error("\u4EC5\u652F\u6301zip\u4E0A\u4F20");
return _context3.abrupt("return", Promise.reject());
case 12:
case 15:
gather = {
id: String(Math.random()).slice(-6),
name: file.name,
@ -14161,7 +14168,7 @@ var Entrance = function Entrance(_ref) {
percent: 0,
status: 'uploading'
};
if (CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data3 = CommitRecords.data) !== null && _CommitRecords$data3 !== void 0 && _CommitRecords$data3.is_yd_oss) {
if (CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data4 = CommitRecords.data) !== null && _CommitRecords$data4 !== void 0 && _CommitRecords$data4.is_yd_oss) {
AWSUploadFiles(gather);
} else {
LocalUploadFiles(gather);
@ -14170,7 +14177,7 @@ var Entrance = function Entrance(_ref) {
return [].concat(toConsumableArray_default()(p), [gather]);
});
return _context3.abrupt("return", Promise.reject());
case 16:
case 19:
case "end":
return _context3.stop();
}
@ -14401,10 +14408,10 @@ var Entrance = function Entrance(_ref) {
getCompetitionCommitRecords();
}, [competitionStage]);
(0,_react_17_0_2_react.useEffect)(function () {
var _CommitRecords$data4, _CommitRecords$data5;
var _CommitRecords$data5, _CommitRecords$data6;
setUrlData({
description: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data4 = CommitRecords.data) === null || _CommitRecords$data4 === void 0 || (_CommitRecords$data4 = _CommitRecords$data4.question) === null || _CommitRecords$data4 === void 0 ? void 0 : _CommitRecords$data4.description,
question_id: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data5 = CommitRecords.data) === null || _CommitRecords$data5 === void 0 || (_CommitRecords$data5 = _CommitRecords$data5.question) === null || _CommitRecords$data5 === void 0 ? void 0 : _CommitRecords$data5.id
description: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data5 = CommitRecords.data) === null || _CommitRecords$data5 === void 0 || (_CommitRecords$data5 = _CommitRecords$data5.question) === null || _CommitRecords$data5 === void 0 ? void 0 : _CommitRecords$data5.description,
question_id: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data6 = CommitRecords.data) === null || _CommitRecords$data6 === void 0 || (_CommitRecords$data6 = _CommitRecords$data6.question) === null || _CommitRecords$data6 === void 0 ? void 0 : _CommitRecords$data6.id
});
}, [CommitRecords]);
@ -14623,7 +14630,7 @@ var Entrance = function Entrance(_ref) {
}();
var handleCommit = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _CommitRecords$data6, _CommitRecords$data7;
var _CommitRecords$data7, _CommitRecords$data8;
var payload, res, _res$del_filename, _res$del_filename2, s3;
return regeneratorRuntime_default()().wrap(function _callee10$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
@ -14632,8 +14639,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$data6 = CommitRecords.data) !== null && _CommitRecords$data6 !== void 0 && _CommitRecords$data6.is_yd_oss ? 'yd' : '',
attachment_ids: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data7 = CommitRecords.data) !== null && _CommitRecords$data7 !== void 0 && _CommitRecords$data7.is_yd_oss ? fileList === null || fileList === void 0 ? void 0 : fileList.map(function (item) {
type: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data7 = CommitRecords.data) !== null && _CommitRecords$data7 !== void 0 && _CommitRecords$data7.is_yd_oss ? 'yd' : '',
attachment_ids: CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data8 = CommitRecords.data) !== null && _CommitRecords$data8 !== void 0 && _CommitRecords$data8.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,
@ -14742,7 +14749,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$data8 = CommitRecords.data) === null || _CommitRecords$data8 === void 0 || (_CommitRecords$data8 = _CommitRecords$data8.question) === null || _CommitRecords$data8 === void 0 ? void 0 : _CommitRecords$data8.name
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data9 = CommitRecords.data) === null || _CommitRecords$data9 === void 0 || (_CommitRecords$data9 = _CommitRecords$data9.question) === null || _CommitRecords$data9 === void 0 ? void 0 : _CommitRecords$data9.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",
@ -14858,10 +14865,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$data9 = CommitRecords.data) === null || _CommitRecords$data9 === void 0 ? void 0 : _CommitRecords$data9.git_address,
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data10 = CommitRecords.data) === null || _CommitRecords$data10 === void 0 ? void 0 : _CommitRecords$data10.git_address
href: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data10 = CommitRecords.data) === null || _CommitRecords$data10 === void 0 ? void 0 : _CommitRecords$data10.git_address,
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data11 = CommitRecords.data) === null || _CommitRecords$data11 === void 0 ? void 0 : _CommitRecords$data11.git_address
})]
}), (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data11 = CommitRecords.data) === null || _CommitRecords$data11 === void 0 || (_CommitRecords$data11 = _CommitRecords$data11.records) === null || _CommitRecords$data11 === void 0 ? void 0 : _CommitRecords$data11.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data12 = CommitRecords.data) === null || _CommitRecords$data12 === void 0 || (_CommitRecords$data12 = _CommitRecords$data12.records) === null || _CommitRecords$data12 === void 0 ? void 0 : _CommitRecords$data12.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30",
style: {
borderTop: "1px solid #F1F1F1"
@ -14887,7 +14894,7 @@ var Entrance = function Entrance(_ref) {
pagination: false
// loading={loading["competitions/getCompetitionCommitRecords"]}
,
dataSource: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data12 = CommitRecords.data) === null || _CommitRecords$data12 === void 0 ? void 0 : _CommitRecords$data12.records,
dataSource: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data13 = CommitRecords.data) === null || _CommitRecords$data13 === void 0 ? void 0 : _CommitRecords$data13.records,
columns: Columns
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -14924,7 +14931,7 @@ var Entrance = function Entrance(_ref) {
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
className: "mt30",
value: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data13 = CommitRecords.data) === null || _CommitRecords$data13 === void 0 || (_CommitRecords$data13 = _CommitRecords$data13.question) === null || _CommitRecords$data13 === void 0 ? void 0 : _CommitRecords$data13.description
value: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data14 = CommitRecords.data) === null || _CommitRecords$data14 === void 0 || (_CommitRecords$data14 = _CommitRecords$data14.question) === null || _CommitRecords$data14 === void 0 ? void 0 : _CommitRecords$data14.description
}), isEdit && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mt40",
align: "middle",
@ -15152,7 +15159,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,
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data15 = CommitRecords.data) === null || _CommitRecords$data15 === void 0 ? void 0 : _CommitRecords$data15.competition_team_id,
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
onCancle: function onCancle() {
setDataSetVis(false);
@ -15167,7 +15174,7 @@ var Entrance = function Entrance(_ref) {
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,
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data16 = CommitRecords.data) === null || _CommitRecords$data16 === void 0 ? void 0 : _CommitRecords$data16.competition_team_id,
onCancle: function onCancle() {
setPatternVis(false);
},
@ -15178,7 +15185,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$data16 = CommitRecords.data) === null || _CommitRecords$data16 === void 0 ? void 0 : _CommitRecords$data16.competition_team_id,
teamId: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data17 = CommitRecords.data) === null || _CommitRecords$data17 === void 0 ? void 0 : _CommitRecords$data17.competition_team_id,
cluster_type: (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' ? 1 : 0,
onCancle: function onCancle() {
setMirrorModalVis(false);

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