autoUpdataFile

dev_local_v9_brain_cloud_competitions
eduauto 1 year ago
parent 0abe3c8037
commit c214b3b0da

@ -3540,8 +3540,8 @@ Option.isSelectOption = true;
var useMemo = __webpack_require__(19544);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
var omit = __webpack_require__(55405);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/index.js + 16 modules
var _rc_virtual_list_3_15_0_rc_virtual_list_es = __webpack_require__(39440);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/index.js + 17 modules
var _rc_virtual_list_3_16_0_rc_virtual_list_es = __webpack_require__(55031);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.8.1@rc-select/es/SelectContext.js
@ -3833,7 +3833,7 @@ var OptionList = function OptionList(_, ref) {
width: 0,
overflow: 'hidden'
}
}), renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), /*#__PURE__*/_react_17_0_2_react.createElement(_rc_virtual_list_3_15_0_rc_virtual_list_es/* default */.Z, {
}), renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), /*#__PURE__*/_react_17_0_2_react.createElement(_rc_virtual_list_3_16_0_rc_virtual_list_es/* default */.Z, {
itemKey: "key",
ref: listRef,
data: memoFlattenOptions,

@ -3382,8 +3382,8 @@ ImmutableTable.Column = sugar_Column;
ImmutableTable.ColumnGroup = sugar_ColumnGroup;
ImmutableTable.Summary = FooterComponents;
/* harmony default export */ var es_Table = (ImmutableTable);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/index.js + 16 modules
var _rc_virtual_list_3_15_0_rc_virtual_list_es = __webpack_require__(39440);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/index.js + 17 modules
var _rc_virtual_list_3_16_0_rc_virtual_list_es = __webpack_require__(55031);
;// CONCATENATED MODULE: ./node_modules/_rc-table@7.33.4@rc-table/es/VirtualTable/context.js
var StaticContext = createContext(null);
@ -3794,7 +3794,7 @@ var Grid = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (props, ref) {
var tblPrefixCls = "".concat(prefixCls, "-tbody");
var bodyContent;
if (flattenData.length) {
bodyContent = /*#__PURE__*/_react_17_0_2_react.createElement(_rc_virtual_list_3_15_0_rc_virtual_list_es/* default */.Z, {
bodyContent = /*#__PURE__*/_react_17_0_2_react.createElement(_rc_virtual_list_3_16_0_rc_virtual_list_es/* default */.Z, {
fullHeight: false,
ref: listRef,
className: _classnames_2_5_1_classnames_default()(tblPrefixCls, "".concat(tblPrefixCls, "-virtual")),

@ -1,16 +1,16 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39440],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[55031],{
/***/ 39440:
/***/ 55031:
/*!***************************************************************************************!*\
!*** ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/index.js + 16 modules ***!
!*** ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/index.js + 17 modules ***!
\***************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ _rc_virtual_list_3_15_0_rc_virtual_list_es; }
Z: function() { return /* binding */ _rc_virtual_list_3_16_0_rc_virtual_list_es; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
@ -38,7 +38,7 @@ var useLayoutEffect = __webpack_require__(19171);
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_react-dom@17.0.2@react-dom/index.js
var _react_dom_17_0_2_react_dom = __webpack_require__(4676);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/Filler.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/Filler.js
@ -91,7 +91,7 @@ var Filler = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (_ref, ref) {
});
Filler.displayName = 'Filler';
/* harmony default export */ var es_Filler = (Filler);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/Item.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/Item.js
function Item(_ref) {
var children = _ref.children,
@ -103,7 +103,7 @@ function Item(_ref) {
ref: refFunc
});
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useChildren.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useChildren.js
function useChildren(list, startIndex, endIndex, scrollWidth, offsetX, setNodeRef, renderFunc, _ref) {
@ -125,7 +125,7 @@ function useChildren(list, startIndex, endIndex, scrollWidth, offsetX, setNodeRe
}, node);
});
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/utils/algorithmUtil.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/utils/algorithmUtil.js
/**
* Get index with specific start index one by one. e.g.
* min: 3, max: 9, start: 6
@ -206,7 +206,7 @@ function findListDiffIndex(originList, targetList, getKey) {
multiple: multiple
};
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useDiffItem.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useDiffItem.js
@ -231,11 +231,11 @@ function useDiffItem(data, getKey, onDiff) {
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/raf.js
var raf = __webpack_require__(71783);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/utils/isFirefox.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/utils/isFirefox.js
var isFF = (typeof navigator === "undefined" ? "undefined" : (0,esm_typeof/* default */.Z)(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
/* harmony default export */ var isFirefox = (isFF);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useOriginScroll.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useOriginScroll.js
/* harmony default export */ var useOriginScroll = (function (isScrollAtTop, isScrollAtBottom, isScrollAtLeft, isScrollAtRight) {
// Do lock for a wheel when scrolling
@ -280,7 +280,7 @@ var isFF = (typeof navigator === "undefined" ? "undefined" : (0,esm_typeof/* def
return !lockRef.current && originScroll;
};
});
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useFrameWheel.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useFrameWheel.js
@ -374,7 +374,7 @@ onWheelDelta) {
}
return [onWheel, onFireFoxScroll];
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useGetSize.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useGetSize.js
@ -429,7 +429,7 @@ var findDOMNode = __webpack_require__(10748);
var classCallCheck = __webpack_require__(79545);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(68550);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/utils/CacheMap.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/utils/CacheMap.js
@ -458,7 +458,7 @@ var CacheMap = /*#__PURE__*/function () {
return CacheMap;
}();
/* harmony default export */ var utils_CacheMap = (CacheMap);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useHeights.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useHeights.js
@ -535,7 +535,7 @@ function useHeights(getKey, onItemAdd, onItemRemove) {
}, []);
return [setInstanceRef, collectHeight, heightsRef.current, updatedMark];
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useMobileTouchMove.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useMobileTouchMove.js
var SMOOTH_PTG = 14 / 15;
@ -623,7 +623,77 @@ function useMobileTouchMove(inVirtual, listRef, callback) {
};
}, [inVirtual]);
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/hooks/useScrollTo.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useScrollDrag.js
function smoothScrollOffset(offset) {
return Math.floor(Math.pow(offset, 0.5));
}
function getPageXY(e, horizontal) {
var obj = 'touches' in e ? e.touches[0] : e;
return obj[horizontal ? 'pageX' : 'pageY'];
}
function useScrollDrag(inVirtual, componentRef, onScrollOffset) {
_react_17_0_2_react.useEffect(function () {
var ele = componentRef.current;
if (inVirtual && ele) {
var mouseDownLock = false;
var rafId;
var _offset;
var stopScroll = function stopScroll() {
raf/* default */.Z.cancel(rafId);
};
var continueScroll = function continueScroll() {
stopScroll();
rafId = (0,raf/* default */.Z)(function () {
onScrollOffset(_offset);
continueScroll();
});
};
var onMouseDown = function onMouseDown(e) {
// Skip if nest List has handled this event
var event = e;
if (!event._virtualHandled) {
event._virtualHandled = true;
mouseDownLock = true;
}
};
var onMouseUp = function onMouseUp() {
mouseDownLock = false;
stopScroll();
};
var onMouseMove = function onMouseMove(e) {
if (mouseDownLock) {
var mouseY = getPageXY(e, false);
var _ele$getBoundingClien = ele.getBoundingClientRect(),
top = _ele$getBoundingClien.top,
bottom = _ele$getBoundingClien.bottom;
if (mouseY <= top) {
var diff = top - mouseY;
_offset = -smoothScrollOffset(diff);
continueScroll();
} else if (mouseY >= bottom) {
var _diff = mouseY - bottom;
_offset = smoothScrollOffset(_diff);
continueScroll();
} else {
stopScroll();
}
}
};
ele.addEventListener('mousedown', onMouseDown);
ele.ownerDocument.addEventListener('mouseup', onMouseUp);
ele.ownerDocument.addEventListener('mousemove', onMouseMove);
return function () {
ele.removeEventListener('mousedown', onMouseDown);
ele.ownerDocument.removeEventListener('mouseup', onMouseUp);
ele.ownerDocument.removeEventListener('mousemove', onMouseMove);
stopScroll();
};
}
}, [inVirtual]);
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/hooks/useScrollTo.js
@ -765,17 +835,14 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
}
};
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/ScrollBar.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/ScrollBar.js
function getPageXY(e, horizontal) {
var obj = 'touches' in e ? e.touches[0] : e;
return obj[horizontal ? 'pageX' : 'pageY'];
}
var ScrollBar = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (props, ref) {
var prefixCls = props.prefixCls,
rtl = props.rtl,
@ -1018,7 +1085,7 @@ var ScrollBar = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (props, ref
});
if (false) {}
/* harmony default export */ var es_ScrollBar = (ScrollBar);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/utils/scrollbarUtil.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/utils/scrollbarUtil.js
var MIN_SIZE = 20;
function getSpinSize() {
var containerSize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@ -1030,7 +1097,7 @@ function getSpinSize() {
baseSize = Math.max(baseSize, MIN_SIZE);
return Math.floor(baseSize);
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/List.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/List.js
@ -1056,6 +1123,7 @@ var _excluded = ["prefixCls", "className", "height", "itemHeight", "fullHeight",
var EMPTY_DATA = [];
var ScrollStyle = {
overflowY: 'auto',
@ -1375,6 +1443,13 @@ function RawList(props, ref) {
}
return false;
});
// MouseDown drag for scroll
useScrollDrag(inVirtual, componentRef, function (offset) {
syncScrollTop(function (top) {
return top + offset;
});
});
(0,useLayoutEffect/* default */.Z)(function () {
// Firefox only
function onMozMousePixelScroll(e) {
@ -1542,9 +1617,9 @@ function RawList(props, ref) {
var List = /*#__PURE__*/_react_17_0_2_react.forwardRef(RawList);
List.displayName = 'List';
/* harmony default export */ var es_List = (List);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/index.js
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/index.js
/* harmony default export */ var _rc_virtual_list_3_15_0_rc_virtual_list_es = (es_List);
/* harmony default export */ var _rc_virtual_list_3_16_0_rc_virtual_list_es = (es_List);
/***/ })

@ -1354,8 +1354,8 @@ var slicedToArray = __webpack_require__(29043);
var objectWithoutProperties = __webpack_require__(19149);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/hooks/useLayoutEffect.js
var useLayoutEffect = __webpack_require__(19171);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/index.js + 16 modules
var es = __webpack_require__(39440);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/index.js + 17 modules
var es = __webpack_require__(55031);
// EXTERNAL MODULE: ./node_modules/_rc-motion@2.9.3@rc-motion/es/index.js + 13 modules
var _rc_motion_2_9_3_rc_motion_es = __webpack_require__(43167);
// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/TreeNode.js + 1 modules

@ -23259,7 +23259,7 @@ var $defineProperty = __webpack_require__(/*! es-define-property */ 31989);
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ 35041);
var $TypeError = __webpack_require__(/*! es-errors/type */ 61054);
var gopd = __webpack_require__(/*! gopd */ 37211);
var gopd = __webpack_require__(/*! gopd */ 46834);
/** @type {import('.')} */
module.exports = function defineDataProperty(
@ -24310,19 +24310,32 @@ module.exports = function GetIntrinsic(name, allowMissing) {
/***/ }),
/***/ 37211:
/***/ 96510:
/*!***********************************************!*\
!*** ./node_modules/_gopd@1.2.0@gopd/gOPD.js ***!
\***********************************************/
/***/ (function(module) {
"use strict";
/** @type {import('./gOPD')} */
module.exports = Object.getOwnPropertyDescriptor;
/***/ }),
/***/ 46834:
/*!************************************************!*\
!*** ./node_modules/_gopd@1.1.0@gopd/index.js ***!
!*** ./node_modules/_gopd@1.2.0@gopd/index.js ***!
\************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
"use strict";
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 3091);
/** @type {import('.')} */
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
var $gOPD = __webpack_require__(/*! ./gOPD */ 96510);
if ($gOPD) {
try {
@ -27735,7 +27748,7 @@ module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 3091);
var define = __webpack_require__(/*! define-data-property */ 67494);
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ 3192)();
var gOPD = __webpack_require__(/*! gopd */ 37211);
var gOPD = __webpack_require__(/*! gopd */ 46834);
var $TypeError = __webpack_require__(/*! es-errors/type */ 61054);
var $floor = GetIntrinsic('%Math.floor%');
@ -30395,7 +30408,7 @@ var forEach = __webpack_require__(/*! for-each */ 12875);
var availableTypedArrays = __webpack_require__(/*! available-typed-arrays */ 75791);
var callBind = __webpack_require__(/*! call-bind */ 16617);
var callBound = __webpack_require__(/*! call-bind/callBound */ 23148);
var gOPD = __webpack_require__(/*! gopd */ 37211);
var gOPD = __webpack_require__(/*! gopd */ 46834);
/** @type {(O: object) => string} */
var $toString = callBound('Object.prototype.toString');

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

@ -757,8 +757,8 @@ var AchievementList = function AchievementList(_ref) {
/* harmony default export */ var LearningAnalysis_AchievementList = (AchievementList);
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
var lodash = __webpack_require__(89392);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.15.0@rc-virtual-list/es/index.js + 16 modules
var es = __webpack_require__(39440);
// EXTERNAL MODULE: ./node_modules/_rc-virtual-list@3.16.0@rc-virtual-list/es/index.js + 17 modules
var es = __webpack_require__(55031);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/components/LearningAnalysis/index.tsx

@ -15879,7 +15879,8 @@ var Playerwork = function Playerwork(_ref) {
per_page: 20,
competition_id: identifier,
section_id: null,
keyword: null
keyword: null,
category: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category
}),
_useState2 = slicedToArray_default()(_useState, 2),
urlData = _useState2[0],
@ -16048,7 +16049,7 @@ var Playerwork = function Playerwork(_ref) {
centered: true,
okText: '确定',
icon: null,
cancelText: '取消',
cancelText: (_render2 === null || _render2 === void 0 ? void 0 : _render2.result_code) === 2 && (urlData === null || urlData === void 0 ? void 0 : urlData.category) === 'server' ? '下载运行日志' : '取消',
title: '运行结果',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
@ -16062,7 +16063,29 @@ var Playerwork = function Playerwork(_ref) {
onOk: function onOk() {
return modalDiv.destroy();
},
onCancel: function onCancel() {
onCancel: (_render2 === null || _render2 === void 0 ? void 0 : _render2.result_code) === 2 && (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: {
record_id: _render2.id,
section_id: urlData === null || urlData === void 0 ? void 0 : urlData.section_id,
competition_id: identifier
}
});
case 2:
res = _context.sent;
modalDiv.destroy();
case 4:
case "end":
return _context.stop();
}
}, _callee);
})) : function () {
return modalDiv.destroy();
}
});
@ -16075,12 +16098,12 @@ var Playerwork = function Playerwork(_ref) {
style: {
padding: 0
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context.next = 2;
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_commit_records/").concat(_render2.id, "/retest.json"), {
method: 'post',
body: objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
@ -16088,15 +16111,15 @@ var Playerwork = function Playerwork(_ref) {
})
});
case 2:
res = _context.sent;
res = _context2.sent;
if (res.status == 0) {
getData();
}
case 4:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
})),
children: "\u91CD\u6D4B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
@ -16118,12 +16141,12 @@ var Playerwork = function Playerwork(_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 _callee3() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context2.next = 2;
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_commit_records/").concat(_render2.id, "/cancel.json"), {
method: 'post',
body: objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
@ -16131,15 +16154,15 @@ var Playerwork = function Playerwork(_ref) {
})
});
case 2:
res = _context2.sent;
res = _context3.sent;
if (res.status == 0) {
getData();
}
case 4:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -16170,9 +16193,9 @@ var Playerwork = function Playerwork(_ref) {
});
console.log("Columns---", Columns);
var getData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
dispatch({
type: "competitions/getMemberWorks",
@ -16182,17 +16205,18 @@ var Playerwork = function Playerwork(_ref) {
});
case 1:
case "end":
return _context3.stop();
return _context4.stop();
}
}, _callee3);
}, _callee4);
}));
return function getData() {
return _ref3.apply(this, arguments);
return _ref4.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id,
category: urlData === null || urlData === void 0 ? void 0 : urlData.category
}));
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
@ -16228,7 +16252,8 @@ var Playerwork = function Playerwork(_ref) {
onClick: function onClick() {
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
page: 1,
section_id: item.id
section_id: item.id,
category: item === null || item === void 0 ? void 0 : item.category
}));
},
children: item.name
@ -16263,12 +16288,12 @@ var Playerwork = function Playerwork(_ref) {
color: "#fff",
border: 'none'
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_context4.next = 2;
_context5.next = 2;
return (0,fetch/* default */.ZP)("/api/competition_duplicate_checks/get_stage_sections.json", {
method: 'get',
params: {
@ -16276,16 +16301,16 @@ var Playerwork = function Playerwork(_ref) {
}
});
case 2:
res = _context4.sent;
res = _context5.sent;
if (res.status == 0) {
setShowCheck(true);
setCheckInfo(res === null || res === void 0 ? void 0 : res.data);
}
case 4:
case "end":
return _context4.stop();
return _context5.stop();
}
}, _callee4);
}, _callee5);
})),
children: "\u4F5C\u54C1\u67E5\u91CD"
})
@ -16295,19 +16320,19 @@ var Playerwork = function Playerwork(_ref) {
type: "default",
size: "large",
className: "ml20",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
_context5.next = 2;
_context6.next = 2;
return (0,utils_export/* getmember_works */.KM)(objectSpread2_default()({
identifier: identifier
}, urlData));
case 2:
case "end":
return _context5.stop();
return _context6.stop();
}
}, _callee5);
}, _callee6);
})),
children: "\u5BFC\u51FA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
@ -16377,12 +16402,12 @@ var Playerwork = function Playerwork(_ref) {
onCancel: function onCancel() {
setShowCheck(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var res, _competitions$competi;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
_context6.next = 2;
_context7.next = 2;
return (0,fetch/* default */.ZP)("/api/competition_duplicate_checks.json", {
method: 'post',
body: {
@ -16390,16 +16415,16 @@ var Playerwork = function Playerwork(_ref) {
}
});
case 2:
res = _context6.sent;
res = _context7.sent;
if (!(res.status == 0)) {
_context6.next = 10;
_context7.next = 10;
break;
}
if (competitions !== null && competitions !== void 0 && (_competitions$competi = competitions.competition) !== null && _competitions$competi !== void 0 && _competitions$competi.have_duplicate_checks) {
_context6.next = 7;
_context7.next = 7;
break;
}
_context6.next = 7;
_context7.next = 7;
return dispatch({
type: "competitions/common_header",
payload: identifier
@ -16412,9 +16437,9 @@ var Playerwork = function Playerwork(_ref) {
});
case 10:
case "end":
return _context6.stop();
return _context7.stop();
}
}, _callee6);
}, _callee7);
})),
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Playerworkmodules.yulan,
@ -16447,11 +16472,11 @@ var Playerwork = function Playerwork(_ref) {
})]
});
};
/* harmony default export */ var Edit_Playerwork = ((0,_umi_production_exports.connect)(function (_ref7) {
var competitions = _ref7.competitions,
loading = _ref7.loading,
globalSetting = _ref7.globalSetting,
user = _ref7.user;
/* harmony default export */ var Edit_Playerwork = ((0,_umi_production_exports.connect)(function (_ref8) {
var competitions = _ref8.competitions,
loading = _ref8.loading,
globalSetting = _ref8.globalSetting,
user = _ref8.user;
return {
competitions: competitions,
globalSetting: globalSetting,

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