autoUpdataFile

dev_local_v9_xingongda
eduauto 2 years ago
parent 8657afa134
commit c58125388a

@ -1943,7 +1943,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

File diff suppressed because it is too large Load Diff

@ -1493,7 +1493,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1368,7 +1368,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -834,7 +834,10 @@ input_Input.Password = input_Password;
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -589,7 +589,10 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -356,7 +356,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1026,7 +1026,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -598,7 +598,10 @@ input_Input.Password = input_Password;
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1151,7 +1151,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -4605,7 +4605,10 @@ const getRenderPropValue = propValue => {
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

File diff suppressed because it is too large Load Diff

@ -2895,7 +2895,10 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -920,7 +920,10 @@ input_Input.Password = input_Password;
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1086,7 +1086,10 @@ input_Input.Password = input_Password;
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -459,7 +459,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -2155,7 +2155,10 @@ const getRenderPropValue = propValue => {
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1001,7 +1001,10 @@ input_Input.Password = input_Password;
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -3054,6 +3054,7 @@ var skeleton = __webpack_require__(59981);
var react_beautiful_dnd_esm = __webpack_require__(47927);
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/index.d.ts
var SubmenuIcons = {
"course_schedule": "iconfont icon-ketangkebiao",
"shixun_homework": 'iconfont icon-shixunzuoye1',
"graduation": 'iconfont icon-biyezhuanhuan',
"exercise": 'iconfont font17 icon-kaoshishijuan1',
@ -3488,7 +3489,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
// if(detailTopBanner.excellent && (text == 'board' || text === 'attachment') ){
// return false
// }
if (text === "attendance" || text === 'announcement' || text === "poll" || text === 'graduation' || text === 'course_group' || text === 'new_graduation') {
if (text === "attendance" || text === 'announcement' || text === "poll" || text === 'graduation' || text === 'course_group' || text === 'new_graduation' || text === 'course_schedule') {
return false;
} else {
return true;
@ -6340,7 +6341,10 @@ if (false) {}
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1027,7 +1027,10 @@ const getRenderPropValue = propValue => {
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -0,0 +1,876 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[4222],{
/***/ 31917:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__.Z = (noData);
/***/ }),
/***/ 65729:
/*!************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/ClassSchedule/index.tsx + 5 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Lists_ClassSchedule; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(10574);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(26801);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(11006);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/createForOfIteratorHelper.js
var createForOfIteratorHelper = __webpack_require__(98190);
var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ClassSchedule/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ClassSchedulemodules = ({"classScheduleWrapper":"classScheduleWrapper___zK4GR","header":"header___niMQm","classScheduleIcon":"classScheduleIcon___DyLft","title":"title___XeHJn","weekChanger":"weekChanger___gByUn","weeksWrapper":"weeksWrapper___JqPoK","week":"week___c0ThN","uploadBtn":"uploadBtn___niqVV","tableWrapper":"tableWrapper___zGWB0","blueCell":"blueCell___TK1k_","importTemplate":"importTemplate___U0zq1"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(72315);
;// CONCATENATED MODULE: ./src/assets/images/classrooms/upload.png
var upload_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAAXNSR0IArs4c6QAAAMNQTFRFAAAAVar/JG3/IGD/Gmb/Kmr/IGD/F2j/FmT/HF7/G2T/GV3/GWP/GGD/HGD/F2D/GmH/GF7/F2H/GV//GV3/GF//FmD/Fl7/F2D/GF//F17/Fl3/F1//F17/F13/F1//Fl7/Fl7/F17/F17/Fl7/F17/F13/F17/F17/F13/F17/F17/F17/F17/Fl3/F17/F13/Fl3/Fl3/F13/F17/Fl7/F13/F17/F13/F13/Fl7/F17/Fl7/Fl3/Fl3/Fl7/Fl3/3ZclpQAAAEB0Uk5TAAMHCAoMEBYXGxweHyAlLTpBQkZHS1BRWF5kaG5vcHFyf5KToKOnqbC6u8fJy9DR1djb3eHn6err7vL4+vv8/WpW2McAAACaSURBVCjPzc9HFoJQEETRxpyzGFAxB8wZFaT2vyrBIx+Edu4b1p10E3kNS8Sm4pzm9roFrCLhvXiH3Ti0p06YYL1HN7BHl5hnoRVuZvkbptjGM9CoYup5/z7AJUcOkIJNzNubeNgvvIFGmIld2qFFLkgLyEKSCgmgRCd48QfcGlUOajI9DxwcjX8Bfw5c20y6DWAzSO2z9ehXL7C6I43oPzjHAAAAAElFTkSuQmCC";
;// CONCATENATED MODULE: ./src/assets/images/classrooms/class-schedule.png
var class_schedule_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAMAAACBKikvAAAAAXNSR0IArs4c6QAAAbBQTFRFAAAA/39//7+//7+f/4lO/8Gb/7+X9ItT/7uX/72Z7ohM/7uZ/7uW/72W/72X8YJR/7yW/7yX/7yW/7yX8oBL8YBL/7uW/7yX/7yW8H1I/7uW8H1I8X1I/7yX/7uX8XtF/7yX/7yX8nlE/baQ83pE/7uX9XlB/rqT/7yW9XhB9XdB/7uW9ndB7nZA9ndA9ndA9ndB6XY/93dB+YpX+o5c93hC+XdC+XhB+5xv/KBz+3hC/HdC/XlD/nlD/npEz1oaz1ob0Fsb0V0f02Ai1GIl1WYp12kt2W0y4GUq4H1F5mov5odT6Gsy6Wsx65Ji7G018Jxv9HQ89aV596l/+HY++a2E+rCI/LSN/3pF/3tG/3xH/3xI/31J/35K/39M/4BN/4FN/4FO/4NQ/4NR/4RR/4RS/4VS/4hV/4hX/4lY/4ta/4tb/41b/41c/41d/45e/45f/49f/49g/5Bg/5hr/5pt/5tv/5xw/51w/6B0/6F1/6F3/6J3/6N4/6R6/6V7/6d9/6h//6uC/6uD/6yD/62E/66G/6+H/7GJ/7GK/7eQ/7eR/7iS/7mT/7mU/7uWXxFHgAAAAD90Uk5TAAQECA0pLC4xMjw8RElRWIGJjZWZo6q2u8DDxs7Y2tvc5OXl5unz8/P2+Pj5+vr7+/z8/Pz9/f39/f7+/v7+uO9PswAAAWVJREFUOMvdlFVTw0AUhbe4u7sWt0Jxd3dJgUKLtbhT3L2U85dpkm23M2xThhdm+F5yz+TbZO7JTAhhBGYkeLHknZTqS/hEAcEshQIRbsRoIISlMCDyt2JsTqlGpA6o1DipAmqloTgrRtKCCgTKGbAhONkHTh2z2p8QVZngWRQKCUkR3Ih7gIWlRKJ1fYZ1nqUFG7ZYKidNLAhLepcg6I0uoYEIP6Pxv4prd0+70jC3SjHyxRfg0yAesMLBJVf8sN8x2a8HTg+vXPEEuNeJbz66plyY+cuYNnV/VM/K7cOOXM8yxcAXnwHbonjg3bn1uWI9h6yeN65oAR7FtWePbyhX6/xlzNvf6hnr75WpUN56qIXSl6coTrZSbwD5iuKIrLUNw4M4KHntoxDFZk9ixzgkscaD2DkBWUxXFrum5OpziY9WSeyept8onpBwjXuxZ4Z6RQH2H6QqWV1dz6UkO1MiLc6PfAEryd/b30M/FgAAAABJRU5ErkJggg==";
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(71633);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(31917);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/typography/index.js + 18 modules
var typography = __webpack_require__(53877);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
var upload = __webpack_require__(6557);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(4781);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(26078);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ClassSchedule/UploadSchedule.tsx
var Text = typography/* default */.Z.Text;
var UploadSchdule = function UploadSchdule(_ref) {
var modalVisible = _ref.modalVisible,
setModalVisible = _ref.setModalVisible,
getData = _ref.getData,
courseId = _ref.courseId,
setErrorData = _ref.setErrorData,
setResModalVisible = _ref.setResModalVisible;
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
fileList = _useState2[0],
setFileList = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(''),
_useState4 = slicedToArray_default()(_useState3, 2),
startTime = _useState4[0],
setStartTime = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
okBtnLoading = _useState6[0],
setOkBtnLoading = _useState6[1];
var reset = function reset() {
setFileList([]);
setStartTime('');
};
var handleOk = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var formData, res, downloadDate;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
formData = new FormData();
formData.append('file', fileList[0]);
// formData.append('start_time', startTime);
// if (!startTime.length) {
// message.warn('请输入本学期开始时间');
// return;
// }
if (!((fileList === null || fileList === void 0 ? void 0 : fileList.length) === 0)) {
_context.next = 5;
break;
}
message/* default */.ZP.info('请上传文件');
return _context.abrupt("return");
case 5:
setOkBtnLoading(true);
_context.next = 8;
return (0,fetch/* default */.ZP)("/api/courses/".concat(courseId, "/course_schedules.json"), {
method: 'post',
params: {
course_id: courseId
},
body: formData
}, true);
case 8:
res = _context.sent;
// uploadCourseList(formData);
setOkBtnLoading(false);
if (res.status === 0) {
message/* default */.ZP.success("上传成功!");
downloadDate = {
total: (res === null || res === void 0 ? void 0 : res.count) || 0,
success_count: (res === null || res === void 0 ? void 0 : res.success_count) || 0,
error_count: (res === null || res === void 0 ? void 0 : res.error_count) || 0,
error_list: (res === null || res === void 0 ? void 0 : res.error_list) || []
};
setErrorData(downloadDate);
setResModalVisible(true);
getData();
setModalVisible(false);
reset();
}
case 11:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleOk() {
return _ref2.apply(this, arguments);
};
}();
var uploadProps = {
accept: '.xlsx',
fileList: fileList,
beforeUpload: function beforeUpload(file) {
setFileList([file]);
return false;
},
onRemove: function onRemove(file) {
setFileList([]);
}
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
centered: true,
title: "\u4E0A\u4F20\u8BFE\u8868",
okText: "\u786E\u8BA4\u4E0A\u4F20",
cancelText: "\u53D6\u6D88",
visible: modalVisible,
onOk: handleOk,
confirmLoading: okBtnLoading,
onCancel: function onCancel() {
reset();
setModalVisible(false);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
style: {
marginBottom: 12
},
children: "\u9009\u62E9\u6587\u4EF6"
})
})), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: ["1\u3001\u4EC5\u652F\u6301\u6309\u7167\u6307\u5B9A\u683C\u5F0F\u4E0A\u4F20\u8BFE\u8868\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: ClassSchedulemodules.importTemplate,
href: env/* default */.Z.API_SERVER + "/api/courses/".concat(courseId, "/course_schedules/download_course_schedoule.json"),
children: "\u8BFE\u8868\u6A21\u7248"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: ["2\u3001\u4E0A\u4F20\u91CD\u590D\u65F6\u95F4\u7684\u8BFE\u8868\u6570\u636E\uFF0C\u5C06\u8986\u76D6\u5F53\u524D\u8BFE\u8868\u4E2D\u7684\u6570\u636E\uFF0C", /*#__PURE__*/(0,jsx_runtime.jsx)(Text, {
type: "danger",
children: "\u8BF7\u52A1\u5FC5\u8C28\u614E\u64CD\u4F5C\u3002"
})]
})]
});
};
/* harmony default export */ var UploadSchedule = (UploadSchdule);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/defineProperty.js
var defineProperty = __webpack_require__(22060);
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
// EXTERNAL MODULE: ./node_modules/_xlsx@0.18.5@xlsx/xlsx.mjs
var xlsx = __webpack_require__(60015);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ClassSchedule/DownloadSchedule.tsx
var DownloadSchedule_Text = typography/* default */.Z.Text;
var transJSONToExcel = {
name: '课程名称',
date: '日期',
section: '节次'
};
var DownloadSchdule = function DownloadSchdule(_ref) {
var modalVisible = _ref.modalVisible,
setModalVisible = _ref.setModalVisible,
getData = _ref.getData,
downloadCount = _ref.downloadCount;
// const [fileList, setFileList] = useState<UploadFile[]>([]);
// const [startTime, setStartTime] = useState('');
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
okBtnLoading = _useState2[0],
setOkBtnLoading = _useState2[1];
var handleOk = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _downloadCount$error_;
var excelData, xlsxObj;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setModalVisible(false);
excelData = downloadCount === null || downloadCount === void 0 || (_downloadCount$error_ = downloadCount.error_list) === null || _downloadCount$error_ === void 0 ? void 0 : _downloadCount$error_.map(function (item) {
var tempItem = [];
Object.keys(item).forEach(function (jtem) {
tempItem[transJSONToExcel[jtem]] = item[jtem];
});
return tempItem;
});
xlsxObj = {
SheetNames: ['sheet1'],
Sheets: defineProperty_default()({}, 'sheet1', xlsx/* utils */.P6.json_to_sheet(excelData))
};
xlsx/* writeFile */.NC(xlsxObj, '失败数据.xlsx');
// setOkBtnLoading(true);
// const res = await uploadCourseList(formData);
// setOkBtnLoading(false);
// if (res.status === 0) {
// message.success(res.message);
// getData();
// setModalVisible(false);
// reset();
// }
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleOk() {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u4E0A\u4F20\u7ED3\u679C",
okText: "\u4E0B\u8F7D\u5931\u8D25\u6570\u636E",
visible: modalVisible,
onOk: handleOk,
cancelButtonProps: {
style: {
display: "none"
}
},
okButtonProps: {
style: {
display: (downloadCount === null || downloadCount === void 0 ? void 0 : downloadCount.error_count) > 0 ? "inline-block" : "none"
}
},
confirmLoading: okBtnLoading,
onCancel: function onCancel() {
setModalVisible(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u6587\u4EF6\u4E2D\u5171", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: "blue"
},
children: [" ", downloadCount === null || downloadCount === void 0 ? void 0 : downloadCount.total, " "]
}), "\u6761\u6570\u636E\uFF0C\u4E0A\u4F20\u6210\u529F", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: "green"
},
children: [" ", downloadCount === null || downloadCount === void 0 ? void 0 : downloadCount.success_count, " "]
}), "\u6761\uFF0C\u5931\u8D25", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: "red"
},
children: [" ", downloadCount === null || downloadCount === void 0 ? void 0 : downloadCount.error_count, " "]
}), "\u6761"]
})
});
};
/* harmony default export */ var DownloadSchedule = (DownloadSchdule);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(43788);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ClassSchedule/index.tsx
// import ENV from '@/utils/env';
var dataMap = {
'first_section': '1-2节',
"second_section": '3-4节',
"third_section": '5-6节',
"fourth_section": '7-8节',
"fifth_section": '9-10节',
1: 'Monday',
2: 'Tuesday',
3: 'Wednesday',
4: 'Thursday',
5: 'Friday',
6: 'Saturday',
7: 'Sunday'
};
var typeIndexEnum = /*#__PURE__*/function (typeIndexEnum) {
typeIndexEnum[typeIndexEnum["first_section"] = 0] = "first_section";
typeIndexEnum[typeIndexEnum["second_section"] = 1] = "second_section";
typeIndexEnum[typeIndexEnum["third_section"] = 2] = "third_section";
typeIndexEnum[typeIndexEnum["fourth_section"] = 3] = "fourth_section";
typeIndexEnum[typeIndexEnum["fifth_section"] = 4] = "fifth_section";
return typeIndexEnum;
}(typeIndexEnum || {});
var weekEnum = /*#__PURE__*/function (weekEnum) {
weekEnum[weekEnum["Sunday"] = 0] = "Sunday";
weekEnum[weekEnum["Monday"] = 1] = "Monday";
weekEnum[weekEnum["Tuesday"] = 2] = "Tuesday";
weekEnum[weekEnum["Wednesday"] = 3] = "Wednesday";
weekEnum[weekEnum["Thursday"] = 4] = "Thursday";
weekEnum[weekEnum["Friday"] = 5] = "Friday";
weekEnum[weekEnum["Saturday"] = 6] = "Saturday";
return weekEnum;
}(weekEnum || {});
//后端给的和antdTable差别太大。。。
var transformResToTableData = function transformResToTableData(res) {
var base = Array.from({
length: 5
}, function (v, i) {
return {
courseIndex: typeIndexEnum[i],
Monday: [],
Tuesday: [],
Wednesday: [],
Thursday: [],
Friday: [],
Saturday: [],
Sunday: []
};
});
var _iterator = createForOfIteratorHelper_default()(res),
_step;
try {
var _loop = function _loop() {
var courseItem = _step.value;
var week = courseItem.week,
sections = courseItem.sections;
sections.map(function (item, index) {
base[typeIndexEnum[item.type]][week] = item.name;
});
};
for (_iterator.s(); !(_step = _iterator.n()).done;) {
_loop();
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return base;
};
var ClassSchedule = function ClassSchedule() {
var _currentDate$date, _currentDate$date2;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
upLoadModalVisible = _useState2[0],
setUpLoadModalVisible = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
downLoadModalVisible = _useState4[0],
setDownLoadModalVisible = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)([]),
_useState6 = slicedToArray_default()(_useState5, 2),
tableData = _useState6[0],
setTableData = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
tableLoading = _useState8[0],
setTableLoading = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
noDataFlag = _useState10[0],
setNoDataFlag = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)({
date: {
start_time: "".concat(dayjs_min_default()().subtract(new Date().getDay(), 'days').format('YYYY-MM-DD')),
end_time: "".concat(dayjs_min_default()().weekday(6).format('YYYY-MM-DD'))
}
}),
_useState12 = slicedToArray_default()(_useState11, 2),
currentDate = _useState12[0],
setCurrentDate = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(true),
_useState14 = slicedToArray_default()(_useState13, 2),
isOpen = _useState14[0],
setIsOpen = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(objectSpread2_default()({}, (0,_umi_production_exports.useParams)())),
_useState16 = slicedToArray_default()(_useState15, 1),
params = _useState16[0];
params["coursesId"] = params["coursesId"];
var _useState17 = (0,_react_17_0_2_react.useState)({}),
_useState18 = slicedToArray_default()(_useState17, 2),
errData = _useState18[0],
setErrDate = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)([]),
_useState20 = slicedToArray_default()(_useState19, 2),
columnTitle = _useState20[0],
setColumnTitle = _useState20[1];
var columns = [{
title: '',
dataIndex: 'courseIndex',
className: ClassSchedulemodules.blueCell,
align: 'center',
width: '9%',
render: function render(value) {
return dataMap[value];
}
}, {
title: function title() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5468\u65E5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: columnTitle === null || columnTitle === void 0 ? void 0 : columnTitle[0]
})]
});
},
dataIndex: 'Sunday',
align: 'center',
width: '13%',
render: function render(value) {
return value.map(function (courseName, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: courseName
}, index);
});
}
}, {
title: function title() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5468\u4E00"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: columnTitle === null || columnTitle === void 0 ? void 0 : columnTitle[1]
})]
});
},
dataIndex: 'Monday',
align: 'center',
width: '13%',
render: function render(value) {
return value.map(function (courseName, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: courseName
}, index);
});
}
}, {
title: function title() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5468\u4E8C"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: columnTitle === null || columnTitle === void 0 ? void 0 : columnTitle[2]
})]
});
},
dataIndex: 'Tuesday',
align: 'center',
width: '13%',
render: function render(value) {
return value.map(function (courseName, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: courseName
}, index);
});
}
}, {
title: function title() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5468\u4E09"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: columnTitle === null || columnTitle === void 0 ? void 0 : columnTitle[3]
})]
});
},
dataIndex: 'Wednesday',
align: 'center',
width: '13%',
render: function render(value) {
return value.map(function (courseName, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: courseName
}, index);
});
}
}, {
title: function title() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5468\u56DB"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: columnTitle === null || columnTitle === void 0 ? void 0 : columnTitle[4]
})]
});
},
dataIndex: 'Thursday',
align: 'center',
width: '13%',
render: function render(value) {
return value.map(function (courseName, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: courseName
}, index);
});
}
}, {
title: function title() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5468\u4E94"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: columnTitle === null || columnTitle === void 0 ? void 0 : columnTitle[5]
})]
});
},
dataIndex: 'Friday',
align: 'center',
width: '13%',
render: function render(value) {
return value.map(function (courseName, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: courseName
}, index);
});
}
}, {
title: function title() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5468\u516D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: columnTitle === null || columnTitle === void 0 ? void 0 : columnTitle[6]
})]
});
},
dataIndex: 'Saturday',
align: 'center',
width: '13%',
render: function render(value) {
return value.map(function (courseName, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: courseName
}, index);
});
}
}];
var getData = /*#__PURE__*/function () {
var _ref = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(date) {
var weekData, res, _ref2, list, dateColumn;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setTableLoading(true);
weekData = date ? date : {
start_time: currentDate.date.start_time,
end_time: currentDate.date.end_time
};
_context.next = 4;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params.coursesId, "/course_schedules.json"), {
method: 'Get',
params: weekData
});
case 4:
res = _context.sent;
// getCourseSchedules(params);
setTableLoading(false);
if (res.status == 0) {
_ref2 = res || {}, list = _ref2.list;
dateColumn = [];
list === null || list === void 0 || list.map(function (item) {
dateColumn[weekEnum[item.week]] = item === null || item === void 0 ? void 0 : item.name;
});
setColumnTitle(dateColumn);
setTableData(transformResToTableData(list || []));
setNoDataFlag(false);
}
return _context.abrupt("return", res);
case 8:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData(_x) {
return _ref.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getData().then(function (res) {
// if ('status' in res) {
// return;
// }
// if (res?.not_data || !res.week) {
// setNoDataFlag(true);
// }
});
}, []);
var toNextWeek = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var startTime, endTime;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
startTime = dayjs_min_default()(currentDate === null || currentDate === void 0 ? void 0 : currentDate.date.start_time, 'YYYY-MM-DD').add(7, 'days').format('YYYY-MM-DD');
endTime = dayjs_min_default()(currentDate === null || currentDate === void 0 ? void 0 : currentDate.date.end_time, 'YYYY-MM-DD').add(7, 'days').format('YYYY-MM-DD');
setCurrentDate(function (prevDate) {
return {
date: {
start_time: startTime,
end_time: endTime
}
};
});
_context2.next = 5;
return getData({
start_time: startTime,
end_time: endTime
});
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function toNextWeek() {
return _ref3.apply(this, arguments);
};
}();
var toPrevWeek = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var startTime, endTime;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
startTime = dayjs_min_default()(currentDate === null || currentDate === void 0 ? void 0 : currentDate.date.start_time, 'YYYY-MM-DD').subtract(7, 'days').format('YYYY-MM-DD');
endTime = dayjs_min_default()(currentDate === null || currentDate === void 0 ? void 0 : currentDate.date.end_time, 'YYYY-MM-DD').subtract(7, 'days').format('YYYY-MM-DD');
setCurrentDate(function (prevDate) {
return {
date: {
start_time: startTime,
end_time: endTime
}
};
});
_context3.next = 5;
return getData({
start_time: startTime,
end_time: endTime
});
case 5:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function toPrevWeek() {
return _ref4.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ClassSchedulemodules.classScheduleWrapper,
style: {
paddingBottom: "30px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
justify: "space-between",
className: ClassSchedulemodules.header,
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: class_schedule_namespaceObject,
alt: "",
className: ClassSchedulemodules.classScheduleIcon
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: ClassSchedulemodules.title,
children: "\u8BFE\u5802\u65E5\u5386"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
align: "middle",
children: (0,authority/* isAdminOrCreator */.aN)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ClassSchedulemodules.uploadBtn,
onClick: function onClick() {
return setUpLoadModalVisible(true);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: upload_namespaceObject,
alt: ""
}), "\u4E0A\u4F20\u8BFE\u8868"]
})
})
})]
}), !noDataFlag && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ClassSchedulemodules.weekChanger,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: toPrevWeek,
children: "\u4E0A\u4E00\u5468"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ClassSchedulemodules.weeksWrapper,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: ClassSchedulemodules.week,
children: "(".concat(currentDate === null || currentDate === void 0 || (_currentDate$date = currentDate.date) === null || _currentDate$date === void 0 ? void 0 : _currentDate$date.start_time, "\u81F3").concat(currentDate === null || currentDate === void 0 || (_currentDate$date2 = currentDate.date) === null || _currentDate$date2 === void 0 ? void 0 : _currentDate$date2.end_time, ")")
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: toNextWeek,
children: "\u4E0B\u4E00\u5468"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: isOpen ? 'block' : 'none',
transition: '.3s'
},
children: noDataFlag ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
styles: {
height: 100
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
columns: columns,
className: ClassSchedulemodules.tableWrapper,
rowKey: "courseIndex",
bordered: true,
dataSource: tableData,
pagination: false,
loading: tableLoading
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(UploadSchedule, {
modalVisible: upLoadModalVisible,
setModalVisible: setUpLoadModalVisible,
getData: getData,
courseId: params.coursesId,
setErrorData: setErrDate,
setResModalVisible: setDownLoadModalVisible
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadSchedule, {
modalVisible: downLoadModalVisible,
setModalVisible: setDownLoadModalVisible,
getData: getData,
downloadCount: errData
})]
});
};
/* harmony default export */ var Lists_ClassSchedule = (ClassSchedule);
/***/ }),
/***/ 18953:
/*!************************!*\
!*** buffer (ignored) ***!
\************************/
/***/ (function() {
/* (ignored) */
/***/ })
}]);

@ -0,0 +1,88 @@
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/ClassSchedule/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.classScheduleWrapper___zK4GR {
max-width: 1200px;
margin: 0 auto 20px;
background: #ffffff;
box-shadow: 0px 2px 10px 0px #e8f3ff;
border-radius: 8px;
padding: 20px 20px 35px 20px;
}
.classScheduleWrapper___zK4GR .header___niMQm {
margin-bottom: 20px;
}
.classScheduleWrapper___zK4GR .classScheduleIcon___DyLft {
height: 22px;
}
.classScheduleWrapper___zK4GR .title___XeHJn {
font-size: 18px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
-webkit-background-clip: text;
background-clip: text;
margin-left: 4px;
margin-right: 10px;
}
.classScheduleWrapper___zK4GR .weekChanger___gByUn {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.classScheduleWrapper___zK4GR .weekChanger___gByUn div {
cursor: pointer;
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #464f66;
}
.classScheduleWrapper___zK4GR .weekChanger___gByUn .weeksWrapper___JqPoK {
margin: 0 10px;
}
.classScheduleWrapper___zK4GR .weekChanger___gByUn .week___c0ThN {
font-weight: 400;
color: #165dff;
cursor: auto;
}
.classScheduleWrapper___zK4GR .uploadBtn___niqVV {
display: flex;
align-items: center;
background: #e3effc;
border: 1px solid #b5d7ff;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #165dff;
padding: 5px 8px;
cursor: pointer;
}
.classScheduleWrapper___zK4GR .uploadBtn___niqVV img {
height: 12px;
margin-right: 4px;
}
.tableWrapper___zGWB0 thead th {
background-color: #e8f3ff;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #445d98;
}
.tableWrapper___zGWB0 .blueCell___TK1k_ {
background-color: #e8f3ff;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #445d98;
border-bottom: 1px solid #e9e9e9;
}
.tableWrapper___zGWB0 th[class~='ant-table-cell'],
.tableWrapper___zGWB0 td[class~='ant-table-cell'] {
border-right: 1px solid #e9e9e9 !important;
}
.importTemplate___U0zq1 {
display: flex;
align-items: center;
color: #0152d9;
cursor: pointer;
}

@ -2058,7 +2058,10 @@ if (false) {}
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -3812,7 +3812,10 @@ const getRenderPropValue = propValue => {
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -12135,7 +12135,10 @@ const getRenderPropValue = propValue => {
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -3916,9 +3916,9 @@ var DelShixun = function DelShixun(_ref) {
/***/ }),
/***/ 57079:
/***/ 28624:
/*!**********************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/index.tsx + 21 modules ***!
!*** ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/index.tsx + 18 modules ***!
\**********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -10080,279 +10080,6 @@ var Publish = __webpack_require__(6933);
var shixuns = __webpack_require__(25544);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(39090);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/Analysis/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Analysismodules = ({"analysisWrapper":"analysisWrapper___vy_V8","title":"title___tQAzn","tableWrapper":"tableWrapper___ztB9P","firstCol":"firstCol___Itr68","itemWrapper":"itemWrapper___Jaw8O","itemTitle":"itemTitle___gmKyn","count":"count___MUY3o","echarts_list":"echarts_list___RNu3g","echarts_item":"echarts_item___ZHo0B"});
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/Analysis/Config.tsx
var getLearnTimeOptions = function getLearnTimeOptions() {
var seriesData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var legendData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
return {
title: {
left: 'center'
},
tooltip: {
trigger: 'item',
formatter: '{a}{b} : {c} ({d}%)'
},
legend: {
type: 'scroll',
orient: 'vertical',
right: 10,
top: 20,
bottom: 20,
data: legendData
// selected: selected
},
color: ['#FF0000', '#ED8693', '#FFFF00', '#95F204'],
series: [{
name: '',
type: 'pie',
radius: '55%',
center: ['40%', '50%'],
data: seriesData,
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
},
label: {
// color:'#000',
formatter: function formatter(data) {
return "".concat(data.name, " ").concat(data.percent, "%");
}
}
}]
};
};
var getEvaluationTimeOptions = function getEvaluationTimeOptions(_ref) {
var _ref$names = _ref.names,
names = _ref$names === void 0 ? [] : _ref$names,
_ref$values = _ref.values,
values = _ref$values === void 0 ? [] : _ref$values;
return {
color: ['#3398DB'],
tooltip: {
trigger: 'axis',
axisPointer: {
// 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [{
// nameTextStyle: { padding: [5, 0, 0, 0] },
// name: '平均\n评测\n次数',
name: '',
// nameLocation: 'center',
type: 'category',
data: names,
axisTick: {
alignWithLabel: true
},
axisLabel: {
//坐标轴刻度标签的相关设置。
interval: 0,
rotate: "45"
}
}],
yAxis: [{
name: '',
// nameLocation: 'center',
type: 'value',
axisLine: {
show: false
},
axisTick: {
show: false
}
}],
series: [{
name: '人数',
type: 'bar',
barWidth: '20%',
label: {
show: true,
position: 'top'
},
data: values
}]
};
};
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/Analysis/index.tsx
// import BehavioralAnalysis, { dealOncFnc } from '@/components/BehavioralAnalysis'
var caculatePercent = function caculatePercent(total, target) {
var str = "".concat((target / total * 100).toFixed(1));
if (str === '0.0') {
return '0%';
}
return str + '%';
};
var Analysis = function Analysis() {
var _data$compelete_situa, _data$compelete_situa2, _data$compelete_situa3, _data$compelete_situa4, _data$compelete_situa5, _data$compelete_situa6, _data$compelete_situa7, _data$compelete_situa8, _data$compelete_situa9, _data$compelete_situa10, _data$compelete_situa11, _data$compelete_situa12, _data$compelete_situa13, _data$shixun_evaluate;
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var params = (0,_umi_production_exports.useParams)();
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
isLoading = _useState4[0],
setIsLoading = _useState4[1];
var staticsRef = (0,_react_17_0_2_react.useRef)();
var _useState5 = (0,_react_17_0_2_react.useState)({
legendData: ['未开启', '未通关', '迟交通关', '按时通关'],
seriesData: [{
name: '未开启',
value: 0
}, {
name: '未通关',
value: 0
}, {
name: '迟交通关',
value: 0
}, {
name: '按时通关',
value: 0
}]
}),
_useState6 = slicedToArray_default()(_useState5, 2),
pietitle = _useState6[0],
setPietitle = _useState6[1];
var formatEvaluationInfoData = function formatEvaluationInfoData() {
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var names = data.map(function (item) {
return "".concat(item === null || item === void 0 ? void 0 : item.evaluate_count, "\u6B21");
});
var values = data.map(function (item) {
return item.person_num;
});
return {
names: names,
values: values
};
};
var getData = /*#__PURE__*/function () {
var _ref = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _pietitle$seriesData, _ref2, compelete_situation;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setIsLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/homework_commons/".concat(params.categoryId, "/shixun_statistic_analysis.json"), {
method: 'get'
});
case 3:
res = _context.sent;
setIsLoading(false);
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
setData(res === null || res === void 0 ? void 0 : res.data);
_ref2 = (res === null || res === void 0 ? void 0 : res.data) || {}, compelete_situation = _ref2.compelete_situation;
pietitle === null || pietitle === void 0 || (_pietitle$seriesData = pietitle.seriesData) === null || _pietitle$seriesData === void 0 || _pietitle$seriesData.map(function (item) {
switch (item === null || item === void 0 ? void 0 : item.name) {
case '未开启':
item.value = compelete_situation === null || compelete_situation === void 0 ? void 0 : compelete_situation.no_start;
// item.name = item.name + caculatePercent(compelete_situation?.total,compelete_situation?.no_start)
console.log(item.name);
break;
case '未通关':
item.value = compelete_situation === null || compelete_situation === void 0 ? void 0 : compelete_situation.unpassed;
// item.name = item.name + caculatePercent(compelete_situation?.total,compelete_situation?.unpassed)
break;
case '迟交通关':
item.value = compelete_situation === null || compelete_situation === void 0 ? void 0 : compelete_situation.delay_passed;
// item.name = item.name + caculatePercent(compelete_situation?.total,compelete_situation?.delay_passed)
break;
case '按时通关':
item.value = compelete_situation === null || compelete_situation === void 0 ? void 0 : compelete_situation.on_time_passed;
// item.name = item.name + caculatePercent(compelete_situation?.total,compelete_situation?.on_time_passed)
break;
}
});
setPietitle(objectSpread2_default()({}, pietitle));
}
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [params['categoryId']]);
(0,_react_17_0_2_react.useEffect)(function () {
if (staticsRef.current) {
staticsRef.current.getEchartsInstance().setOption(getLearnTimeOptions(pietitle === null || pietitle === void 0 ? void 0 : pietitle.seriesData, pietitle === null || pietitle === void 0 ? void 0 : pietitle.legendData));
}
}, [pietitle]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: isLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Analysismodules.analysisWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(Analysismodules.title, " mb20"),
children: "\u4F5C\u4E1A\u5B8C\u6210\u60C5\u51B5"
}), (data === null || data === void 0 ? void 0 : data.compelete_situation) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mb20",
children: ["\u5E94\u63D0\u4EA4", data === null || data === void 0 || (_data$compelete_situa = data.compelete_situation) === null || _data$compelete_situa === void 0 ? void 0 : _data$compelete_situa.total, "\u4EBA\uFF0C\u6309\u65F6\u901A\u5173", data === null || data === void 0 || (_data$compelete_situa2 = data.compelete_situation) === null || _data$compelete_situa2 === void 0 ? void 0 : _data$compelete_situa2.on_time_passed, "\u4EBA\uFF0C\u5360\u6BD4\uFF08", caculatePercent(data === null || data === void 0 || (_data$compelete_situa3 = data.compelete_situation) === null || _data$compelete_situa3 === void 0 ? void 0 : _data$compelete_situa3.total, data === null || data === void 0 || (_data$compelete_situa4 = data.compelete_situation) === null || _data$compelete_situa4 === void 0 ? void 0 : _data$compelete_situa4.on_time_passed), "\uFF09\uFF1B \u8FDF\u4EA4\u901A\u5173", data === null || data === void 0 || (_data$compelete_situa5 = data.compelete_situation) === null || _data$compelete_situa5 === void 0 ? void 0 : _data$compelete_situa5.delay_passed, "\u4EBA\uFF0C\u5360\u6BD4\uFF08", caculatePercent(data === null || data === void 0 || (_data$compelete_situa6 = data.compelete_situation) === null || _data$compelete_situa6 === void 0 ? void 0 : _data$compelete_situa6.total, data === null || data === void 0 || (_data$compelete_situa7 = data.compelete_situation) === null || _data$compelete_situa7 === void 0 ? void 0 : _data$compelete_situa7.delay_passed), "\uFF09\uFF1B \u672A\u901A\u5173", data === null || data === void 0 || (_data$compelete_situa8 = data.compelete_situation) === null || _data$compelete_situa8 === void 0 ? void 0 : _data$compelete_situa8.unpassed, "\u4EBA\uFF0C\u5360\u6BD4\uFF08", caculatePercent(data === null || data === void 0 || (_data$compelete_situa9 = data.compelete_situation) === null || _data$compelete_situa9 === void 0 ? void 0 : _data$compelete_situa9.total, data === null || data === void 0 || (_data$compelete_situa10 = data.compelete_situation) === null || _data$compelete_situa10 === void 0 ? void 0 : _data$compelete_situa10.unpassed), "\uFF09\uFF1B \u672A\u5F00\u542F", data === null || data === void 0 || (_data$compelete_situa11 = data.compelete_situation) === null || _data$compelete_situa11 === void 0 ? void 0 : _data$compelete_situa11.no_start, "\u4EBA\uFF0C\u5360\u6BD4\uFF08", caculatePercent(data === null || data === void 0 || (_data$compelete_situa12 = data.compelete_situation) === null || _data$compelete_situa12 === void 0 ? void 0 : _data$compelete_situa12.total, data === null || data === void 0 || (_data$compelete_situa13 = data.compelete_situation) === null || _data$compelete_situa13 === void 0 ? void 0 : _data$compelete_situa13.no_start), "\uFF09"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: getLearnTimeOptions(pietitle === null || pietitle === void 0 ? void 0 : pietitle.seriesData, pietitle === null || pietitle === void 0 ? void 0 : pietitle.legendData),
style: {
height: 400,
width: '100%'
},
ref: staticsRef,
lazyUpdate: true,
notMerge: true,
opts: {
renderer: 'svg'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(Analysismodules.title, " mb20"),
children: "\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: getEvaluationTimeOptions(formatEvaluationInfoData((data === null || data === void 0 ? void 0 : data.shixun_evaluate_info) && (data === null || data === void 0 || (_data$shixun_evaluate = data.shixun_evaluate_info) === null || _data$shixun_evaluate === void 0 ? void 0 : _data$shixun_evaluate.shixun_evaluate))),
style: {
height: 400,
width: '100%'
},
opts: {
renderer: 'svg'
}
})]
})
});
};
/* harmony default export */ var components_Analysis = (Analysis);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/index.tsx
@ -10376,7 +10103,6 @@ var Analysis = function Analysis() {
var qualityList = [{
@ -10628,10 +10354,6 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
name: '质量检测',
id: "4",
compontent: /*#__PURE__*/(0,jsx_runtime.jsx)(QualityActivity, {})
}, {
name: '作业统计分析',
id: "5",
compontent: /*#__PURE__*/(0,jsx_runtime.jsx)(components_Analysis, {})
}, {
name: (0,authority/* isAdmin */.GJ)() ? "设置" : "得分规则",
id: "3",
@ -10640,7 +10362,7 @@ var Detail_ShixunsListPage = function ShixunsListPage(_ref) {
}].filter(function (item) {
var _workList$homework_st;
if ((0,authority/* isStudent */.dE)()) {
return item.name !== '代码查重' && item.name !== '作业统计分析';
return item.name !== '代码查重';
} else if ((0,authority/* isStudent */.dE)() || (workList === null || workList === void 0 || (_workList$homework_st = workList.homework_status) === null || _workList$homework_st === void 0 ? void 0 : _workList$homework_st[0]) !== '已截止') {
return item.name !== '质量检测';
} else {

@ -1653,62 +1653,3 @@ div[class~="ant-modal-confirm-content"] {
right: 0;
}
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/Analysis/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.analysisWrapper___vy_V8 {
background-color: #fff;
padding: 30px 30px 100px 30px;
}
.analysisWrapper___vy_V8 .title___tQAzn {
font-size: 16px;
font-weight: 500;
color: #191919;
display: flex;
align-items: center;
}
.analysisWrapper___vy_V8 .title___tQAzn::before {
content: '';
display: inline-block;
width: 6px;
height: 14px;
background: #3061D0;
margin-right: 8px;
}
.analysisWrapper___vy_V8 .tableWrapper___ztB9P thead[class~='ant-table-thead'] th {
font-weight: 400;
background-color: #fff;
}
.analysisWrapper___vy_V8 .tableWrapper___ztB9P thead[class~='ant-table-thead'] th.firstCol___Itr68 {
background: #F6F7F9;
color: #5F6368;
}
.analysisWrapper___vy_V8 .tableWrapper___ztB9P .firstCol___Itr68 {
background: #F6F7F9;
color: #5F6368;
}
.itemWrapper___Jaw8O {
border-radius: 4px;
border: 1px solid #EDEDED;
padding: 16px;
}
.itemWrapper___Jaw8O .itemTitle___gmKyn {
font-size: 14px;
font-weight: 500;
color: #666666;
}
.itemWrapper___Jaw8O .count___MUY3o {
font-size: 14px;
font-weight: 500;
color: #191919;
}
.echarts_list___RNu3g {
display: flex;
justify-content: space-between;
}
.echarts_list___RNu3g .echarts_item___ZHo0B {
width: 23.5%;
border: 2px #f0f0f0 solid;
border-radius: 5px;
}

@ -2522,7 +2522,6 @@ var Statistics_ShixunsListPage = function ShixunsListPage(_ref) {
})) && {
title: detailLeftMenusNames === null || detailLeftMenusNames === void 0 ? void 0 : detailLeftMenusNames.shixun_homework,
dataIndex: 'practice_score',
sorter: true,
align: 'center',
ellipsis: true,
width: 80
@ -2533,7 +2532,6 @@ var Statistics_ShixunsListPage = function ShixunsListPage(_ref) {
})) && {
title: detailLeftMenusNames === null || detailLeftMenusNames === void 0 ? void 0 : detailLeftMenusNames.program_homework,
dataIndex: 'hack_score',
sorter: true,
align: 'center',
ellipsis: true,
width: 80
@ -2542,7 +2540,6 @@ var Statistics_ShixunsListPage = function ShixunsListPage(_ref) {
})) && {
title: detailLeftMenusNames === null || detailLeftMenusNames === void 0 ? void 0 : detailLeftMenusNames.common_homework,
dataIndex: 'common_score',
sorter: true,
align: 'center',
ellipsis: true,
width: 80
@ -2551,7 +2548,6 @@ var Statistics_ShixunsListPage = function ShixunsListPage(_ref) {
})) && {
title: detailLeftMenusNames === null || detailLeftMenusNames === void 0 ? void 0 : detailLeftMenusNames.online_learning,
dataIndex: 'shixun_score',
sorter: true,
align: 'center',
ellipsis: true,
width: 80
@ -2560,7 +2556,6 @@ var Statistics_ShixunsListPage = function ShixunsListPage(_ref) {
})) && {
title: detailLeftMenusNames === null || detailLeftMenusNames === void 0 ? void 0 : detailLeftMenusNames.group_homework,
dataIndex: 'group_score',
sorter: true,
align: 'center',
ellipsis: true,
width: 80
@ -3081,7 +3076,10 @@ const getRenderPropValue = propValue => {
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -857,7 +857,10 @@ if (false) {}
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1231,7 +1231,10 @@ input_Input.Password = input_Password;
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -650,7 +650,10 @@ if (false) {}
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -17589,7 +17589,10 @@ if (false) {}
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -1429,7 +1429,10 @@ input_Input.Password = input_Password;
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -5845,7 +5845,10 @@ const getRenderPropValue = propValue => {
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -4551,7 +4551,10 @@ if (false) {}
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony exports getOverlay, RawPurePanel */
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
/* unused harmony export getOverlay */
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);

@ -2092,12 +2092,12 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Jupytermodules.footer,
style: {
background: '#111c24'
},
children: jupyterData !== null && jupyterData !== void 0 && jupyterData.open_evaluate ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
}), jupyterData !== null && jupyterData !== void 0 && jupyterData.open_evaluate ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Jupytermodules.footer,
style: {
background: '#111c24'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [gamesData !== null && gamesData !== void 0 && gamesData.time_limit ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u672C\u5173\u6700\u5927\u6267\u884C\u65F6\u95F4\uFF1A".concat(gamesData === null || gamesData === void 0 ? void 0 : gamesData.time_limit, "\u79D2")
@ -2124,8 +2124,14 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
type: "primary",
children: btnTime !== 0 ? "".concat(btnTime, "s") : '评测'
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: searchParams.get("homework_common_id") && !(jupyterData !== null && jupyterData !== void 0 && jupyterData.homework_is_end) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: searchParams.get("homework_common_id") && !(jupyterData !== null && jupyterData !== void 0 && jupyterData.homework_is_end) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Jupytermodules.footer,
style: {
background: '#111c24'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
return submitWork();
},

@ -9825,6 +9825,8 @@ var LeftPanel = function LeftPanel(_ref) {
var statistic = __webpack_require__(31797);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tour/index.js + 12 modules
var tour = __webpack_require__(65615);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/components/useInterval.tsx
@ -10510,17 +10512,22 @@ function TipContent() {
_useState10 = slicedToArray_default()(_useState9, 2),
vncTime = _useState10[0],
setVncTime = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(false),
var _useState11 = (0,_react_17_0_2_react.useState)(isNotice || false),
_useState12 = slicedToArray_default()(_useState11, 2),
dataSetsVisiable = _useState12[0],
setdataSetsVisiable = _useState12[1];
openNotice = _useState12[0],
setOpenNotice = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(false),
_useState14 = slicedToArray_default()(_useState13, 2),
dataSetsVisiable = _useState14[0],
setdataSetsVisiable = _useState14[1];
var countDownRef = (0,_react_17_0_2_react.useRef)();
var countDownRef2 = (0,_react_17_0_2_react.useRef)();
var focusRef = (0,_react_17_0_2_react.useRef)();
var _useState13 = (0,_react_17_0_2_react.useState)(false),
_useState14 = slicedToArray_default()(_useState13, 2),
checkboxData = _useState14[0],
setcheckboxData = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(false),
_useState16 = slicedToArray_default()(_useState15, 2),
checkboxData = _useState16[0],
setcheckboxData = _useState16[1];
var refNotice = (0,_react_17_0_2_react.useRef)(null);
var countRef = (0,_react_17_0_2_react.useRef)(checkboxData);
countRef.current = checkboxData;
var index_tab = toolbarItem.index_tab,
@ -10984,11 +10991,42 @@ function TipContent() {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-container",
children: [searchParams.get("type") !== 'exercises' && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: isNotice && /*#__PURE__*/(0,jsx_runtime.jsx)(NoticeButton, {
className: "btn-notice",
onShowNotice: onShowNotice
})
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
ref: refNotice,
onClick: function onClick() {
return setOpenNotice(false);
},
children: [searchParams.get("type") !== 'exercises' && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: isNotice && /*#__PURE__*/(0,jsx_runtime.jsx)(NoticeButton, {
className: "btn-notice",
onShowNotice: onShowNotice
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tour/* default */.Z, {
open: openNotice,
onClose: function onClose() {
return setOpenNotice(false);
},
rootClassName: "tasks-header-notice",
steps: [{
title: '更新通知',
description: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8001\u5E08\u5DF2\u4FEE\u6539\u4EE3\u7801\u6587\u4EF6\uFF0C\u8BF7\u66F4\u65B0\u540E\u7EE7\u7EED\u4F5C\u7B54~"
})
}),
target: function target() {
return refNotice.current;
},
nextButtonProps: {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: onShowNotice,
type: "primary",
size: "small",
children: "\u66F4\u65B0\u4EE3\u7801"
})
}
}]
})]
}), cutTime(), windows_vnc && !(0,lodash.isEmpty)(resData) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick(e) {
e.preventDefault();
@ -11177,18 +11215,18 @@ function VncTimer(_ref4) {
title = _ref4$title === void 0 ? '' : _ref4$title,
myshixun = _ref4.myshixun,
defaultTime = _ref4.defaultTime;
var _useState15 = (0,_react_17_0_2_react.useState)(defaultTime),
_useState16 = slicedToArray_default()(_useState15, 2),
time = _useState16[0],
setTime = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(false),
var _useState17 = (0,_react_17_0_2_react.useState)(defaultTime),
_useState18 = slicedToArray_default()(_useState17, 2),
btnLoading = _useState18[0],
setBtnLoading = _useState18[1];
time = _useState18[0],
setTime = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(false),
_useState20 = slicedToArray_default()(_useState19, 2),
isPlusTime = _useState20[0],
setIsPlusTime = _useState20[1];
btnLoading = _useState20[0],
setBtnLoading = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(false),
_useState22 = slicedToArray_default()(_useState21, 2),
isPlusTime = _useState22[0],
setIsPlusTime = _useState22[1];
var isFirstOpen = (0,_react_17_0_2_react.useRef)(true);
(0,_react_17_0_2_react.useEffect)(function () {
window.addEventListener("visibilitychange", handleFocus);

@ -2368,7 +2368,6 @@ span.CodeMirror-selectedtext {
margin-right: 4px;
}
.task-header-container .btn-notice {
margin-right: 12px;
line-height: 12px;
}
.task-header-container .btn-vnc {
@ -2382,6 +2381,15 @@ span.CodeMirror-selectedtext {
.task-header-container .btn-vnc img {
margin-right: 9px;
}
#educoder .tasks-header-notice.ant-tour-placement-bottom {
width: 320px;
}
#educoder .tasks-header-notice.ant-tour-placement-bottom .ant-tour-content {
width: 320px;
}
#educoder .tasks-header-notice.ant-tour-placement-bottom .ant-tour-content .ant-tour-buttons .ant-btn:has(button) {
background: none !important;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.88@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/tasks/code-repository/action-bar/index.less?modules ***!

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.5 MiB

@ -292,10 +292,10 @@ mark {
\**************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: "iconfont"; /* Project id 653600 */
src: url(./static/iconfont.de7bf788.woff2) format('woff2'),
url(./static/iconfont.f9c02bd2.woff) format('woff'),
url(./static/iconfont.5ac5f779.ttf) format('truetype'),
url(./static/iconfont.df7da3a4.svg#iconfont) format('svg');
src: url(./static/iconfont.d4898757.woff2) format('woff2'),
url(./static/iconfont.53d451ad.woff) format('woff'),
url(./static/iconfont.1747ec62.ttf) format('truetype'),
url(./static/iconfont.fbda0e54.svg#iconfont) format('svg');
}
.iconfont {
@ -306,6 +306,134 @@ mark {
-moz-osx-font-smoothing: grayscale;
}
.icon-ketangkebiao:before {
content: "\ec03";
}
.icon-anlifenxiang:before {
content: "\ec00";
}
.icon-haokezhanshi:before {
content: "\ec01";
}
.icon-jiaoliuyantao:before {
content: "\ec02";
}
.icon-goumai:before {
content: "\ebff";
}
.icon-lishijilu:before {
content: "\ebfe";
}
.icon-shebei-xiao:before {
content: "\ebfd";
}
.icon-yuyuexiangqing1:before {
content: "\ebfb";
}
.icon-fanhui4:before {
content: "\ebfc";
}
.icon-zhangjieceshibeifen:before {
content: "\ebef";
}
.icon-biaoqing:before {
content: "\ebfa";
}
.icon-qukuailian1:before {
content: "\ebf9";
}
.icon-suanfasheji1:before {
content: "\ebf6";
}
.icon-jingjiguanli:before {
content: "\ebf7";
}
.icon-dianzixinxi1:before {
content: "\ebf8";
}
.icon-jingpeikecheng:before {
content: "\ebf1";
}
.icon-yunjisuan:before {
content: "\ebf2";
}
.icon-shuxueyutongji:before {
content: "\ebf3";
}
.icon-qiyekecheng:before {
content: "\ebf4";
}
.icon-xunifangzhen:before {
content: "\ebf5";
}
.icon-wulianwang:before {
content: "\ebf0";
}
.icon-jiesuo1:before {
content: "\ebed";
}
.icon-suoding:before {
content: "\ebee";
}
.icon-xiaoxitongzhi:before {
content: "\ebec";
}
.icon-xuanzhong11:before {
content: "\ebea";
}
.icon-yiwancheng6:before {
content: "\ebeb";
}
.icon-shangbianxiantiao:before {
content: "\ebe9";
}
.icon-xiebianjiantou:before {
content: "\ebe8";
}
.icon-panduanhujiu:before {
content: "\ebe6";
}
.icon-shiyongaed:before {
content: "\ebe7";
}
.icon-a-302:before {
content: "\ebe5";
}
.icon-xianchangqueren:before {
content: "\ebe1";
}
.icon-duohangtiankongxiang:before {
content: "\ebe4";
}

1850
umi.js

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