|
|
|
|
@ -13772,6 +13772,7 @@ var MirrorModal_DataSetModal = function DataSetModal(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Entrance = function Entrance(_ref) {
|
|
|
|
|
@ -13935,7 +13936,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
var _render$attachments, _render$attachments2, _render$attachments3, _render$attachments4, _render$attachments5, _render$attachments6, _render$attachments7;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: _render !== null && _render !== void 0 && (_render$attachments = _render.attachments) !== null && _render$attachments !== void 0 && (_render$attachments = _render$attachments[0]) !== null && _render$attachments !== void 0 && _render$attachments.yd_deleted ? '根据竞赛组织方的要求,选手的评测文件将只保留最新两次提交的内容。' : _render === null || _render === void 0 || (_render$attachments2 = _render.attachments) === null || _render$attachments2 === void 0 || (_render$attachments2 = _render$attachments2[0]) === null || _render$attachments2 === void 0 ? void 0 : _render$attachments2.title,
|
|
|
|
|
title: _render !== null && _render !== void 0 && (_render$attachments = _render.attachments) !== null && _render$attachments !== void 0 && (_render$attachments = _render$attachments[0]) !== null && _render$attachments !== void 0 && _render$attachments.yd_deleted ? '根据竞赛组织方的要求,选手的评测文件将只保留最新提交的内容。' : _render === null || _render === void 0 || (_render$attachments2 = _render.attachments) === null || _render$attachments2 === void 0 || (_render$attachments2 = _render$attachments2[0]) === null || _render$attachments2 === void 0 ? void 0 : _render$attachments2.title,
|
|
|
|
|
children: _render !== null && _render !== void 0 && (_render$attachments3 = _render.attachments) !== null && _render$attachments3 !== void 0 && (_render$attachments3 = _render$attachments3[0]) !== null && _render$attachments3 !== void 0 && _render$attachments3.yd_deleted ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "link",
|
|
|
|
|
disabled: true,
|
|
|
|
|
@ -13982,23 +13983,19 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
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() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_commit_records/").concat(_render2.id, "/download_log.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
(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
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
}));
|
|
|
|
|
modalDiv.destroy();
|
|
|
|
|
case 4:
|
|
|
|
|
case 2:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -15887,6 +15884,7 @@ var Playerwork_excluded = ["competitions", "globalSetting", "loading", "dispatch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
var _MemberWorks$data, _MemberWorks$data2, _MemberWorks$data3, _MemberWorks$data4, _MemberWorks$data5, _MemberWorks$data6;
|
|
|
|
|
var competitions = _ref.competitions,
|
|
|
|
|
@ -16032,7 +16030,7 @@ var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
var _render$attachments, _render$attachments2, _render$attachments3, _render$attachments4, _render$attachments5, _render$attachments6, _render$attachments7;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "topLeft",
|
|
|
|
|
title: _render !== null && _render !== void 0 && (_render$attachments = _render.attachments) !== null && _render$attachments !== void 0 && (_render$attachments = _render$attachments[0]) !== null && _render$attachments !== void 0 && _render$attachments.yd_deleted ? '根据竞赛组织方的要求,选手的评测文件将只保留最新两次提交的内容。' : _render === null || _render === void 0 || (_render$attachments2 = _render.attachments) === null || _render$attachments2 === void 0 || (_render$attachments2 = _render$attachments2[0]) === null || _render$attachments2 === void 0 ? void 0 : _render$attachments2.title,
|
|
|
|
|
title: _render !== null && _render !== void 0 && (_render$attachments = _render.attachments) !== null && _render$attachments !== void 0 && (_render$attachments = _render$attachments[0]) !== null && _render$attachments !== void 0 && _render$attachments.yd_deleted ? '根据竞赛组织方的要求,选手的评测文件将只保留最新提交的内容。' : _render === null || _render === void 0 || (_render$attachments2 = _render.attachments) === null || _render$attachments2 === void 0 || (_render$attachments2 = _render$attachments2[0]) === null || _render$attachments2 === void 0 ? void 0 : _render$attachments2.title,
|
|
|
|
|
children: _render !== null && _render !== void 0 && (_render$attachments3 = _render.attachments) !== null && _render$attachments3 !== void 0 && (_render$attachments3 = _render$attachments3[0]) !== null && _render$attachments3 !== void 0 && _render$attachments3.yd_deleted ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "link",
|
|
|
|
|
disabled: true,
|
|
|
|
|
@ -16092,23 +16090,27 @@ var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
return modalDiv.destroy();
|
|
|
|
|
},
|
|
|
|
|
onCancel: (_render2 === null || _render2 === void 0 ? void 0 : _render2.result_code) === 1 && (urlData === null || urlData === void 0 ? void 0 : urlData.category) === 'server' ? /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_commit_records/").concat(_render2.id, "/download_log.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
(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: urlData === null || urlData === void 0 ? void 0 : urlData.section_id,
|
|
|
|
|
competition_id: identifier
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
}));
|
|
|
|
|
// const res = await Fetch(`/api/competitions/${identifier}/competition_commit_records/${render.id}/download_log.json`,{
|
|
|
|
|
// method: 'get',
|
|
|
|
|
// params: {
|
|
|
|
|
// record_id: render.id,
|
|
|
|
|
// section_id: urlData?.section_id,
|
|
|
|
|
// competition_id:identifier
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
modalDiv.destroy();
|
|
|
|
|
case 4:
|
|
|
|
|
case 2:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|