"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([[454],{ /***/ 87526: /*!*****************************************!*\ !*** ./src/components/NoData/index.tsx ***! \*****************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301); /* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd */ 3113); var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); const noData = ({ img, buttonProps = {}, styles = {}, customText, ButtonText, ButtonClick, Buttonclass, ButtonTwo, imgStyles, loading = false }) => { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement( "section", { className: "tc animated fadeIn", style: __spreadValues(__spreadValues({}, { color: "#999", margin: "100px auto", visibility: loading ? "hidden" : "visible" }), styles) }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", { src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_1__, style: __spreadProps(__spreadValues({}, imgStyles), { pointerEvents: "none", userSelect: "none" }) }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", { className: "mt20 font14" }, customText || "\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"), ButtonText && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, __spreadValues({ className: Buttonclass, onClick: ButtonClick }, buttonProps), ButtonText), ButtonTwo && ButtonTwo ); }; /* harmony default export */ __webpack_exports__.Z = (noData); /***/ }), /***/ 80454: /*!*************************************************************!*\ !*** ./src/pages/Classrooms/ExamList/index.tsx + 5 modules ***! \*************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { "default": function() { return /* binding */ ExamList; } }); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules var _umi_production_exports = __webpack_require__(67866); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js var es_select = __webpack_require__(57809); // 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/skeleton/index.js + 12 modules var skeleton = __webpack_require__(56511); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules var pagination = __webpack_require__(53864); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(87526); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var ExamListmodules = ({"flex_box_center":"flex_box_center___k6E7Z","flex_space_between":"flex_space_between___oW8nd","flex_box_vertical_center":"flex_box_vertical_center___hKiel","flex_box_center_end":"flex_box_center_end___bWBYz","flex_box_column":"flex_box_column___PI5IU","bg":"bg___pNQux","containerTitle":"containerTitle___yNJpi","containerDesc":"containerDesc___i_svy","menus":"menus___o7OFa","listItem":"listItem___z1ETv","info":"info___Ki3Js","title":"title___pwlJ7","titleLeft":"titleLeft___zGhmc","titleRight":"titleRight___e7Ghq","acitons":"acitons___teF7U","move":"move___SbOmH","hideHeadCheckbox":"hideHeadCheckbox___sAsoB","moveCategory":"moveCategory___QzsCK","tabSearch":"tabSearch____pHQT","warpModal":"warpModal___oxvp3","modalColumn":"modalColumn___RMpgc","modalRow":"modalRow___vjqMa","sup":"sup___nGUBA"}); // 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/tooltip/index.js + 3 modules var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules var es_checkbox = __webpack_require__(24905); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules var message = __webpack_require__(8591); // EXTERNAL MODULE: ./src/utils/util.tsx var util = __webpack_require__(13462); // EXTERNAL MODULE: ./src/utils/fetch.ts var fetch = __webpack_require__(51165); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/components/List/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var Listmodules = ({"flex_box_center":"flex_box_center___ait_r","flex_space_between":"flex_space_between___rFCZt","flex_box_vertical_center":"flex_box_vertical_center___Se_r1","flex_box_center_end":"flex_box_center_end___zrmDd","flex_box_column":"flex_box_column___p4QYF","bg":"bg___K7jhB","containerTitle":"containerTitle___jYThs","containerDesc":"containerDesc___n3gfb","tablestyle":"tablestyle___OUTg8","listItem":"listItem___ye5vB","info":"info___Z1Jmz","title":"title___Pq4sD","titleLeft":"titleLeft___nUs7_","titleRight":"titleRight___nhuLW","acitons":"acitons___mwr_3","moveCategory":"moveCategory___ADEes","name":"name___hjh5r","categoryName":"categoryName___HTKzg","schedule":"schedule___Dli0r","fnSign":"fnSign___RB8GU","spanSize":"spanSize___yDHwD","classromediv":"classromediv___a26Uj","glow":"glow___IPF2B","popover":"popover___W5sXq","dot":"dot___MB2Pk"}); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/components/List/img/ping1.svg var __defProp = Object.defineProperty; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; const SvgPing1 = (props) => /* @__PURE__ */ React.createElement("svg", __spreadValues({ width: 22, height: 22, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React.createElement("title", null, "\u7F16\u7EC4 5\u5907\u4EFD 2"), /* @__PURE__ */ React.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h22v22H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#979797", fillRule: "nonzero" }, /* @__PURE__ */ React.createElement("path", { d: "M10.422 5.818h.8v10.4h-.8z" }), /* @__PURE__ */ React.createElement("path", { d: "M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z" }), /* @__PURE__ */ React.createElement("path", { d: "M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z" })))); /* harmony default export */ var ping1 = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbD0iIzk3OTc5NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg=="); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/components/List/img/ping2.svg var ping2_defProp = Object.defineProperty; var ping2_getOwnPropSymbols = Object.getOwnPropertySymbols; var ping2_hasOwnProp = Object.prototype.hasOwnProperty; var ping2_propIsEnum = Object.prototype.propertyIsEnumerable; var ping2_defNormalProp = (obj, key, value) => key in obj ? ping2_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var ping2_spreadValues = (a, b) => { for (var prop in b || (b = {})) if (ping2_hasOwnProp.call(b, prop)) ping2_defNormalProp(a, prop, b[prop]); if (ping2_getOwnPropSymbols) for (var prop of ping2_getOwnPropSymbols(b)) { if (ping2_propIsEnum.call(b, prop)) ping2_defNormalProp(a, prop, b[prop]); } return a; }; const SvgPing2 = (props) => /* @__PURE__ */ React.createElement("svg", ping2_spreadValues({ width: 22, height: 22, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React.createElement("title", null, "\u7F16\u7EC4 5\u5907\u4EFD"), /* @__PURE__ */ React.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h22v22H0z" }), /* @__PURE__ */ React.createElement("g", { fillRule: "nonzero" }, /* @__PURE__ */ React.createElement("path", { fill: "#229BFF", d: "M10.422 5.818h.8v10.4h-.8z" }), /* @__PURE__ */ React.createElement("path", { d: "M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z", fill: "#0152d9" }), /* @__PURE__ */ React.createElement("path", { d: "M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z", fill: "#0152d9" })))); /* harmony default export */ var ping2 = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiIGZpbGw9IiMwMTUyZDkiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiIGZpbGw9IiMwMTUyZDkiLz48L2c+PC9nPjwvc3ZnPg=="); // EXTERNAL MODULE: ./src/utils/authority.ts var authority = __webpack_require__(88141); // EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js var dayjs_min = __webpack_require__(99232); var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/components/List/index.tsx /* provided dependency */ var List_React = __webpack_require__(/*! react */ 59301); var List_defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var List_getOwnPropSymbols = Object.getOwnPropertySymbols; var List_hasOwnProp = Object.prototype.hasOwnProperty; var List_propIsEnum = Object.prototype.propertyIsEnumerable; var List_defNormalProp = (obj, key, value) => key in obj ? List_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var List_spreadValues = (a, b) => { for (var prop in b || (b = {})) if (List_hasOwnProp.call(b, prop)) List_defNormalProp(a, prop, b[prop]); if (List_getOwnPropSymbols) for (var prop of List_getOwnPropSymbols(b)) { if (List_propIsEnum.call(b, prop)) List_defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __async = (__this, __arguments, generator) => { return new Promise((resolve, reject) => { var fulfilled = (value) => { try { step(generator.next(value)); } catch (e) { reject(e); } }; var rejected = (value) => { try { step(generator.throw(value)); } catch (e) { reject(e); } }; var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); step((generator = generator.apply(__this, __arguments)).next()); }); }; const List = ({ v, k, match, selectArrs, setSelectArrs, dispatch, params }) => { var _a, _b, _c, _d, _e, _f, _g; const [lists, setlists] = (0,_react_17_0_2_react.useState)([]); const [isshow, setisshow] = (0,_react_17_0_2_react.useState)(false); const format = "YYYY-MM-DD"; const endTime = dayjs_min_default()("2020-11-15", format); function getlist() { return __async(this, null, function* () { console.log(params, 222); let res = yield (0,fetch/* default */.ZP)(`/api/courses/${params == null ? void 0 : params.coursesId}/exercises/group_use_list.json`, { method: "get", params: __spreadProps(List_spreadValues({}, params), { id: v.id }) }); setlists((res == null ? void 0 : res.groups) || []); }); } const modalText = () => modal["default"].info({ title: "\u9898\u5E93\u6539\u7248\u544A\u77E5", content: /* @__PURE__ */ List_React.createElement(List_React.Fragment, null, "EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01") }); const enterExam = (v2) => { var _a2; _umi_production_exports.history.push(`/classrooms/${v2.course_identifier}/exercisenotice/${v2.id}/users/${(_a2 = (0,authority/* userInfo */.eY)()) == null ? void 0 : _a2.login}`); }; const columns = [ { title: "\u73ED\u7EA7", dataIndex: "name", key: "name" }, { title: "\u8003\u8BD5\u72B6\u6001", dataIndex: "exercise_status", key: "exercise_status", width: 100, filters: [ { text: "\u672A\u5F00\u59CB", value: 1 }, { text: "\u8003\u8BD5\u4E2D", value: 2 }, { text: "\u5DF2\u7ED3\u675F", value: 3 } ], onFilter: (value, record) => { return record.exercise_status === value; }, render: (k2, r) => { return /* @__PURE__ */ List_React.createElement("div", null, k2 === 1 && /* @__PURE__ */ List_React.createElement("span", null, /* @__PURE__ */ List_React.createElement("i", { className: Listmodules.dot, style: { background: "#C3C3C3" } }), "\u672A\u5F00\u59CB"), k2 === 2 && /* @__PURE__ */ List_React.createElement("span", null, /* @__PURE__ */ List_React.createElement("i", { className: Listmodules.dot, style: { background: "#4EACFF" } }), "\u8003\u8BD5\u4E2D"), k2 === 3 && /* @__PURE__ */ List_React.createElement("span", null, /* @__PURE__ */ List_React.createElement("i", { className: Listmodules.dot, style: { background: "#FC2D6B" } }), "\u5DF2\u7ED3\u675F")); } }, { title: "\u5F00\u59CB\u65F6\u95F4", dataIndex: "publish_time", key: "publish_time", sorter: true, width: 170, showSorterTooltip: false, sortOrder: params.order_by === "publish_time" ? params.sort_direction === "desc" ? "descend" : "ascend" : null }, { title: "\u7ED3\u675F\u65F6\u95F4", dataIndex: "end_time", key: "end_time", sorter: true, width: 170, showSorterTooltip: false, sortOrder: params.order_by === "end_time" ? params.sort_direction === "desc" ? "descend" : "ascend" : null }, { title: "\u63D0\u4EA4\u4EBA\u6570", dataIndex: "exercise_answer", key: "exercise_answer", align: "center", width: 80, render: (k2, r) => { return r.exercise_status === 1 ? "-" : /* @__PURE__ */ List_React.createElement("span", null, k2, "/", r.exercise_users); } }, { title: "\u5F85\u8BC4\u9605\u8BD5\u5377", dataIndex: "unreview_count", key: "unreview_count", align: "center", width: 90, render: (k2, r) => { return r.exercise_status === 1 ? "-" : /* @__PURE__ */ List_React.createElement(_umi_production_exports.Link, { to: `/classrooms/${params == null ? void 0 : params.coursesId}/exercise/${v == null ? void 0 : v.id}/detail?random=false&exercise_group_id=${r.course_group_id}` }, k2); } }, { title: "\u64CD\u4F5C", dataIndex: "action", align: "center", key: "action", width: 60, render: (k2, r) => { return r.exercise_status === 1 ? /* @__PURE__ */ List_React.createElement("img", { style: { cursor: "not-allowed" }, src: ping1 }) : /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: "\u8BC4\u9605" }, /* @__PURE__ */ List_React.createElement(_umi_production_exports.Link, { to: `/classrooms/${params == null ? void 0 : params.coursesId}/exercise/${v == null ? void 0 : v.id}/detail?random=false&exercise_group_id=${r.course_group_id}` }, /* @__PURE__ */ List_React.createElement("img", { src: ping2 }))); } } ]; const renderTips = (v2) => { if (v2 == null ? void 0 : v2.includes("\u672A\u5F00\u59CB")) { return /* @__PURE__ */ List_React.createElement("span", { style: { backgroundColor: "#B8B8B8" }, className: "tag-style mr10" }, "\u672A\u5F00\u59CB"); } if (v2 == null ? void 0 : v2.includes("\u8003\u8BD5\u4E2D")) { return /* @__PURE__ */ List_React.createElement("span", { style: { backgroundColor: "#007AFF" }, className: "tag-style mr10" }, "\u8003\u8BD5\u4E2D"); } if (v2 == null ? void 0 : v2.includes("\u5DF2\u7ED3\u675F")) { return /* @__PURE__ */ List_React.createElement("span", { style: { backgroundColor: "#FC2D6B" }, className: "tag-style mr10" }, "\u5DF2\u7ED3\u675F"); } }; console.log((0,authority/* isAdminOrStudent */.RV)(), 222); return /* @__PURE__ */ List_React.createElement( "div", { className: Listmodules.listItem, key: k }, (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ List_React.createElement( es_checkbox["default"], { checked: selectArrs.includes(v.id), value: v.id, onClick: (e) => { e.stopPropagation(); }, onChange: (e) => { let key = selectArrs.indexOf(v.id); if (selectArrs.indexOf(v.id) > -1) { setSelectArrs( selectArrs.filter( (val) => val !== v.id ) ); } else { setSelectArrs(selectArrs.concat(v.id)); } } } ), /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.info }, /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.title }, /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.titleLeft, style: { marginRight: "15px" } }, renderTips(v == null ? void 0 : v.exercise_tips), /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: v.exercise_name }, /* @__PURE__ */ List_React.createElement("span", { className: `${Listmodules.name}`, style: { maxWidth: ((_a = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _a.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A")) ? 400 : 498 } }, v.exercise_name)), !v.is_public && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: "\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE" }, /* @__PURE__ */ List_React.createElement("span", { className: "iconfont icon-suo1 ml10 mr10 c-light-black font12" })), ((_b = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _b.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A")) && /* @__PURE__ */ List_React.createElement("span", { style: { flexShrink: 0 }, className: "tag-style-fzb iconfont icon-fangzuobi ml10" }, "\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"), ((_c = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _c.includes("\u5DF2\u7ED3\u675F")) && ((_d = v == null ? void 0 : v.exercise_tips) == null ? void 0 : _d.includes("\u672A\u63D0\u4EA4")) && /* @__PURE__ */ List_React.createElement("span", { style: { flexShrink: 0, backgroundColor: "#B8B8B8" }, className: "tag-style ml10" }, "\u672A\u63D0\u4EA4")), /* @__PURE__ */ List_React.createElement("div", { className: Listmodules.titleRight, onClick: (e) => { e.stopPropagation(); e.preventDefault(); } }, (0,authority/* isAdmin */.GJ)() && v.assistant_auth && /* @__PURE__ */ List_React.createElement("span", { onClick: (e) => { e.stopPropagation(); const startTime = dayjs_min_default()(v.created_at, format); const diff3 = dayjs_min_default()(endTime).diff(dayjs_min_default()(startTime), "days"); if (diff3 > 0 && (v == null ? void 0 : v.is_random)) { modalText(); } else if (v == null ? void 0 : v.is_random) { _umi_production_exports.history.push(`/classrooms/${v.course_id}/exercise/${v.id}/random/preview?random=${v.is_random}`); } else { _umi_production_exports.history.push(`/classrooms/${v.course_id}/exercise/${v.id}/detail?random=${v.is_random}&tabs=2`); } } }, "\u9884\u89C8"), /* @__PURE__ */ List_React.createElement( "a", { onClick: (e) => { e.preventDefault(); e.stopPropagation(); (0,util/* openNewWindow */.xg)(`/classrooms/${v.course_id}/exercise/${v.id}/detail?random=${v.is_random}`); } }, "\u8BE6\u60C5" ), /* @__PURE__ */ List_React.createElement(List_React.Fragment, null, !!v.off_limits && /* @__PURE__ */ List_React.createElement(tooltip/* default */.Z, { title: `\u8FDF\u5230\u8D85\u8FC7${v == null ? void 0 : v.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898` }, /* @__PURE__ */ List_React.createElement("b", { className: "font16 c-grey-999" }, "\u8FDF\u5230\u7981\u6B62\u7B54\u9898")), !v.off_limits && v.current_status === 0 && v.exercise_status > 1 && !((_e = v.exercise_tips) == null ? void 0 : _e.includes("\u5DF2\u622A\u6B62")) && /* @__PURE__ */ List_React.createElement("a", { onClick: (e) => { e.stopPropagation(); e.preventDefault(); enterExam(v); }, href: `` }, (v == null ? void 0 : v.screen_used_num) > (v == null ? void 0 : v.screen_total_num) && "\u7533\u8BF7", " \u7EE7\u7EED\u8003\u8BD5"), !((_f = v.exercise_tips) == null ? void 0 : _f.includes("\u5DF2\u622A\u6B62")) && (v == null ? void 0 : v.screen_used_num) > (v == null ? void 0 : v.screen_total_num) && /* @__PURE__ */ List_React.createElement("a", { onClick: (e) => { e.stopPropagation(); e.preventDefault(); enterExam(v); }, href: `` }, "\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5"), !v.off_limits && v.current_status === 1 && v.exercise_status > 1 && document.domain != "kepukehuan.educoder.net" && /* @__PURE__ */ List_React.createElement("a", { style: { color: "#0152d9" }, onClick: (e) => __async(void 0, null, function* () { var _a2; e.preventDefault(); e.stopPropagation(); if (!(v == null ? void 0 : v.answered_open)) { message/* default */.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B"); return; } (0,util/* openNewWindow */.xg)(`/classrooms/${params.coursesId}/exercise/${v.id}/users/${(_a2 = (0,authority/* userInfo */.eY)()) == null ? void 0 : _a2.login}?check=true`); }) }, "\u67E5\u770B\u8003\u8BD5"), !v.off_limits && v.current_status === 2 && v.exercise_status > 1 && !((_g = v.exercise_tips) == null ? void 0 : _g.includes("\u5DF2\u622A\u6B62")) && /* @__PURE__ */ List_React.createElement("a", { style: { color: (v == null ? void 0 : v.is_redo) === 1 && "red" }, onClick: (e) => { e.stopPropagation(); e.preventDefault(); enterExam(v); }, href: `` }, (v == null ? void 0 : v.is_redo) === 0 ? "\u5F00\u59CB\u8003\u8BD5" : "\u91CD\u65B0\u8003\u8BD5")))), /* @__PURE__ */ List_React.createElement("p", { style: { display: "flex" } }, /* @__PURE__ */ List_React.createElement("span", { className: "c-grey-999 mr20" }, "\u521B\u5EFA\u8005\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, v.username)), /* @__PURE__ */ List_React.createElement("span", { className: "c-grey-999 mr20" }, "\u6240\u5C5E\u8BFE\u5802\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, v.course_name)), /* @__PURE__ */ List_React.createElement("span", { className: "ml30 c-grey-999 mr20" }, "\u8003\u8BD5\u65F6\u957F\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, v.time === null || v.time === -1 ? "\u4E0D\u9650" : `${v.time}\u5206\u949F`)), /* @__PURE__ */ List_React.createElement("span", { className: "ml15 c-grey-999" }, "\u8003\u8BD5\u65F6\u95F4\uFF1A", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, dayjs_min_default()(v == null ? void 0 : v.published_time).format("YYYY-MM-DD HH:mm")), " \u81F3 ", /* @__PURE__ */ List_React.createElement("span", { className: "c-blue" }, dayjs_min_default()(v == null ? void 0 : v.end_time).format("YYYY-MM-DD HH:mm"))))) ); }; /* harmony default export */ var components_List = (List); ;// CONCATENATED MODULE: ./src/pages/Classrooms/ExamList/index.tsx var ExamList_defProp = Object.defineProperty; var ExamList_getOwnPropSymbols = Object.getOwnPropertySymbols; var ExamList_hasOwnProp = Object.prototype.hasOwnProperty; var ExamList_propIsEnum = Object.prototype.propertyIsEnumerable; var ExamList_defNormalProp = (obj, key, value) => key in obj ? ExamList_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var ExamList_spreadValues = (a, b) => { for (var prop in b || (b = {})) if (ExamList_hasOwnProp.call(b, prop)) ExamList_defNormalProp(a, prop, b[prop]); if (ExamList_getOwnPropSymbols) for (var prop of ExamList_getOwnPropSymbols(b)) { if (ExamList_propIsEnum.call(b, prop)) ExamList_defNormalProp(a, prop, b[prop]); } return a; }; var __objRest = (source, exclude) => { var target = {}; for (var prop in source) if (ExamList_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop]; if (source != null && ExamList_getOwnPropSymbols) for (var prop of ExamList_getOwnPropSymbols(source)) { if (exclude.indexOf(prop) < 0 && ExamList_propIsEnum.call(source, prop)) target[prop] = source[prop]; } return target; }; const { Option } = es_select["default"]; const ShixunsListPage = (_a) => { var _b = _a, { classroomList, globalSetting, exercise, loading, dispatch, match } = _b, props = __objRest(_b, [ "classroomList", "globalSetting", "exercise", "loading", "dispatch", "match" ]); var _a2, _b2, _c, _d, _e; const [params, setParams] = (0,_react_17_0_2_react.useState)(ExamList_spreadValues({}, (0,_umi_production_exports.useParams)())); const location = (0,_umi_production_exports.useLocation)(); const { detailExerciseList, detailTopBanner, detailLeftMenus } = classroomList; const [selectArrs, setSelectArrs] = (0,_react_17_0_2_react.useState)([]); const [moveVisible, setMoveVisible] = (0,_react_17_0_2_react.useState)(false); const [querys, setQuerys] = (0,_react_17_0_2_react.useState)({ page: 1, course_id: "" }); params["id"] = params["coursesId"]; (0,_react_17_0_2_react.useEffect)(() => { getData(); dispatch({ type: "globalSetting/footerToggle", payload: false }); dispatch({ type: "globalSetting/onlyShowBackTopToggle", payload: true }); }, [querys]); (0,_react_17_0_2_react.useEffect)(() => { setSelectArrs([]); }, [detailExerciseList]); const getData = () => { document.body.scrollIntoView(); dispatch({ type: "exercise/getUserExercise", payload: querys }); }; return /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: "minH500 minW1200" }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: `${ExamListmodules.acitons} w100` }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { className: "w100" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "font20 blod" }, "\u8003\u8BD5\u5217\u8868")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u6309\u8BFE\u5802\u540D\u79F0\u641C\u7D22\u8BD5\u5377\u8003\u8BD5\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"], { className: "ml20", size: "large", style: { width: 300 }, placeholder: "\u5168\u90E8", onChange: (value) => { querys.course_id = value; querys.page = 1; setQuerys(ExamList_spreadValues({}, querys)); } }, /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "" }, "\u5168\u90E8"), (_b2 = (_a2 = exercise == null ? void 0 : exercise.userExerciseList) == null ? void 0 : _a2.courses) == null ? void 0 : _b2.map((item, key) => { return /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: item.id }, item.name); }) ))))), ((_c = exercise == null ? void 0 : exercise.userExerciseList) == null ? void 0 : _c.exercises_count) === 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, null), /* @__PURE__ */ _react_17_0_2_react.createElement( skeleton/* default */.Z, { loading: loading["exercise/getUserExercise"], active: true, avatar: { size: 40 }, paragraph: { rows: 5 }, className: "mt30" }, ((_d = exercise == null ? void 0 : exercise.userExerciseList) == null ? void 0 : _d.exercises) && ((_e = exercise == null ? void 0 : exercise.userExerciseList) == null ? void 0 : _e.exercises.map(function(v, k) { return /* @__PURE__ */ _react_17_0_2_react.createElement( components_List, { v, k, match, selectArrs, setSelectArrs, dispatch, params } ); })), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "tc mb50 mt30" }, /* @__PURE__ */ _react_17_0_2_react.createElement( pagination/* default */.Z, { showTotal: (total) => { var _a3; return `\u5171 ${(_a3 = exercise == null ? void 0 : exercise.userExerciseList) == null ? void 0 : _a3.exercises_count} \u6761`; }, hideOnSinglePage: true, showSizeChanger: false, onChange: (page) => { querys.page = page; setQuerys(ExamList_spreadValues({}, querys)); }, defaultPageSize: 20, defaultCurrent: querys.page, current: querys.page || 1, total: exercise == null ? void 0 : exercise.userExerciseList.exercises_count } )) )); }; /* harmony default export */ var ExamList = ((0,_umi_production_exports.connect)( ({ classroomList, loading, globalSetting, exercise }) => ({ classroomList, globalSetting, loading: loading.effects, exercise }) )(ShixunsListPage)); /***/ }) }]);