autoUpdataFile

dev_local_v9_brain_cloud_competitions
eduauto 1 year ago
parent 1dd6af53eb
commit efd409f4fa

@ -23047,9 +23047,9 @@ function isnan (val) {
/***/ }),
/***/ 21601:
/***/ 72093:
/*!********************************************************************************************!*\
!*** ./node_modules/_call-bind-apply-helpers@1.0.0@call-bind-apply-helpers/actualApply.js ***!
!*** ./node_modules/_call-bind-apply-helpers@1.0.1@call-bind-apply-helpers/actualApply.js ***!
\********************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
@ -23058,9 +23058,9 @@ function isnan (val) {
var bind = __webpack_require__(/*! function-bind */ 36723);
var $apply = __webpack_require__(/*! ./functionApply */ 64400);
var $call = __webpack_require__(/*! ./functionCall */ 30932);
var $reflectApply = __webpack_require__(/*! ./reflectApply */ 67180);
var $apply = __webpack_require__(/*! ./functionApply */ 93629);
var $call = __webpack_require__(/*! ./functionCall */ 1277);
var $reflectApply = __webpack_require__(/*! ./reflectApply */ 69669);
/** @type {import('./actualApply')} */
module.exports = $reflectApply || bind.call($call, $apply);
@ -23068,9 +23068,9 @@ module.exports = $reflectApply || bind.call($call, $apply);
/***/ }),
/***/ 83565:
/***/ 35494:
/*!******************************************************************************************!*\
!*** ./node_modules/_call-bind-apply-helpers@1.0.0@call-bind-apply-helpers/applyBind.js ***!
!*** ./node_modules/_call-bind-apply-helpers@1.0.1@call-bind-apply-helpers/applyBind.js ***!
\******************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
@ -23078,8 +23078,8 @@ module.exports = $reflectApply || bind.call($call, $apply);
var bind = __webpack_require__(/*! function-bind */ 36723);
var $apply = __webpack_require__(/*! ./functionApply */ 64400);
var actualApply = __webpack_require__(/*! ./actualApply */ 21601);
var $apply = __webpack_require__(/*! ./functionApply */ 93629);
var actualApply = __webpack_require__(/*! ./actualApply */ 72093);
/** @type {import('./applyBind')} */
module.exports = function applyBind() {
@ -23089,9 +23089,9 @@ module.exports = function applyBind() {
/***/ }),
/***/ 64400:
/***/ 93629:
/*!**********************************************************************************************!*\
!*** ./node_modules/_call-bind-apply-helpers@1.0.0@call-bind-apply-helpers/functionApply.js ***!
!*** ./node_modules/_call-bind-apply-helpers@1.0.1@call-bind-apply-helpers/functionApply.js ***!
\**********************************************************************************************/
/***/ (function(module) {
@ -23104,9 +23104,9 @@ module.exports = Function.prototype.apply;
/***/ }),
/***/ 30932:
/***/ 1277:
/*!*********************************************************************************************!*\
!*** ./node_modules/_call-bind-apply-helpers@1.0.0@call-bind-apply-helpers/functionCall.js ***!
!*** ./node_modules/_call-bind-apply-helpers@1.0.1@call-bind-apply-helpers/functionCall.js ***!
\*********************************************************************************************/
/***/ (function(module) {
@ -23119,9 +23119,9 @@ module.exports = Function.prototype.call;
/***/ }),
/***/ 93609:
/***/ 33197:
/*!**************************************************************************************!*\
!*** ./node_modules/_call-bind-apply-helpers@1.0.0@call-bind-apply-helpers/index.js ***!
!*** ./node_modules/_call-bind-apply-helpers@1.0.1@call-bind-apply-helpers/index.js ***!
\**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
@ -23131,8 +23131,8 @@ module.exports = Function.prototype.call;
var bind = __webpack_require__(/*! function-bind */ 36723);
var $TypeError = __webpack_require__(/*! es-errors/type */ 61054);
var $call = __webpack_require__(/*! ./functionCall */ 30932);
var $actualApply = __webpack_require__(/*! ./actualApply */ 21601);
var $call = __webpack_require__(/*! ./functionCall */ 1277);
var $actualApply = __webpack_require__(/*! ./actualApply */ 72093);
/** @type {import('.')} */
module.exports = function callBindBasic(args) {
@ -23145,9 +23145,9 @@ module.exports = function callBindBasic(args) {
/***/ }),
/***/ 67180:
/***/ 69669:
/*!*********************************************************************************************!*\
!*** ./node_modules/_call-bind-apply-helpers@1.0.0@call-bind-apply-helpers/reflectApply.js ***!
!*** ./node_modules/_call-bind-apply-helpers@1.0.1@call-bind-apply-helpers/reflectApply.js ***!
\*********************************************************************************************/
/***/ (function(module) {
@ -23155,7 +23155,7 @@ module.exports = function callBindBasic(args) {
/** @type {import('./reflectApply')} */
module.exports = typeof Reflect === 'function' && Reflect.apply;
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
/***/ }),
@ -23199,8 +23199,8 @@ var setFunctionLength = __webpack_require__(/*! set-function-length */ 96554);
var $defineProperty = __webpack_require__(/*! es-define-property */ 68506);
var callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ 93609);
var applyBind = __webpack_require__(/*! call-bind-apply-helpers/applyBind */ 83565);
var callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ 33197);
var applyBind = __webpack_require__(/*! call-bind-apply-helpers/applyBind */ 35494);
module.exports = function callBind(originalFunction) {
var func = callBindBasic(arguments);
@ -23423,7 +23423,7 @@ module.exports = function defineDataProperty(
"use strict";
var callBind = __webpack_require__(/*! call-bind-apply-helpers */ 93609);
var callBind = __webpack_require__(/*! call-bind-apply-helpers */ 33197);
var gOPD = __webpack_require__(/*! gopd */ 46834);
// eslint-disable-next-line no-extra-parens, no-proto
@ -24132,8 +24132,8 @@ var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
|| Object.getPrototypeOf
|| getDunderProto;
var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ 64400);
var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ 30932);
var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ 93629);
var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ 1277);
var needsEval = {};

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

@ -13796,7 +13796,6 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
var Entrance = function Entrance(_ref) {
@ -13992,7 +13991,7 @@ var Entrance = function Entrance(_ref) {
centered: true,
okText: '确定',
icon: null,
cancelText: (_render2 === null || _render2 === void 0 ? void 0 : _render2.result_code) === 1 && (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'server' ? '下载运行日志' : '取消',
cancelText: '取消',
title: '运行结果',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
@ -14006,25 +14005,7 @@ var Entrance = function Entrance(_ref) {
onOk: function onOk() {
return modalDiv.destroy();
},
onCancel: (_render2 === null || _render2 === void 0 ? void 0 : _render2.result_code) === 1 && (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'server' ? /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
(0,util/* downLoadFile */.FH)('', (0,util/* setUrlQuery */.NY)({
url: env/* default */.Z.API_SERVER + "/api/competitions/".concat(identifier, "/competition_commit_records/").concat(_render2.id, "/download_log.json"),
query: {
record_id: _render2.id,
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id,
competition_id: identifier
}
}));
modalDiv.destroy();
case 2:
case "end":
return _context.stop();
}
}, _callee);
})) : function () {
onCancel: function onCancel() {
return modalDiv.destroy();
}
});
@ -14049,12 +14030,12 @@ var Entrance = function Entrance(_ref) {
children: "\u53D6\u6D88\u540E\uFF0C\u8BE5\u6210\u5458\u63D0\u4EA4\u7684\u4F5C\u54C1\u5C06\u4E0D\u8FDB\u884C\u8BC4\u6D4B\u6392\u961F\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u53D6\u6D88\u3002"
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context2.next = 2;
_context.next = 2;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_commit_records/").concat(_render2.id, "/cancel.json"), {
method: 'POST',
body: {
@ -14063,7 +14044,7 @@ var Entrance = function Entrance(_ref) {
}
});
case 2:
res = _context2.sent;
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success("取消成功");
modalDiv.destroy();
@ -14071,9 +14052,9 @@ var Entrance = function Entrance(_ref) {
}
case 4:
case "end":
return _context2.stop();
return _context.stop();
}
}, _callee2);
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -14129,49 +14110,49 @@ var Entrance = function Entrance(_ref) {
showUploadList: false,
maxCount: 1,
beforeUpload: function () {
var _beforeUpload = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(file) {
var _beforeUpload = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(file) {
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) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
fileSizeG = file.size / 1024 / 1024 / 1024;
fileSizeM = file.size / 1024 / 1024;
fileType = file.name.split(".").slice(-1)[0].toLowerCase();
if (!(CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data = CommitRecords.data) !== null && _CommitRecords$data !== void 0 && _CommitRecords$data.is_yd_oss && fileSizeG > 10)) {
_context3.next = 6;
_context2.next = 6;
break;
}
message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(10G)");
return _context3.abrupt("return", Promise.reject());
return _context2.abrupt("return", Promise.reject());
case 6:
if (!(!(CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data2 = CommitRecords.data) !== null && _CommitRecords$data2 !== void 0 && _CommitRecords$data2.is_yd_oss) && fileSizeM > 250)) {
_context3.next = 9;
_context2.next = 9;
break;
}
message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(250M)");
return _context3.abrupt("return", Promise.reject());
return _context2.abrupt("return", Promise.reject());
case 9:
if (!(fileType != "zip")) {
_context3.next = 18;
_context2.next = 18;
break;
}
if (CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data3 = CommitRecords.data) !== null && _CommitRecords$data3 !== void 0 && _CommitRecords$data3.is_yd_oss) {
_context3.next = 16;
_context2.next = 16;
break;
}
if (!(fileType != "csv")) {
_context3.next = 14;
_context2.next = 14;
break;
}
message/* default */.ZP.error("\u4EC5\u652F\u6301zip\u548Ccsv\u4E0A\u4F20");
return _context3.abrupt("return", Promise.reject());
return _context2.abrupt("return", Promise.reject());
case 14:
_context3.next = 18;
_context2.next = 18;
break;
case 16:
message/* default */.ZP.error("\u4EC5\u652F\u6301zip\u4E0A\u4F20");
return _context3.abrupt("return", Promise.reject());
return _context2.abrupt("return", Promise.reject());
case 18:
gather = {
id: String(Math.random()).slice(-6),
@ -14190,12 +14171,12 @@ var Entrance = function Entrance(_ref) {
setFileList(function (p) {
return [].concat(toConsumableArray_default()(p), [gather]);
});
return _context3.abrupt("return", Promise.reject());
return _context2.abrupt("return", Promise.reject());
case 22:
case "end":
return _context3.stop();
return _context2.stop();
}
}, _callee3);
}, _callee2);
}));
function beforeUpload(_x) {
return _beforeUpload.apply(this, arguments);
@ -14204,17 +14185,17 @@ var Entrance = function Entrance(_ref) {
}()
};
var LocalUploadFiles = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(gather) {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(gather) {
var file, fileSize, name, chunkSize, totalChunks, res, uploadId, chunk_count, client, promises, percent, _loop, i, completed, step, _promises$slice, subTasks, p, result;
return regeneratorRuntime_default()().wrap(function _callee4$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
file = gather.file;
fileSize = file.size;
name = file.name;
chunkSize = 1024 * 1024 * 5; // 5MB
totalChunks = Math.ceil(fileSize / chunkSize);
_context5.next = 7;
_context4.next = 7;
return (0,fetch/* default */.ZP)("/api/attachments/multipart_breakpoint_upload_start", {
method: 'POST',
body: {
@ -14225,9 +14206,9 @@ var Entrance = function Entrance(_ref) {
}
});
case 7:
res = _context5.sent;
res = _context4.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
_context5.next = 11;
_context4.next = 11;
break;
}
setFileList(function (p) {
@ -14240,7 +14221,7 @@ var Entrance = function Entrance(_ref) {
}
return p;
});
return _context5.abrupt("return");
return _context4.abrupt("return");
case 11:
uploadId = res.upload_id, chunk_count = res.chunk_count;
client = new AbortController();
@ -14248,8 +14229,8 @@ var Entrance = function Entrance(_ref) {
percent = chunk_count;
_loop = /*#__PURE__*/regeneratorRuntime_default()().mark(function _loop() {
var start, end, chunk, formData;
return regeneratorRuntime_default()().wrap(function _loop$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
return regeneratorRuntime_default()().wrap(function _loop$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
start = i * chunkSize;
end = Math.min(start + chunkSize, fileSize);
@ -14296,46 +14277,46 @@ var Entrance = function Entrance(_ref) {
});
case 9:
case "end":
return _context4.stop();
return _context3.stop();
}
}, _loop);
});
i = chunk_count;
case 17:
if (!(i < totalChunks)) {
_context5.next = 22;
_context4.next = 22;
break;
}
return _context5.delegateYield(_loop(), "t0", 19);
return _context4.delegateYield(_loop(), "t0", 19);
case 19:
i++;
_context5.next = 17;
_context4.next = 17;
break;
case 22:
completed = 0;
step = 4;
case 24:
if (!(completed < promises.length)) {
_context5.next = 33;
_context4.next = 33;
break;
}
subTasks = (_promises$slice = promises.slice(completed, completed + step)) === null || _promises$slice === void 0 ? void 0 : _promises$slice.map(function (t) {
return t();
});
if (!(subTasks.length > 0)) {
_context5.next = 31;
_context4.next = 31;
break;
}
_context5.next = 29;
_context4.next = 29;
return Promise.all(subTasks);
case 29:
p = _context5.sent;
p = _context4.sent;
completed += step;
case 31:
_context5.next = 24;
_context4.next = 24;
break;
case 33:
_context5.next = 35;
_context4.next = 35;
return (0,fetch/* default */.ZP)("/api/attachments/multipart_upload_end", {
method: 'POST',
body: {
@ -14345,7 +14326,7 @@ var Entrance = function Entrance(_ref) {
}
});
case 35:
result = _context5.sent;
result = _context4.sent;
if ((result === null || result === void 0 ? void 0 : result.status) === 0) {
setFileList(function (p) {
var i = p.findIndex(function (item) {
@ -14374,19 +14355,19 @@ var Entrance = function Entrance(_ref) {
}
case 37:
case "end":
return _context5.stop();
return _context4.stop();
}
}, _callee4);
}, _callee3);
}));
return function LocalUploadFiles(_x2) {
return _ref3.apply(this, arguments);
return _ref2.apply(this, arguments);
};
}();
var handleRemove = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(file) {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(file) {
var currentFile, _currentFile$client;
return regeneratorRuntime_default()().wrap(function _callee5$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
currentFile = fileListRef.current.find(function (item) {
return item.name === file.name;
@ -14401,12 +14382,12 @@ var Entrance = function Entrance(_ref) {
});
case 3:
case "end":
return _context6.stop();
return _context5.stop();
}
}, _callee5);
}, _callee4);
}));
return function handleRemove(_x3) {
return _ref4.apply(this, arguments);
return _ref3.apply(this, arguments);
};
}();
var getCompetitionCommitRecords = function getCompetitionCommitRecords() {
@ -14432,11 +14413,11 @@ var Entrance = function Entrance(_ref) {
// 移动云 naic
var AWSUploadFiles = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(gather) {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(gather) {
var _competitions$competi;
var s3, oldName, name;
return regeneratorRuntime_default()().wrap(function _callee7$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
s3 = new (browser_default()).S3({
apiVersion: '2006-03-01',
@ -14448,17 +14429,17 @@ var Entrance = function Entrance(_ref) {
});
oldName = gather.file.name;
name = "".concat(identifier, "/").concat(competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id, "/").concat(competitions === null || competitions === void 0 || (_competitions$competi = competitions.competition) === null || _competitions$competi === void 0 || (_competitions$competi = _competitions$competi.competition_team) === null || _competitions$competi === void 0 ? void 0 : _competitions$competi.id, "/") + new Date().getTime() + '_' + gather.file.name; //创建分块上传
_context8.next = 5;
_context7.next = 5;
return s3.createMultipartUpload({
Bucket: "naic",
Key: name,
// 可选参数:
ACL: "private" // private | public-read | public-read-write
}, /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(err, data) {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(err, data) {
var file, client, percent, Parts, UploadId;
return regeneratorRuntime_default()().wrap(function _callee6$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
return regeneratorRuntime_default()().wrap(function _callee5$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
if (err) {
console.log(err, err.stack);
@ -14481,22 +14462,22 @@ var Entrance = function Entrance(_ref) {
}
case 1:
case "end":
return _context7.stop();
return _context6.stop();
}
}, _callee6);
}, _callee5);
}));
return function (_x5, _x6) {
return _ref6.apply(this, arguments);
return _ref5.apply(this, arguments);
};
}());
case 5:
case "end":
return _context8.stop();
return _context7.stop();
}
}, _callee7);
}, _callee6);
}));
return function AWSUploadFiles(_x4) {
return _ref5.apply(this, arguments);
return _ref4.apply(this, arguments);
};
}();
var getPart = function getPart(name, client, Parts, UploadId, s3, percent, oldName, file) {
@ -14595,31 +14576,31 @@ var Entrance = function Entrance(_ref) {
});
};
var handleFinish = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(values) {
return regeneratorRuntime_default()().wrap(function _callee8$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(values) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
console.log("values-----", values);
handleCommit();
case 2:
case "end":
return _context9.stop();
return _context8.stop();
}
}, _callee8);
}, _callee7);
}));
return function handleFinish(_x7) {
return _ref7.apply(this, arguments);
return _ref6.apply(this, arguments);
};
}();
// 获取规格和镜像
var getMirrorAndSpecificList = /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(keyword) {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(keyword) {
var res, _res$data, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee9$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
return regeneratorRuntime_default()().wrap(function _callee8$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
_context10.next = 2;
_context9.next = 2;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_resources.json"), {
method: 'get',
params: {
@ -14627,27 +14608,27 @@ var Entrance = function Entrance(_ref) {
}
});
case 2:
res = _context10.sent;
res = _context9.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setMirrorList(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.images);
console.log('res?.data?.images---', res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.images);
}
case 4:
case "end":
return _context10.stop();
return _context9.stop();
}
}, _callee9);
}, _callee8);
}));
return function getMirrorAndSpecificList(_x8) {
return _ref8.apply(this, arguments);
return _ref7.apply(this, arguments);
};
}();
var handleCommit = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
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) {
return regeneratorRuntime_default()().wrap(function _callee9$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
payload = {
identifier: identifier,
@ -14684,13 +14665,13 @@ var Entrance = function Entrance(_ref) {
payload.place = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.place) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.place);
}
}
_context11.next = 4;
_context10.next = 4;
return dispatch({
type: "competitions/postCompetitionCommitRecords",
payload: objectSpread2_default()({}, payload)
});
case 4:
res = _context11.sent;
res = _context10.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success(res === null || res === void 0 ? void 0 : res.message);
setFileList([]);
@ -14724,12 +14705,12 @@ var Entrance = function Entrance(_ref) {
}
case 7:
case "end":
return _context11.stop();
return _context10.stop();
}
}, _callee10);
}, _callee9);
}));
return function handleCommit() {
return _ref9.apply(this, arguments);
return _ref8.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
@ -14960,12 +14941,12 @@ var Entrance = function Entrance(_ref) {
size: "large",
className: "ml20",
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
return regeneratorRuntime_default()().wrap(function _callee10$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
_context12.next = 2;
_context11.next = 2;
return dispatch({
type: "competitions/putCompetitionEntries",
payload: objectSpread2_default()({
@ -14973,7 +14954,7 @@ var Entrance = function Entrance(_ref) {
}, urlData)
});
case 2:
res = _context12.sent;
res = _context11.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success("修改成功");
setIsEdit(false);
@ -14981,9 +14962,9 @@ var Entrance = function Entrance(_ref) {
}
case 4:
case "end":
return _context12.stop();
return _context11.stop();
}
}, _callee11);
}, _callee10);
})),
children: "\u4FDD\u5B58\u66F4\u6539"
})]
@ -15211,11 +15192,11 @@ var Entrance = function Entrance(_ref) {
})]
});
};
/* harmony default export */ var view_Entrance = ((0,_umi_production_exports.connect)(function (_ref11) {
var competitions = _ref11.competitions,
loading = _ref11.loading,
globalSetting = _ref11.globalSetting,
user = _ref11.user;
/* harmony default export */ var view_Entrance = ((0,_umi_production_exports.connect)(function (_ref10) {
var competitions = _ref10.competitions,
loading = _ref10.loading,
globalSetting = _ref10.globalSetting,
user = _ref10.user;
return {
competitions: competitions,
globalSetting: globalSetting,
@ -16641,13 +16622,26 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
children: (record === null || record === void 0 || (_record$attachment2 = record.attachment) === null || _record$attachment2 === void 0 ? void 0 : _record$attachment2.title) || "--"
});
}
}, {
title: "被查作品md5",
ellipsis: true,
render: function render(text, record) {
var _record$attachment3;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061d0',
cursor: 'pointer'
},
children: (record === null || record === void 0 || (_record$attachment3 = record.attachment) === null || _record$attachment3 === void 0 ? void 0 : _record$attachment3.md5) || "--"
});
}
}, {
title: "被查作品提交时间",
width: 150,
ellipsis: true,
render: function render(text, record) {
var _record$attachment3, _record$attachment4;
return record !== null && record !== void 0 && (_record$attachment3 = record.attachment) !== null && _record$attachment3 !== void 0 && _record$attachment3.created_on ? dayjs_min_default()(record === null || record === void 0 || (_record$attachment4 = record.attachment) === null || _record$attachment4 === void 0 ? void 0 : _record$attachment4.created_on).format('YYYY-MM-DD HH:mm:ss') : "--";
var _record$attachment4, _record$attachment5;
return record !== null && record !== void 0 && (_record$attachment4 = record.attachment) !== null && _record$attachment4 !== void 0 && _record$attachment4.created_on ? dayjs_min_default()(record === null || record === void 0 || (_record$attachment5 = record.attachment) === null || _record$attachment5 === void 0 ? void 0 : _record$attachment5.created_on).format('YYYY-MM-DD HH:mm:ss') : "--";
}
}, {
title: "疑被抄袭战队",
@ -16674,13 +16668,27 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
children: (record === null || record === void 0 || (_record$plagiarism_fi2 = record.plagiarism_file) === null || _record$plagiarism_fi2 === void 0 ? void 0 : _record$plagiarism_fi2.title) || "--"
});
}
}, {
title: "疑被抄袭作品md5",
width: 130,
ellipsis: true,
render: function render(text, record) {
var _record$plagiarism_fi3;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061d0',
cursor: 'pointer'
},
children: (record === null || record === void 0 || (_record$plagiarism_fi3 = record.plagiarism_file) === null || _record$plagiarism_fi3 === void 0 ? void 0 : _record$plagiarism_fi3.md5) || "--"
});
}
}, {
title: "疑被抄袭作品提交时间",
width: 200,
width: 180,
ellipsis: true,
render: function render(text, record) {
var _record$plagiarism_fi3, _record$plagiarism_fi4;
return record !== null && record !== void 0 && (_record$plagiarism_fi3 = record.plagiarism_file) !== null && _record$plagiarism_fi3 !== void 0 && _record$plagiarism_fi3.created_on ? dayjs_min_default()(record === null || record === void 0 || (_record$plagiarism_fi4 = record.plagiarism_file) === null || _record$plagiarism_fi4 === void 0 ? void 0 : _record$plagiarism_fi4.created_on).format('YYYY-MM-DD HH:mm:ss') : "--";
var _record$plagiarism_fi4, _record$plagiarism_fi5;
return record !== null && record !== void 0 && (_record$plagiarism_fi4 = record.plagiarism_file) !== null && _record$plagiarism_fi4 !== void 0 && _record$plagiarism_fi4.created_on ? dayjs_min_default()(record === null || record === void 0 || (_record$plagiarism_fi5 = record.plagiarism_file) === null || _record$plagiarism_fi5 === void 0 ? void 0 : _record$plagiarism_fi5.created_on).format('YYYY-MM-DD HH:mm:ss') : "--";
}
}, {
title: "操作",
@ -16824,17 +16832,17 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
width: 300,
ellipsis: true,
render: function render(text, record) {
var _record$attachment7;
var _record$attachment8;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061d0',
cursor: 'pointer'
},
onClick: function onClick() {
var _record$attachment5, _record$attachment6;
(record === null || record === void 0 || (_record$attachment5 = record.attachment) === null || _record$attachment5 === void 0 ? void 0 : _record$attachment5.url) && (0,util/* downLoadFile */.FH)('', "".concat(env/* default */.Z.API_SERVER).concat(record === null || record === void 0 || (_record$attachment6 = record.attachment) === null || _record$attachment6 === void 0 ? void 0 : _record$attachment6.url));
var _record$attachment6, _record$attachment7;
(record === null || record === void 0 || (_record$attachment6 = record.attachment) === null || _record$attachment6 === void 0 ? void 0 : _record$attachment6.url) && (0,util/* downLoadFile */.FH)('', "".concat(env/* default */.Z.API_SERVER).concat(record === null || record === void 0 || (_record$attachment7 = record.attachment) === null || _record$attachment7 === void 0 ? void 0 : _record$attachment7.url));
},
children: (record === null || record === void 0 || (_record$attachment7 = record.attachment) === null || _record$attachment7 === void 0 ? void 0 : _record$attachment7.title) || "--"
children: (record === null || record === void 0 || (_record$attachment8 = record.attachment) === null || _record$attachment8 === void 0 ? void 0 : _record$attachment8.title) || "--"
});
}
}, {
@ -16931,17 +16939,17 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
width: 300,
ellipsis: true,
render: function render(text, record) {
var _record$attachment9;
var _record$attachment10;
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061d0',
cursor: 'pointer'
},
onClick: function onClick() {
var _record$attachment8;
(0,util/* downLoadFile */.FH)('', "".concat(env/* default */.Z.API_SERVER).concat(record === null || record === void 0 || (_record$attachment8 = record.attachment) === null || _record$attachment8 === void 0 ? void 0 : _record$attachment8.url));
var _record$attachment9;
(0,util/* downLoadFile */.FH)('', "".concat(env/* default */.Z.API_SERVER).concat(record === null || record === void 0 || (_record$attachment9 = record.attachment) === null || _record$attachment9 === void 0 ? void 0 : _record$attachment9.url));
},
children: (record === null || record === void 0 || (_record$attachment9 = record.attachment) === null || _record$attachment9 === void 0 ? void 0 : _record$attachment9.title) || "--"
children: (record === null || record === void 0 || (_record$attachment10 = record.attachment) === null || _record$attachment10 === void 0 ? void 0 : _record$attachment10.title) || "--"
});
}
}, {

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