"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([[9391],{ /***/ 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); /***/ }), /***/ 90018: /*!*********************************************************!*\ !*** ./src/components/PreviewAll/index.tsx + 1 modules ***! \*********************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ PreviewAll; } }); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./src/components/PreviewAll/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var PreviewAllmodules = ({"wrp":"wrp___dq7YK","bgBlack":"bgBlack___ARIUV","monaco":"monaco___VnZC3","darkBlue":"darkBlue___UprA9","close":"close___LKoWu","embed":"embed___hvpEJ"}); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules var ArrowDownOutlined = __webpack_require__(74516); // EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 4 modules var monaco_editor = __webpack_require__(32150); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./src/utils/util.tsx var util = __webpack_require__(13462); // EXTERNAL MODULE: ./src/service/exercise.ts var exercise = __webpack_require__(41044); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(87526); // EXTERNAL MODULE: ./src/utils/env.ts + 1 modules var env = __webpack_require__(21873); // EXTERNAL MODULE: ./src/service/attachment.ts var attachment = __webpack_require__(4675); ;// CONCATENATED MODULE: ./src/components/PreviewAll/index.tsx 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; }; 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()); }); }; /* harmony default export */ var PreviewAll = (({ editOffice = "view", data, theme, type, filename, monacoEditor, className, style, close, onClose, hasMask, disabledDownload, onImgDimensions, showNodata, recordInfo }) => { const [src, setSrc] = (0,_react_17_0_2_react.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"); const [token, setToken] = (0,_react_17_0_2_react.useState)(""); const [officeData, setOfficeData] = (0,_react_17_0_2_react.useState)(); const officePath = window.ENV === "build" ? "/react/build" : ""; const apiServer = location.host.startsWith("localhost") ? env/* default */.Z.PROXY_SERVER : env/* default */.Z.API_SERVER; const unit = 1024 * 1024; const maxSize = 10 * unit; const closeRef = (0,_react_17_0_2_react.useRef)(); if ((data == null ? void 0 : data.startsWith("/api")) && type !== "txt") { data = env/* default */.Z.API_SERVER + data; } const getFileExtension = (url) => { const filename2 = url.substring(url.lastIndexOf("/") + 1); const extension = filename2.split(".").pop(); return extension; }; if (filename) monacoEditor.filename = filename; (0,_react_17_0_2_react.useEffect)(() => { var _a, _b; const cookies = (_b = (_a = document.cookie) == null ? void 0 : _a.replace(/\s/g, "")) == null ? void 0 : _b.split(";"); cookies == null ? void 0 : cookies.map((item) => { let i = item.split("="); if (i[0] === "_educoder_session") { setToken(i[1]); } }); }, []); (0,_react_17_0_2_react.useEffect)(() => { if (type === "office") { if (data.indexOf("bigfilescdn.") > -1 || data.indexOf("bigfiles1") > -1) { setOfficeData({ url: data, fileType: getFileExtension(data), model: data.indexOf("model=edit") ? "edit" : "view" }); } else { getData(); } } }, [type, data]); const getData = () => __async(void 0, null, function* () { console.log("data:", data); let _url = data; if (!data.startsWith("http")) { _url = location.origin + _url; } let _id = new URL(_url).pathname.split("/").pop(); const res = yield (0,exercise/* setEcsAttachment */.gJ)({ attachment_id: _id }); res.url = apiServer + res.url; setOfficeData(res); }); const handleClick = () => { if (data.startsWith("http") || data.startsWith("blob:")) { handleDown(); return; } (0,util/* downloadFile */.Sv)(filename || "educoder", data, filename); }; const handleDown = () => { if (recordInfo) { (0,attachment/* add_file_quantity */.fc)({ id: recordInfo == null ? void 0 : recordInfo.id, watch_type: 1, course_id: recordInfo == null ? void 0 : recordInfo.course_id }); } (0,util/* downLoadLink */.Nd)(filename || "educoder", decodeURIComponent(data)); }; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: __spreadValues({}, style || {}), className: `${hasMask && PreviewAllmodules.bgBlack} ${!!type ? PreviewAllmodules.wrp : "hide"}` }, close && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: PreviewAllmodules.close, ref: closeRef }, !!onImgDimensions && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8", getPopupContainer: () => closeRef.current }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { onClick: () => { onClose(); onImgDimensions(); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "icon-yulanpizhu" }))), !disabledDownload && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6", getPopupContainer: () => closeRef.current }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { onClick: handleDown }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "icon-quxiaozhiding" }))), /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u5173\u95ED", getPopupContainer: () => closeRef.current }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "", onClick: onClose }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "icon-guanbi1" })))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: `${PreviewAllmodules[className]} ${className} ${PreviewAllmodules.monaco} ${type === "txt" ? "show" : "hide"}` }, type === "txt" && /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /* @__PURE__ */ _react_17_0_2_react.createElement( monaco_editor/* default */.ZP, __spreadValues({}, monacoEditor) ))), type === "audio" && /* @__PURE__ */ _react_17_0_2_react.createElement("audio", { src: `${(data == null ? void 0 : data.indexOf("http://")) > -1 || (data == null ? void 0 : data.indexOf("https://")) > -1 ? "" : "data:audio/mp3;base64,"}${data}`, autoPlay: true }), type === "video" && /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, (data == null ? void 0 : data.indexOf("http")) > -1 ? /* @__PURE__ */ _react_17_0_2_react.createElement("video", { controls: true, src: `${data}`, autoPlay: true }) : /* @__PURE__ */ _react_17_0_2_react.createElement("video", { controls: true, src: `data:video/mp4;base64,${data}`, autoPlay: true })), type === "office" && officeData && /* @__PURE__ */ _react_17_0_2_react.createElement("iframe", { src: `${officePath}/office.html?key=${officeData.key}&url=${btoa(officeData.url)}&callbackUrl=${apiServer + officeData.callbackUrl}&fileType=${officeData.fileType}&title=${officeData.title}&model=${editOffice}&officeServer=${env/* default */.Z.ONLYOFFICE}&disabledDownload=${!!disabledDownload}` }), type === "html" && /* @__PURE__ */ _react_17_0_2_react.createElement("iframe", { src: data + "&disposition=inline" }), type === "pdf" && /* @__PURE__ */ _react_17_0_2_react.createElement("iframe", { src: `${officePath}/js/pdfview/index.html?url=${data}&disabledDownload=${!!disabledDownload}` }), type === "image" && /* @__PURE__ */ _react_17_0_2_react.createElement("img", { src: `${(data == null ? void 0 : data.indexOf("http://")) > -1 || (data == null ? void 0 : data.indexOf("https://")) > -1 ? "" : "data:image/png;base64,"}${data}` }), (type === "other" || type === "download") && /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, showNodata ? /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, { customText: "\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B", ButtonTwo: /* @__PURE__ */ _react_17_0_2_react.createElement(es_button/* default */.ZP, { icon: /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-xiazai4 font14" }), type: "primary", size: "middle", onClick: handleClick }, "\u4E0B\u8F7D") }) : /* @__PURE__ */ _react_17_0_2_react.createElement(es_button/* default */.ZP, { type: "primary", size: "middle", onClick: handleClick }, /* @__PURE__ */ _react_17_0_2_react.createElement(ArrowDownOutlined/* default */.Z, null), "\u70B9\u51FB\u4E0B\u8F7D"))); }); /***/ }), /***/ 20: /*!************************************************************************!*\ !*** ./src/pages/Engineering/Lists/CurseSetting/index.tsx + 4 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 */ CurseSetting; } }); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var CurseSettingmodules = ({"flex_box_center":"flex_box_center___EE2m_","flex_space_between":"flex_space_between___Kx6gd","flex_box_vertical_center":"flex_box_vertical_center___HpACx","flex_box_center_end":"flex_box_center_end___wbVo8","flex_box_column":"flex_box_column___m87JY","wrap":"wrap___Pt66y","title":"title___dGCnl","standardTableWrap":"standardTableWrap___nFf7g","targetTableWrap":"targetTableWrap___dHw3L","waysTableWrap":"waysTableWrap___bdq6I","green":"green___IznFa","box":"box___GqhHB","padding":"padding___nFfG0","control":"control___ODG9O","label":"label___bq9qV","customTable":"customTable___Yp8nh","tagWrap":"tagWrap___RoLwt","tag":"tag___Lhqqj","line":"line___j6OTt","textwidth":"textwidth___S4C7M","modalWrapContainer":"modalWrapContainer___bNs_c","inputWrap":"inputWrap___eHeJs","addCourseTabsContainer":"addCourseTabsContainer___J8THT","textone":"textone___cOB6b"}); // EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules var _umi_production_exports = __webpack_require__(67866); // EXTERNAL MODULE: ./src/utils/fetch.ts var fetch = __webpack_require__(51165); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules var es_form = __webpack_require__(78241); // 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/select/index.js var es_select = __webpack_require__(57809); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules var upload = __webpack_require__(46651); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js var es_button = __webpack_require__(3113); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules var table = __webpack_require__(14491); // 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/modal/index.js + 16 modules var modal = __webpack_require__(43418); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/list/index.js + 3 modules var list = __webpack_require__(73755); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules var input = __webpack_require__(98135); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules var input_number = __webpack_require__(54449); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules var tabs = __webpack_require__(99313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules var es_radio = __webpack_require__(5112); // 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: ./src/utils/env.ts + 1 modules var env = __webpack_require__(21873); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules var ExclamationCircleOutlined = __webpack_require__(88289); // EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules var PreviewAll = __webpack_require__(90018); // 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/steps/index.js + 14 modules var steps = __webpack_require__(45413); ;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/AddCourseModal.tsx 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)); 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()); }); }; function Addmodal({ isshow, setishow, modalparams, courseId, getcourse_evaluations, getevaluations, items, points }) { var _a; const initParams = { page: 1, per_page: 20, total: 0, name: "" }; const [current, setcurrent] = (0,_react_17_0_2_react.useState)(0); let [params, setParams] = (0,_react_17_0_2_react.useState)(initParams); const [datas, setdatas] = (0,_react_17_0_2_react.useState)([]); const [selectIds, setSelectIds] = (0,_react_17_0_2_react.useState)(courseId ? (_a = items == null ? void 0 : items.contents) == null ? void 0 : _a.map((item) => item.course_id) : []); let [howorklist, sethoworklist] = (0,_react_17_0_2_react.useState)([]); let [howorkids, sethoworkids] = (0,_react_17_0_2_react.useState)([]); const [activitykey, setactitykey] = (0,_react_17_0_2_react.useState)("1"); const [isloading, setisloading] = (0,_react_17_0_2_react.useState)(false); (0,_react_17_0_2_react.useEffect)(() => { var _a2; if (isshow) { setSelectIds(courseId ? (_a2 = items == null ? void 0 : items.contents) == null ? void 0 : _a2.map((item) => item.course_id) : []); getcourse(params); } }, [isshow]); function getcourse(parasm) { return __async(this, null, function* () { let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/1/course_evaluations/search_courses.json`, { method: "get", params: parasm } ); if (res == null ? void 0 : res.courses) { params.total = res == null ? void 0 : res.count; setParams(__spreadValues({}, params)); setdatas(res == null ? void 0 : res.courses); } }); } const handleChangePage = (param, per_page, sorter) => { params.page = param == null ? void 0 : param.current; params.per_page = param == null ? void 0 : param.pageSize; if (sorter == null ? void 0 : sorter.order) { params.sort_by = sorter == null ? void 0 : sorter.field; params.direction = (sorter == null ? void 0 : sorter.order) === "ascend" ? "asc" : "desc"; } else { params.sort_by = null; params.direction = null; } setParams(__spreadValues({}, params)); getcourse(params); }; const rowSelection = { selectedRowKeys: selectIds, columnWidth: 40, onChange: (k) => setSelectIds(k), getCheckboxProps: (r) => ({ disabled: r.is_manager }) }; const parser = (v) => { let num = v; num = isNaN(num) ? "" : num; if (num[0] === ".") { num = ""; } return num; }; const titletes = () => { return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { padding: "0 40px", color: "#464F66" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { marginBottom: 10 } }, "\u7EC4\u5408\u8BA1\u7B97\u8BF4\u660E\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "1.\u5F53\u9700\u8981\u5B8C\u6210\u540C\u4E00\u77E5\u8BC6\u70B9\u5B66\u4E60/\u80FD\u529B\u8BAD\u7EC3\u7684\u5B66\u751F\u5206\u6563\u5728\u591A\u4E2A\u6559\u5B66\u8BFE\u5802\uFF0C\u6216\u8005\u5206\u6563\u5728\u4E00\u4E2A\u8BFE\u5802\u4E0B\u7684\u591A\u4E2A\u5206\u73ED\u65F6\uFF0C\u9700\u8981\u8FDB\u884C\u201C\u7EC4\u5408\u8BA1\u7B97\u201D\u8BBE\u7F6E\uFF1B"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "2.\u5C06\u9700\u8981\u7EC4\u5408\u8BA1\u7B97\u7684\u8003\u6838\u5185\u5BB9\u8F93\u5165\u76F8\u540C\u7684\u3010\u6570\u5B57\u3011\u5373\u53EF\uFF0C\u5982\uFF1A\u201C\u81EA\u5B9A\u4E49\u51FD\u6570\u201D\u548C\u201C\u51FD\u6570\u201D\u9700\u8981\u7EC4\u5408\u8BA1\u7B97\u7684\u65F6\u5019\uFF0C\u5219\u9700\u8981\u5728\u8FD9\u4E24\u4E2A\u5B9E\u8BAD\u4F5C\u4E1A\u540E\u9762\u8F93\u5165\u76F8\u540C\u7684\u6570\u5B57\uFF1B"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "3.\u7EC4\u5408\u8BA1\u7B97\u65F6\uFF0C\u4F1A\u4EE5\u8BE5\u8BA4\u8BC1\u5C4A\u522B\u4E0B\u4E13\u4E1A\u8BA4\u8BC1\u7684\u5B66\u751F\u603B\u6570\u4E3A\u57FA\u51C6\u8BA1\u7B97\u5B9E\u8BAD\u4F5C\u4E1A\u5E73\u5747\u5206\u3002")); }; const shixuntable = (item) => { var _a2, _b, _c, _d, _e, _f; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", height: "38px", background: "#F5F5F5", alignItems: "center", textAlign: "center", marginTop: "20px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u8003\u6838\u65B9\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194 } }, "\u6559\u5B66\u8BFE\u5802"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324 } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { checked: howorkids.length === (item == null ? void 0 : item.shixun_count), onChange: (e) => { var _a3, _b2; (_a3 = item == null ? void 0 : item.courses) == null ? void 0 : _a3.map((items2) => { var _a4; (_a4 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _a4.map((jtems) => { jtems.checked = e.target.checked; }); }); sethoworklist(__spreadValues({}, item)); if (e.target.checked) { let aa = (_b2 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _b2.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.shixun_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); sethoworkids([...bb]); } else { sethoworkids([]); } } }), " \u8003\u6838\u5185\u5BB9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277 } }, "\u5206\u73ED"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214 } }, "\u8003\u6838\u77E5\u8BC6\u70B9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87 } }, "\u6EE1\u5206\u503C"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u7EC4\u5408\u8BA1\u7B97") ), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", alignItems: "center", textAlign: "center", border: "1px solid #f0f0f0", maxHeight: "552px", overflow: "auto" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, item.name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194, maxHeight: "552px" } }, (_a2 = item == null ? void 0 : item.courses) == null ? void 0 : _a2.map((items2) => { var _a3, _b2, _c2, _d2; return /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: ((_a3 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _a3.length) === 0 ? 40 : ((_b2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _b2.length) * 40, lineHeight: ((_c2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _c2.length) === 0 ? "40px" : ((_d2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _d2.length) * 40 + "px" } }, items2.name ); })), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324, maxHeight: "552px", textAlign: "left" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_checkbox["default"].Group, { onChange: (e) => { var _a3; let aa = (_a3 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _a3.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.shixun_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); let res = bb.filter((item2) => e.includes(item2.id)); sethoworkids(res); }, style: { width: "100%" }, value: howorkids == null ? void 0 : howorkids.map((item2) => item2 == null ? void 0 : item2.id) }, (_b = item == null ? void 0 : item.courses) == null ? void 0 : _b.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { onChange: (e) => { items3.checked = e.target.checked; sethoworklist(__spreadValues({}, item)); }, value: items3 == null ? void 0 : items3.id }, items3.name) )); } ) )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277, maxHeight: "552px" } }, (_c = item == null ? void 0 : item.courses) == null ? void 0 : _c.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: items3.groups }, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.groups ))); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214, maxHeight: "552px" } }, (_d = item == null ? void 0 : item.courses) == null ? void 0 : _d.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], { value: items3.ec_point_ids, onChange: (value) => { items3.ec_point_ids = value; sethoworklist(__spreadValues({}, item)); }, mode: "multiple", style: { width: 200 } }, points.map((item2, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { key: index, value: item2.id }, `\u77E5\u8BC6\u70B9${index + 1}\uFF1A`, item2.name); })) )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87, maxHeight: "552px" } }, (_e = item == null ? void 0 : item.courses) == null ? void 0 : _e.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.total_score )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93, maxHeight: "552px" } }, (_f = item == null ? void 0 : item.courses) == null ? void 0 : _f.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(input_number/* default */.Z, { disabled: true }) ) : (_b2 = items2 == null ? void 0 : items2.shixun_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { min: 1, step: 0.1, parser, value: items3 == null ? void 0 : items3.position, onChange: (e) => { items3.position = e; sethoworklist(__spreadValues({}, item)); } } ) )); } )) )); }; const exercisetable = (item) => { var _a2, _b, _c, _d, _e, _f; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", height: "38px", background: "#F5F5F5", alignItems: "center", textAlign: "center", marginTop: "20px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u8003\u6838\u65B9\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194 } }, "\u6559\u5B66\u8BFE\u5802"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324 } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { checked: howorkids.length === (item == null ? void 0 : item.exercise_count), onChange: (e) => { var _a3, _b2; (_a3 = item == null ? void 0 : item.courses) == null ? void 0 : _a3.map((items2) => { var _a4; (_a4 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _a4.map((jtems) => { jtems.checked = e.target.checked; }); }); sethoworklist(__spreadValues({}, howorklist)); if (e.target.checked) { let aa = (_b2 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _b2.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.exercise_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); sethoworkids([...bb]); } else { sethoworkids([]); } } }), " \u8003\u6838\u5185\u5BB9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277 } }, "\u5206\u73ED"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214 } }, "\u8003\u6838\u77E5\u8BC6\u70B9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87 } }, "\u6EE1\u5206\u503C"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u7EC4\u5408\u8BA1\u7B97") ), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", alignItems: "center", textAlign: "center", border: "1px solid #f0f0f0", maxHeight: "552px", overflow: "auto" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, item.name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194, maxHeight: "552px" } }, (_a2 = item == null ? void 0 : item.courses) == null ? void 0 : _a2.map((items2) => { var _a3, _b2, _c2, _d2; return /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: ((_a3 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _a3.length) === 0 ? 40 : ((_b2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _b2.length) * 40, lineHeight: ((_c2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _c2.length) === 0 ? "40px" : ((_d2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _d2.length) * 40 + "px" } }, items2.name ); })), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324, maxHeight: "552px", textAlign: "left" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_checkbox["default"].Group, { onChange: (e) => { var _a3; let aa = (_a3 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _a3.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.exercise_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); let res = bb.filter((item2) => e.includes(item2.id)); sethoworkids(res); }, style: { width: "100%" }, value: howorkids == null ? void 0 : howorkids.map((item2) => item2 == null ? void 0 : item2.id) }, (_b = item == null ? void 0 : item.courses) == null ? void 0 : _b.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { onChange: (e) => { items3.checked = e.target.checked; sethoworklist(__spreadValues({}, item)); }, value: items3 == null ? void 0 : items3.id }, items3.name) )); } ) )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277, maxHeight: "552px" } }, (_c = item == null ? void 0 : item.courses) == null ? void 0 : _c.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: items3.groups }, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.groups ))); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214, maxHeight: "552px" } }, (_d = item == null ? void 0 : item.courses) == null ? void 0 : _d.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], { value: items3.ec_point_ids, onChange: (value) => { items3.ec_point_ids = value; sethoworklist(__spreadValues({}, item)); }, mode: "multiple", style: { width: 200 } }, points.map((item2, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { key: index, value: item2.id }, `\u77E5\u8BC6\u70B9${index + 1}\uFF1A`, item2.name); })) )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87, maxHeight: "552px" } }, (_e = item == null ? void 0 : item.courses) == null ? void 0 : _e.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.total_score )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93, maxHeight: "552px" } }, (_f = item == null ? void 0 : item.courses) == null ? void 0 : _f.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(input_number/* default */.Z, { disabled: true }) ) : (_b2 = items2 == null ? void 0 : items2.exercise_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { min: 1, step: 0.1, parser, value: items3 == null ? void 0 : items3.position, onChange: (e) => { items3.position = e; sethoworklist(__spreadValues({}, item)); } } ) )); } )) )); }; const commontable = (item) => { var _a2, _b, _c, _d, _e, _f; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", height: "38px", background: "#F5F5F5", alignItems: "center", textAlign: "center", marginTop: "20px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u8003\u6838\u65B9\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194 } }, "\u6559\u5B66\u8BFE\u5802"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324 } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { checked: howorkids.length === (item == null ? void 0 : item.common_count), onChange: (e) => { var _a3, _b2; (_a3 = item == null ? void 0 : item.courses) == null ? void 0 : _a3.map((items2) => { var _a4; (_a4 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _a4.map((jtems) => { jtems.checked = e.target.checked; }); }); sethoworklist(__spreadValues({}, howorklist)); if (e.target.checked) { let aa = (_b2 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _b2.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.common_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); sethoworkids([...bb]); } else { sethoworkids([]); } } }), " \u8003\u6838\u5185\u5BB9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277 } }, "\u5206\u73ED"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214 } }, "\u8003\u6838\u77E5\u8BC6\u70B9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87 } }, "\u6EE1\u5206\u503C"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u7EC4\u5408\u8BA1\u7B97") ), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", alignItems: "center", textAlign: "center", border: "1px solid #f0f0f0", maxHeight: "552px", overflow: "auto" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, item.name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194, maxHeight: "552px" } }, (_a2 = item == null ? void 0 : item.courses) == null ? void 0 : _a2.map((items2) => { var _a3, _b2, _c2, _d2; return /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: ((_a3 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _a3.length) === 0 ? 40 : ((_b2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _b2.length) * 40, lineHeight: ((_c2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _c2.length) === 0 ? "40px" : ((_d2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _d2.length) * 40 + "px" } }, items2.name ); })), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324, maxHeight: "552px", textAlign: "left" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_checkbox["default"].Group, { onChange: (e) => { var _a3; let aa = (_a3 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _a3.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.common_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); let res = bb.filter((item2) => e.includes(item2.id)); sethoworkids(res); }, style: { width: "100%" }, value: howorkids == null ? void 0 : howorkids.map((item2) => item2 == null ? void 0 : item2.id) }, (_b = item == null ? void 0 : item.courses) == null ? void 0 : _b.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { onChange: (e) => { items3.checked = e.target.checked; sethoworklist(__spreadValues({}, item)); }, value: items3 == null ? void 0 : items3.id }, items3.name) )); } ) )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277, maxHeight: "552px" } }, (_c = item == null ? void 0 : item.courses) == null ? void 0 : _c.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: items3.groups }, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.groups ))); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214, maxHeight: "552px" } }, (_d = item == null ? void 0 : item.courses) == null ? void 0 : _d.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], { value: items3.ec_point_ids, onChange: (value) => { items3.ec_point_ids = value; sethoworklist(__spreadValues({}, item)); }, mode: "multiple", style: { width: 200 } }, points.map((item2, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { key: index, value: item2.id }, `\u77E5\u8BC6\u70B9${index + 1}\uFF1A`, item2.name); })) )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87, maxHeight: "552px" } }, (_e = item == null ? void 0 : item.courses) == null ? void 0 : _e.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.total_score )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93, maxHeight: "552px" } }, (_f = item == null ? void 0 : item.courses) == null ? void 0 : _f.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(input_number/* default */.Z, { disabled: true }) ) : (_b2 = items2 == null ? void 0 : items2.common_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { min: 1, step: 0.1, parser, value: items3 == null ? void 0 : items3.position, onChange: (e) => { items3.position = e; sethoworklist(__spreadValues({}, item)); } } ) )); } )) )); }; const grouptable = (item) => { var _a2, _b, _c, _d, _e, _f; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", height: "38px", background: "#F5F5F5", alignItems: "center", textAlign: "center", marginTop: "20px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u8003\u6838\u65B9\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194 } }, "\u6559\u5B66\u8BFE\u5802"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324 } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { checked: howorkids.length === (item == null ? void 0 : item.group_count), onChange: (e) => { var _a3, _b2; (_a3 = item == null ? void 0 : item.courses) == null ? void 0 : _a3.map((items2) => { var _a4; (_a4 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _a4.map((jtems) => { jtems.checked = e.target.checked; }); }); sethoworklist(__spreadValues({}, howorklist)); if (e.target.checked) { let aa = (_b2 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _b2.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.group_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); sethoworkids([...bb]); } else { sethoworkids([]); } } }), " \u8003\u6838\u5185\u5BB9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277 } }, "\u5206\u73ED"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214 } }, "\u8003\u6838\u77E5\u8BC6\u70B9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87 } }, "\u6EE1\u5206\u503C"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, "\u7EC4\u5408\u8BA1\u7B97") ), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", alignItems: "center", textAlign: "center", border: "1px solid #f0f0f0", maxHeight: "552px", overflow: "auto" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93 } }, item.name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 194, maxHeight: "552px" } }, (_a2 = item == null ? void 0 : item.courses) == null ? void 0 : _a2.map((items2) => { var _a3, _b2, _c2, _d2; return /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: ((_a3 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _a3.length) === 0 ? 40 : ((_b2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _b2.length) * 40, lineHeight: ((_c2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _c2.length) === 0 ? "40px" : ((_d2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _d2.length) * 40 + "px" } }, items2.name ); })), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 324, maxHeight: "552px", textAlign: "left" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_checkbox["default"].Group, { onChange: (e) => { var _a3; let aa = (_a3 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _a3.map( (item2) => { var _a4; return (_a4 = item2 == null ? void 0 : item2.group_models) == null ? void 0 : _a4.map((jtems) => jtems); } ); let bb = []; aa.map((item2) => { if (item2.length > 0) { item2 == null ? void 0 : item2.map((jtem) => { bb.push(jtem); }); } }); let res = bb.filter((item2) => e.includes(item2.id)); sethoworkids(res); }, style: { width: "100%" }, value: howorkids == null ? void 0 : howorkids.map((item2) => item2 == null ? void 0 : item2.id) }, (_b = item == null ? void 0 : item.courses) == null ? void 0 : _b.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { onChange: (e) => { items3.checked = e.target.checked; sethoworklist(__spreadValues({}, item)); }, value: items3 == null ? void 0 : items3.id }, items3.name) )); } ) )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 277, maxHeight: "552px" } }, (_c = item == null ? void 0 : item.courses) == null ? void 0 : _c.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: items3.groups }, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.groups ))); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 214, maxHeight: "552px" } }, (_d = item == null ? void 0 : item.courses) == null ? void 0 : _d.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], { value: items3.ec_point_ids, onChange: (value) => { items3.ec_point_ids = value; sethoworklist(__spreadValues({}, item)); }, mode: "multiple", style: { width: 200 } }, points.map((item2, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { key: index, value: item2.id }, `\u77E5\u8BC6\u70B9${index + 1}\uFF1A`, item2.name); })) )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 87, maxHeight: "552px" } }, (_e = item == null ? void 0 : item.courses) == null ? void 0 : _e.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, "--" ) : (_b2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, items3.total_score )); } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 93, maxHeight: "552px" } }, (_f = item == null ? void 0 : item.courses) == null ? void 0 : _f.map( (items2) => { var _a3, _b2; return ((_a3 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _a3.length) === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(input_number/* default */.Z, { disabled: true }) ) : (_b2 = items2 == null ? void 0 : items2.group_models) == null ? void 0 : _b2.map((items3) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.textwidth, style: { height: 40, lineHeight: "40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { min: 1, step: 0.1, parser, value: items3 == null ? void 0 : items3.position, onChange: (e) => { items3.position = e; sethoworklist(__spreadValues({}, item)); } } ) )); } )) )); }; return /* @__PURE__ */ _react_17_0_2_react.createElement( modal["default"], { title: "\u6DFB\u52A0\u8BFE\u5802\u6570\u636E", wrapClassName: CurseSettingmodules.modalWrapContainer, open: isshow, width: current < 2 ? 740 : 1100, footer: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, current < 2 && /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { type: "primary", onClick: () => __async(this, null, function* () { var _a2; if (!selectIds || selectIds == "") { message/* default */.ZP.warning("\u8BF7\u9009\u62E9\u8BFE\u5802"); return; } let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${modalparams == null ? void 0 : modalparams.id}/course_evaluations/search_works.json`, { method: "get", params: { course_ids: selectIds, list_id: courseId || "" } } ); sethoworklist(res); let aa = (_a2 = res == null ? void 0 : res.courses) == null ? void 0 : _a2.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.shixun_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let bb = []; aa.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { bb.push(jtem); } }); } }); sethoworkids([...bb]); setactitykey("1"); setcurrent(2); }) }, "\u4E0B\u4E00\u6B65" ), current >= 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { type: "primary", onClick: () => __async(this, null, function* () { setishow(false); setcurrent(0); }) }, "\u53D6\u6D88" ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { type: "primary", loading: isloading, onClick: () => __async(this, null, function* () { var _a2, _b, _c, _d; let aa = (_a2 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _a2.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.common_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let common_works = []; aa.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { common_works.push(jtem); } }); } }); let bb = (_b = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _b.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.group_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let group_works = []; bb.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { group_works.push(jtem); } }); } }); let cc = (_c = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _c.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.exercise_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let exercise_works = []; cc.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { exercise_works.push(jtem); } }); } }); let dd = (_d = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _d.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.shixun_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let shixun_works = []; dd.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { shixun_works.push(jtem); } }); } }); if (activitykey === "1") { shixun_works = howorkids; } else if (activitykey === "2") { common_works = howorkids; } else if (activitykey === "3") { group_works = howorkids; } else { exercise_works = howorkids; } setisloading(true); if ((shixun_works == null ? void 0 : shixun_works.length) <= 0 && (common_works == null ? void 0 : common_works.length) <= 0 && (group_works == null ? void 0 : group_works.length) <= 0 && (exercise_works == null ? void 0 : exercise_works.length) <= 0) { message/* default */.ZP.info("\u8BF7\u9009\u62E9\u8003\u6838\u5185\u5BB9"); setisloading(false); return; } if (courseId) { let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${modalparams == null ? void 0 : modalparams.id}/course_evaluations/update_online`, { method: "put", body: { id: courseId, course_ids: selectIds, shixun_works, common_works, group_works, exercise_works } } ); if (res) { setishow(false); getcourse_evaluations(modalparams); getevaluations(modalparams); } } else { let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${modalparams == null ? void 0 : modalparams.id}/course_evaluations/create_online`, { method: "post", body: { course_ids: selectIds, shixun_works, common_works, group_works, exercise_works } } ); if (res) { setishow(false); getcourse_evaluations(modalparams); getevaluations(modalparams); } } setisloading(false); setcurrent(0); }) }, "\u4FDD\u5B58" ))), onCancel: () => { setcurrent(0); setishow(false); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: `calc(100% - 184px)`, margin: "0 auto" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(steps["default"], { current }, /* @__PURE__ */ _react_17_0_2_react.createElement( steps["default"].Step, { style: { cursor: "pointer" }, onClick: () => { setcurrent(1); }, key: 1, title: "\u5173\u8054\u8BFE\u5802" } ), /* @__PURE__ */ _react_17_0_2_react.createElement( steps["default"].Step, { style: { cursor: "pointer" }, onClick: () => __async(this, null, function* () { var _a2; if (selectIds.length <= 0) { message/* default */.ZP.info(`\u8BF7\u9009\u62E9\u8BFE\u5802`); return; } let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${modalparams == null ? void 0 : modalparams.id}/course_evaluations/search_works.json`, { method: "get", params: { course_ids: selectIds, list_id: courseId || "" } } ); sethoworklist(res); let aa = (_a2 = res == null ? void 0 : res.courses) == null ? void 0 : _a2.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.shixun_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let bb = []; aa.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { bb.push(jtem); } }); } }); sethoworkids([...bb]); setactitykey("1"); setcurrent(2); }), key: 2, title: "\u914D\u7F6E\u8003\u6838\u65B9\u5F0F\u4E0E\u5185\u5BB9" } ))), current < 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", alignItems: "center", marginTop: 30, padding: "0 40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { flex: 1 }, className: CurseSettingmodules.title }, "\u5173\u8054\u8BFE\u5802"), /* @__PURE__ */ _react_17_0_2_react.createElement( input["default"].Search, { className: CurseSettingmodules.inputWrap, style: { width: "342px", height: "auto" }, onSearch: (e) => { params.page = 1; params.name = e; setParams(__spreadValues({}, params)); getcourse(params); }, placeholder: "\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0" } ) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( table["default"], { style: { marginTop: "10px" }, dataSource: datas, rowKey: "id", scroll: { y: 300 }, rowSelection, onChange: handleChangePage, columns: [ { title: "\u8BFE\u5802\u540D\u79F0", dataIndex: "name" }, { title: "\u521B\u5EFA\u8005", dataIndex: "creator_name", width: 110 }, { title: "\u521B\u5EFA\u65F6\u95F4", dataIndex: "created_at", width: 133 }, { title: "\u7ED3\u675F\u65F6\u95F4", dataIndex: "end_time", width: 133, render: (text, record, index) => text || "- -" } ], pagination: { pageSize: params.per_page, total: params.total, current: params.page, showQuickJumper: true, hideOnSinglePage: false, showSizeChanger: true, position: ["bottomCenter"], showTotal: (total) => /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "mr10" }, "\u5171", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-orange" }, total), "\u6761\u6570\u636E") } } ))), current === 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.addCourseTabsContainer }, /* @__PURE__ */ _react_17_0_2_react.createElement( tabs["default"], { defaultActiveKey: "1", activeKey: activitykey, onChange: (e) => { var _a2, _b, _c, _d; setactitykey(e); if (e === "1") { let aa = (_a2 = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _a2.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.shixun_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let bb = []; aa.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { bb.push(jtem); } }); } }); sethoworkids([...bb]); } else if (e === "2") { let aa = (_b = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _b.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.common_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let bb = []; aa.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { bb.push(jtem); } }); } }); sethoworkids([...bb]); } else if (e === "3") { let aa = (_c = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _c.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.group_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let bb = []; aa.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { bb.push(jtem); } }); } }); sethoworkids([...bb]); } else { let aa = (_d = howorklist == null ? void 0 : howorklist.courses) == null ? void 0 : _d.map( (item) => { var _a3; return (_a3 = item == null ? void 0 : item.exercise_models) == null ? void 0 : _a3.map((jtems) => jtems); } ); let bb = []; aa.map((item) => { if (item.length > 0) { item == null ? void 0 : item.map((jtem) => { if (jtem.checked) { bb.push(jtem); } }); } }); sethoworkids([...bb]); } } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { tab: "\u5B9E\u8BAD\u4F5C\u4E1A", key: 1 }, titletes(), shixuntable(__spreadProps(__spreadValues({}, howorklist), { name: "\u5B9E\u8BAD\u4F5C\u4E1A" }))), /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { tab: "\u666E\u901A\u4F5C\u4E1A", key: 2 }, titletes(), commontable(__spreadProps(__spreadValues({}, howorklist), { name: "\u666E\u901A\u4F5C\u4E1A" }))), /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { tab: "\u5206\u7EC4\u4F5C\u4E1A", key: 3 }, titletes(), grouptable(__spreadProps(__spreadValues({}, howorklist), { name: "\u5206\u7EC4\u4F5C\u4E1A" }))), /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { tab: "\u5728\u7EBF\u8003\u8BD5", key: 4 }, titletes(), exercisetable(__spreadProps(__spreadValues({}, howorklist), { name: "\u5728\u7EBF\u8003\u8BD5" }))) )) ); } /* harmony default export */ var AddCourseModal = (Addmodal); // EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js var lodash = __webpack_require__(89392); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(87526); ;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/SettingModal.tsx var SettingModal_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()); }); }; function SettingModal_Addmodal({ isshow, setishow, modalparams, getcourse_evaluations }) { var _a, _b, _c, _d, _e, _f; const initParams = { page: 1, per_page: 20, total: 0, name: "" }; const [current, setcurrent] = (0,_react_17_0_2_react.useState)(0); let [params, setParams] = (0,_react_17_0_2_react.useState)(initParams); const [datas, setdatas] = (0,_react_17_0_2_react.useState)([]); const [column, setColumn] = (0,_react_17_0_2_react.useState)([]); const [datalist, setdatalist] = (0,_react_17_0_2_react.useState)([]); let [khdatas, setkhdatas] = (0,_react_17_0_2_react.useState)({}); const [width, setwidth] = (0,_react_17_0_2_react.useState)(); const [isloading, setisloading] = (0,_react_17_0_2_react.useState)(false); const [activitykey, setactivitykey] = (0,_react_17_0_2_react.useState)("1"); const paramsRef = (0,_react_17_0_2_react.useRef)(initParams); const [editId, setEditId] = (0,_react_17_0_2_react.useState)(null); const editIdRef = (0,_react_17_0_2_react.useRef)(null); const editIdValue = (0,_react_17_0_2_react.useRef)(""); const tableInitRef = (0,_react_17_0_2_react.useRef)([]); (0,_react_17_0_2_react.useEffect)(() => { if (isshow) { getevaluation_settings(params); setactivitykey("1"); } }, [isshow]); const handleClickNum = (id) => { setEditId(id); editIdRef.current = id; dealData((0,lodash.cloneDeep)(tableInitRef.current)); }; const parser = (v) => { let num = v; num = isNaN(num) ? "" : num; if (num[0] === ".") { num = ""; } return num; }; function getevaluation_settings(parasm) { return SettingModal_async(this, null, function* () { var _a2; let res = yield (0,fetch/* default */.ZP)(`/api/ec_courses/${modalparams.id}/evaluations/evaluation_settings.json`, { method: "get", params: parasm }); setdatas(res); setwidth(((_a2 = res == null ? void 0 : res.ec_course_targets) == null ? void 0 : _a2.length) * 75 + 227 + 240 + 32); let datas2 = res == null ? void 0 : res.ec_course_targets; datas2 == null ? void 0 : datas2.unshift({ content: "11" }); tableInitRef.current = datas2; dealData(datas2); }); } function evaluation_settings_subitems(parasm) { return SettingModal_async(this, null, function* () { var _a2; let res = yield (0,fetch/* default */.ZP)(`/api/ec_courses/${modalparams.id}/evaluations/evaluation_settings_subitems.json`, { method: "get", params: parasm }); let items = []; res.evaluations.map((item) => { var _a3; (_a3 = item == null ? void 0 : item.subitems) == null ? void 0 : _a3.map((itemslist) => { items.push(itemslist); }); }); setwidth(((_a2 = res == null ? void 0 : res.ec_course_targets) == null ? void 0 : _a2.length) * 75 + 227 + 240 + 32); setkhdatas({}); setkhdatas(res); setdatalist(items); }); } const handleBlur = (type) => SettingModal_async(this, null, function* () { var _a2, _b2, _c2; setEditId(null); const rel = editIdRef.current; editIdRef.current = null; let url = type ? `/api/ec_courses/${modalparams.id}/evaluations/update_evaluation_settings` : `/api/ec_courses/${modalparams.id}/evaluations/update_evaluation_setting_subitem`; const res = yield (0,fetch/* default */.ZP)(url, { method: "post", body: { random_number: (_a2 = rel == null ? void 0 : rel.split("-")) == null ? void 0 : _a2[1], ec_course_target_id: (_b2 = rel == null ? void 0 : rel.split("-")) == null ? void 0 : _b2[0], weight: editIdValue.current, ec_course_evaluation_subitem_ids: type ? null : [(_c2 = rel == null ? void 0 : rel.split("-")) == null ? void 0 : _c2[2]] } }); if (res.status === 0) { message/* default */.ZP.success("\u4FDD\u5B58\u6210\u529F"); if (type) { getevaluation_settings(params); getcourse_evaluations(modalparams); } else { evaluation_settings_subitems(params); getcourse_evaluations(modalparams); } } }); const dealData = (d) => { let cloneData = (0,lodash.cloneDeep)(d); cloneData[0].title = /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.line }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u8BFE\u7A0B\u76EE\u6807"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u8003\u6838\u65B9\u5F0F")); cloneData[0].dataIndex = "work_name"; cloneData[0].width = 180; cloneData[0].fixed = "left"; cloneData[0].render = (v, r) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.omit }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { title: v }, v), r.warning && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u8BE5\u8003\u6838\u65B9\u5F0F\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E" }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { color: "#FF9D18" }, className: "iconfont icon-hongsejingshi ml5" }))); const render = (k, g, id, ei) => { var _a2, _b2; let realV1 = ""; let realV2 = ""; if (k) { realV1 = k.split("-")[0]; realV2 = k.split("-")[1]; } let realV = ((_a2 = paramsRef.current) == null ? void 0 : _a2.tab) === "1" ? realV1 : realV2; let weights = (_b2 = g == null ? void 0 : g.relation[ei - 1]) == null ? void 0 : _b2.weight; return /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, editIdRef.current === `${id}-${g.random_number}` ? /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { key: `${id}-${g.random_number}`, autoFocus: true, defaultValue: weights, onBlur: () => handleBlur(true), onFocus: () => { editIdValue.current = weights; }, step: 0.1, parser, onChange: (e) => editIdValue.current = e, style: { width: 100 } } ) : /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, { key: `${id}-${g.random_number}` }, /* @__PURE__ */ _react_17_0_2_react.createElement( "span", { className: CurseSettingmodules.tbl, onClick: () => handleClickNum(`${id}-${g.random_number}`), style: { color: realV === "H" ? "#0152D9" : realV === "M" ? "#07C160" : realV === "L" ? "#FF9D18" : "#0152d9" } }, weights ? /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, weights) : "\u8F93\u5165\u6570\u5B57" ))); }; cloneData = cloneData.map((e, ei) => { if (!ei) { return e; } return { title: /* @__PURE__ */ _react_17_0_2_react.createElement("span", { key: Math.random() }, /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: e.content }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u76EE\u6807" + ei)), e.warning && /* @__PURE__ */ _react_17_0_2_react.createElement( tooltip/* default */.Z, { title: "\u8BE5\u76EE\u6807\u4E0B\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01" }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { color: "#FF9D18" }, className: "iconfont icon-hongsejingshi ml5" }) )), dataIndex: "content", // width:ei===cloneData.length-1?120:'', width: 120, fixed: ei === cloneData.length - 1 ? "right" : "", render: (k, g) => render(k, g, e.id, ei) }; }); setColumn(cloneData || []); }; return /* @__PURE__ */ _react_17_0_2_react.createElement( modal["default"], { title: "\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4", open: isshow, width: width > 1060 ? 1060 : width, footer: null, centered: true, onCancel: () => { setishow(false); } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"], { activeKey: activitykey, onChange: (e) => { setactivitykey(e); if (e === "1") { getevaluation_settings(params); } else { evaluation_settings_subitems(params); } } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { tab: "\u8BBE\u7F6E\u8003\u6838\u65B9\u5F0F\u5360\u6BD4", key: 1 }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { marginTop: "10px", color: "#464F66", fontSize: "14px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u8BF4\u660E\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u6BCF\u4E00\u4E2A\u8BFE\u7A0B\u76EE\u6807\u4E0B\u7684\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")), /* @__PURE__ */ _react_17_0_2_react.createElement( table["default"], { columns: column, bordered: true, scroll: { x: ((_a = tableInitRef.current) == null ? void 0 : _a.length) * 120 + 180 > width || ((_b = tableInitRef.current) == null ? void 0 : _b.length) * 120 + 180 > 1060 ? ((_c = tableInitRef.current) == null ? void 0 : _c.length) * 120 + 180 : "max-content" }, dataSource: datas == null ? void 0 : datas.evaluations, pagination: false } )), /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { tab: "\u8BBE\u7F6E\u8003\u6838\u5185\u5BB9\u5360\u6BD4", key: 2 }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { marginTop: "10px", color: "#464F66", fontSize: "14px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u8BF4\u660E\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u6BCF\u4E00\u4E2A\u8003\u6838\u65B9\u5F0F\u4E0B\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { overflow: "auto", width: "100%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", background: "#F5F5F5", height: "78px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", borderLeft: "1px solid #E0E2EC", borderTop: "1px solid #E0E2EC", width: "240px", paddingLeft: "30px", lineHeight: "78px", flexShrink: 0 } }, "\u8003\u6838\u65B9\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", borderTop: "1px solid #E0E2EC", width: "227px", lineHeight: "78px", textAlign: "center", flexShrink: 0 } }, "\u8003\u6838\u5185\u5BB9"), (_d = khdatas == null ? void 0 : khdatas.ec_course_targets) == null ? void 0 : _d.map((item, index) => { var _a2; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: index != ((_a2 = khdatas == null ? void 0 : khdatas.ec_course_targets) == null ? void 0 : _a2.length) - 1 && "1px solid #E0E2EC", width: "75px", lineHeight: "78px", textAlign: "center", flexShrink: 0, background: "#F5F5F5", borderTop: "1px solid #E0E2EC" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: item.content }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u76EE\u6807" + (index + 1))), item.warning && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u8BE5\u76EE\u6807\u4E0B\u6709\u8003\u6838\u65B9\u5F0F\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01" }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { color: "#FF9D18" }, className: "iconfont icon-hongsejingshi ml5" }))); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { maxHeight: "550px" } }, ((_e = khdatas == null ? void 0 : khdatas.evaluations) == null ? void 0 : _e.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, { customText: "\u5F53\u524D\u6682\u65E0\u6570\u636E" }), (_f = khdatas == null ? void 0 : khdatas.evaluations) == null ? void 0 : _f.map((item, index) => { var _a2, _b2; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "100%", display: "flex", borderLeft: "1px solid #E0E2EC" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "240px", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, item.work_name), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", flexDirection: "column", borderRight: "1px solid #E0E2EC", width: "227px", flexShrink: 0 } }, (_a2 = item == null ? void 0 : item.subitems) == null ? void 0 : _a2.map((jtmes, jindex) => { return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderBottom: "1px solid #E0E2EC", paddingLeft: 8, paddingRight: 12, display: "flex", alignItems: "center" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: jtmes == null ? void 0 : jtmes.name }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.textone, style: { height: "42px", lineHeight: "42px" } }, jtmes == null ? void 0 : jtmes.name)), jtmes.warning && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u8BE5\u8003\u6838\u5185\u5BB9\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E" }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { color: "#FF9D18" }, className: "iconfont icon-hongsejingshi ml5" }))); })), (_b2 = khdatas == null ? void 0 : khdatas.ec_course_targets) == null ? void 0 : _b2.map((ktem, kindex) => { var _a3, _b3; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", flexDirection: "column", borderRight: "1px solid #E0E2EC", width: kindex != ((_a3 = khdatas == null ? void 0 : khdatas.ec_course_targets) == null ? void 0 : _a3.length) - 1 ? "75px" : "74px", flexShrink: 0 } }, (_b3 = item == null ? void 0 : item.subitems) == null ? void 0 : _b3.map((jtmes, jindex) => { var _a4, _b4, _c2; return /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { key: `${kindex}-${jindex}`, parser, step: 0.1, disabled: isloading, onBlur: (e) => SettingModal_async(this, null, function* () { setisloading(true); let res = yield (0,fetch/* default */.ZP)(`/api/ec_courses/${modalparams.id}/evaluations/update_evaluation_setting_subitem`, { method: "post", body: { random_number: jtmes == null ? void 0 : jtmes.random_number, ec_course_target_id: ktem == null ? void 0 : ktem.id, weight: e.target.value, ec_course_evaluation_subitem_ids: jtmes == null ? void 0 : jtmes.ec_course_evaluation_subitem_ids } }); setisloading(false); if (res) { evaluation_settings_subitems(params); getcourse_evaluations(modalparams); } }), defaultValue: (_b4 = (_a4 = jtmes == null ? void 0 : jtmes.relation) == null ? void 0 : _a4[kindex]) == null ? void 0 : _b4.weight, style: { height: 43, lineHeight: "43px", width: kindex != ((_c2 = khdatas == null ? void 0 : khdatas.ec_course_targets) == null ? void 0 : _c2.length) - 1 ? "75px" : "74px" } } ); })); })); })))))) ); } /* harmony default export */ var SettingModal = (SettingModal_Addmodal); ;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/tx.png var tx_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAEhlJREFUeF7tnXlw3dV1xz/3/d6q1ZJtvFtYliyBWYxlsIxtFpewhrhAITDBBMeQUgY6De0QhqRJSyctYTqEQJrpTEloTTPQLAUKYUkdkwAG7HrBNsYWkmXZlm0t1r6/936/27nvSUJ66++993u/pzjcfzSj373nnHu+727nnnOuYIqXA8dl6cgwVVJQJSVVQlAFzJJQKKBQyvBf1Q0JfULQF/oLfUCrlNQJQZ2Q1Hm81C1dIDqncpfFVBNu9zE5VwZZh846BFdKydlWyigETUjeRmOrcLJ1+UJx0kr6mdKaEoDsbZRVQYO7JNyCDI0A+4oaPfArp4PNF5aLOvsYx+aUM0AONsvpg8PcISUbgEtyrYhR/juE4Pk8Ly+cM1905EIm2wHZ2yznB4Z5GLgHiS8XnU7KUzAEPOvy8sSF80Vz0voWVrANkJ3H5GL8PCJkaGpyW9iHrJES4JeCzbh5fMVCcThrjCYQzjogh9pl4UA3j0nBg0g0OzplOQ+BLiTP5E/jO9Uzhdq9Za1kFZDdDfJ2A55EMidrPbCRsICTQvDXyyvEi9limxVAdjfKMmnwEyn5k2wJnku6QvBb4WDT8nJx1Go5LAdkT71cbwiek5ISq4WdSvSEoMsh2XhRpXjFSrksA2SnlC7RwPclfMNKAac6LQE/kBV8c4UQAStktQSQ/Y1y1oiO+qWstEKoP0Aa2z0a688vF62Zyp4xIPuOynK/n98AizMV5g+8/WG3m6svKBONmfQjI0D2HJHLdJ03kMzORIgzpq2gRdO47qJF4qN0+5Q2ILsa5Vqp8xpQlC7zM7Rdr9D4Yk25eDed/qUFSGhkBPn952DEVXmv5uTydEZKyoCE1owA2z6fppL8/gUtbherU11TUgJkdDe17fMF3PRkdNijsTqV3ZdpQNQ5gwbUvPjHurU1jUJExe1UsNbsOcU0ILvq5Q8k/FW6Uv0xt1OHx5pK8ZAZHZgCRJlDdHjZDMHP68TWgAZ/asbMkhSQUUPhnjPdNpXtH5KyfQkHFyUzSCYFZFeD3HKmWm2zDUIkfWUlrqkQVyXimxCQ0H2G5AW7BY/Hr8AxSLHsxBvoxqkP4tKH0Qw/4CDg9BJ0+PA78xlwltLNNAKGc6qIPi6HQ3BHovuUuICom77+Hupyfbnk1QLMdrRTLHrQNAGOsMgCgQz6kYER8PuRI4NIKScBMOQqpcc7nzZmImXSycAe8ASnCoqpinfzGFfKXO+qXA6dub5uprsHlOqTK0vXMfp7kIO9yOBkS3hAy6PVV00Hpcnp2FBDwFM1lSLmNUVMQEYdEtToyMkd+FmePub5unAIE0BEKVCGgDG6O0Aak74Oe6bT5DmPEcNlg9oTsBDouKmK5TgRG5AG+W9I7rFbaiXMwvwOZrj7M2atRonR2YIcGZ5Ey9A8NOUtp0/mZ8wjIwKCZ1dUiHujFv7Ifyi/qeAQh+121dGEpKKgjQLnZAVm0mlpGMjOFoyhgQgyghNFF3HayN0UplyMnD4WR/p9RY2QnQ3yaSQPZqKIdNpWFrZR5FT+aRYXaaC3NSP9I1GgNBVdQo8R8tPOTRE8s6JC/OVE5pMAUe6dA8Mct9ujcH5eF7M8vdlTih4g2HocdH3y9CVcNBTWMmR4ssc7EWXBUL6XBRPdVicBsqtBPiAlz9gpXal7gEX5p7POUg4PoLdHO7oHnIUc8l2CkaNtsRA8WFMhfjSmgEhAdkjJxVnXzigDtYs6r+gkLkfQFpYKEAVMZGktPJcWOdcWGWIw2bGiUoxb0McBUSEBAZ1Ddko129vDPF+3fSz9IwRbj0XxMxwuDuavIShzssvHpVE9FgoxDsiuBvk9KXnULu04hcF5xSfQxOSzQrb566dPIqN2XdBZUMlxyrLNPiZ9IfjHmgrxLfVxHJCdDfKQncEyMz39LMyzPwRDmVj0thPRo0Rz87HvMjM2AetBE9StqBDV44CoMDJjhGgprWc9TjFr29xkMkuJ3tKEDEavW0eKauk1CpJRyMp3h4d5KrwuNEJ2Nco7pc7zWeEUg6gDybKS4+ZsVFkQyug+jdHXFUW5M38xx8WiLHBMTlJobKgpF/8ZBqRe/lTCxuTNrKlR7BqmoiBjr8u0hZEjQ6HDYmQJOgs54M2Ny4CA52oqxdfCgDTIJintW9FytX6MAyANgicaIcJcr5bUvQW5iaBQ0cE1FWKRUHHgQ8PYurrO8fUw12vjdjfGWAq2HIWAutyaXD4pvJJAjra/Pi/Txe56ucqA99Me/yk2VNvc6sJTeDV7DoPxxDM62zAGeqI+D3tmcESrxu/wptizzKs74FKxq0HeLSXPZU4uOQU1Py4pbLXUopuca+waRm8HRk90UgfhcjOiO6n3XUxQ2HtvIgQbxc56+U/AI+l2LJV2Mzz9lKmzh5q7RW6vVNUuS+22oormAj1Au6uMk57KVLpnRd3H1Qj5bym5yQpqyWio0VEYuu9QN4E5BmSgBzVtRRXhCN00BoWHA/lrk3XJ0u9C8JIC5H0pWWUp5TjEzi8+gdsmQ2Ky/siBHvRYgExouK9gHRJHMlKWfReCD8TOBrkPyfmWUU1A6JyiU+Rp/qkxZfV2YfTEN/srd4J9BVfaoZbPeAj2qxFyxOqMO/F6sSCvi7OyeRGVgvqMrnaM/vhb736thMO+mhQoZl5VnUXUoq5+JtMzJ5ecgrLwnhu6/5h8c5e8pfU19I5TyMF4zhQiBEa/Ns16xokpdohd9XLETocGtYYsLmgPT105LMGTjVFXukocKRwc85xHt/Ms26VTjg+2AzLWyxL3IAt8nTkZLcrjUT81OQlDUPPR6yil1b0Iv7D/UKj0EgLEzikr8ienQCnPb7f9l6jWDrWGjBW/ls8h36rc3IVM7n2HrYt6LM1XF7aQ74x00ckiRqH7kGMhv+Cxcrywhk6Z+0wg4UXdxm1vLDXnOf1UFbSk6TaaOnBqIVcL+ljp987hsHNp6oSy0WJ027tNSi7NBn2zNO1yBVIncL21OewxD/hdRXzqXYEu7Tv8JdKJELxvq+kkkTDK032ON9r6ahZUM/WMzlaMgbBDni481BfW5t7xeoLgIdOJncbFZEpTLkHKNSgbRZnax2xXAYePpoIaBo3c7KYS9C9kXLTN/G5G0aWeAcp8HZauKXJIrRstIZPNkHs6RzwX5OwSKsmUtdH2CyozoKhDY1l+hyWHx9AWV5nZpaAjfzEnHAunTjRVhDJCF1S5uMI1A0qhDxYWDeDVu0FP/XZRufkY3W0hpzg5fQEtrnLa+u29cDLTz4l1Qle46h92OzkkEjTPA/NngAJkvIwMgH8QAsNRUVGRtKShI/vCIIqSOYjimeAKrxUDw3CsHQZtPPaYBWXcySEEiM1uQLGEVLGc86bDzOJEl4kyDIqKITR0kMHwX3Vn4dA+M+t7C8EZOzWwuqxs6YJTneFrsqlSJrsB2ewoF6mEkoLwqHDbGMWsRklTKwzl1sY5ropJjnK5cCVVkhgGLJkHxTkK91OjRU1hLd3gzPHZcJIrqVKO3c7W+4/B3qPwt7dCaQbutJn6S7y0XfLKdp3b1ziZmavceJHO1qMLuy3hCP4gvPMJHBt1zVteDpvSdBY82AwvboN7r4L5aVyxDfrh7qcD9A4aaA4HX7rEyYpy+50vYoYj2BGw09EHWw9AX0Rs50M3wuIU02juboR/fxt0A3xuuO8aqEiRxgvvSf5j6+RF5NwFTm6u1fDZuEOOGbATmrbq5fZsveXR1B4eGcEY8TkLZsA3bzLvGPTeQfivbWBM2Ca5nOGRdv5Cc/um3iH46g8DDPmjBZqW5+DLa1wsnGGOVoa1Yoe0jU5bWQn63NUYXi8Sla9cBpeaeFvnzT3w6s7YlBwOuPMyWGnCv+2nWyU/fy/RFsvBjRc7qa3M7hSWMOjT6rBoNZ28cxCOxPBHi1RpUR589zbwJpgqfvkBvP1xYmCVQ+TNK2FdAsemjn7Y+HQAf6zhGkF+1RIX1y93oMC2vCQLix7dbVmSOEAt3v+7H1pTcHK/6gK4KU54xoefwvMqMa3J8o0b468pP37T4H92mE/VXjXXyZfXaHisPiclSxyg+mpFag112Hr9I+iJjkBOqE6nBt/+M2JuP4cD8N0Xod9E5o3ZJfDtW2Kf+NWZY9OPAujqEJRCmV3s4KtXulAj2YpiOrXG6ChJO/mMshe98RGoRTOdcn4Z3Hd17Ja/OwC/MBE48edXwwVxAmr/+RWDLXvNj46JkhT5wqDMtsJdy2zymRAg4feiUk7PpMBQIyNyW5sqMA9eD9XzolupNemxX8DpBFk41PZZbaNjlaPtcN+/BpARaZtSkc+tOdhwhYvyWam0iqibanom1TzVBGbqkPX67vRHxkSR55bCozfHnnJ2HobntsZXxt+sh0VxfNz+5U344JBOR58elX0uFfU6HQ7uXueKyycZrZQTmCmCqaT4GwnA63ugK8U1I5Hgt62Gy8+NXePxl+B4DD/pC8+Gr38hdpvDLfDkq+FvQR3aumOfQZIpc+y7U3PwtXUuymaabTFaL90Uf6q5mSSYajel1gx1Crey5Hvh724DdT8SWX74a/g0xoOpq6rC55BYRYGhQJlYegYyGy0uh4NNX3CxIAWzTdpJMMcET5QmNhCEN/dCe5YyK12xFG6NcFBS69OjP5t8Sh+TVYH3/Q3jeTLHdX/gOPz4zdhA+QOSlu4gARNnklgUfG4H91/rMmUgzThNbGiUhF9ci0qkrKysb+2Fk9Hx95YNFM0Bj97CpF3Nuwfhxffis7j/Wli6YPL3eFPcWC21A25RU9hIalvhsfYzCh3cd60rof3LskTKimmsVOPvHoL6zxwALQMhktA58+GB6z7771OvJeZbuwQ2XP5Z/T1H4Nkt5sRr6w7SN5ReqETFbCd3XaGhfkSximWpxsenrnr55NgLbB8fhx0N5jppRa2/uAbOWxjewX0rznQ1cdp6/E5CilGj+B9+mZq1oLUrSP9weqBcWuXihppoRCxPxq86O/ZcRUc/K1/dFb7ts6ucVRw+wW87FLbyJitj01aq5hZFVxmQT54OMBxIr4O3r/FEWpyz81yFElY96PLKbrad7LT/Rbaba2H/UXPT5Mol8JW18Pc/T2/3FwhKjrcHkGm4Qbg0Bw9c72JGOLdm9h50GftVbtkny1/byfv+IJmcVZP9yKO+e90wouJFTbRUF1Y31ICyDqdbOvt0uvpT9wdT/GYVa9x/jbMlLy/LTx6Nde7Xe+Syt3bz+6A+dV9oU1vgTPyv1OVXU6s/rRN9gUfrfeBG5+VXLk39+by0b19e3i7Xbv2Y16YyKOmOjrF27T1BegdTW+Cn5Wm9917t/OJVF9r4bN74SNkhl721nzeC+pn5sORIQNJ82rzjVmmB1vL1a53XpTMyxnSa9giZuKa8sZvfDPntX+gzHQFm2qtpS594eR+n0ZwSx+FN17quXrskh0+vjsn24X4567X9vNLZf+a94GbmXLLsbOf2m9Zq62unwuPEY6Coc8qWl3niWPuZ9ZJbz4DB6d7YF1oOIbhhhfup2ut42OyzeMlGZcZTViSDn70j129v4Llg8Mx44D7eOlLo07ruusy58Uu1U/SB+4nAbPtElm3Zx09ae0nTJzHZ78i+78oicaR1cvzCyiXu316zUmxaXS6SODelLqflI2SiCJvflrfvaeLJkQBzUhdt6rQ40urHMCQzi7RTt65yPrS+VryYLemyCogS+tAhWfi7Jh77+AQPGnpunlDKVHltPbq+ukp75rpVfCfeY16Z8rBs22tWkG375eIPDvNIUzt3GZLY0TRmidlUz6Xhr57H5gsW8/jqSnHYDrZZHyGRnfiwXs7f18jDh05xz7CfiYFrdvTXFA+3i6HquTy7rJwnaitFdMZlU1TSq2Q7IGNibm+W0480cccnzdx1ute+N0viqUkpYm4p/1c5m81lZ/PCyvnC1lzGtk9ZiX4vb++T1cc62dB8mltauqlS/ld2FBXXOLOIuvkz+VXVXDavqRZ1dvBNxCNnIySeUCq87mgL65rbWdfSzbqeQcpMWC5M6VE5TJfkc3ROCVvnlbJ1QRFbl1eLGP4rpshlpdKUAySylyqOvr2Lqq4BqroHqeoZomrEz2x/kILhIIX+IIUjAULXQR4nfU4XfV6NPreTfp+HlmIfddPyqCvJp25mCXVLF4jo7MlZUW16RP8ff48Qd2Sa15cAAAAASUVORK5CYII="; // EXTERNAL MODULE: ./src/pages/Engineering/util.tsx var util = __webpack_require__(4587); ;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/index.tsx var CurseSetting_defProp = Object.defineProperty; var CurseSetting_defProps = Object.defineProperties; var CurseSetting_getOwnPropDescs = Object.getOwnPropertyDescriptors; var CurseSetting_getOwnPropSymbols = Object.getOwnPropertySymbols; var CurseSetting_hasOwnProp = Object.prototype.hasOwnProperty; var CurseSetting_propIsEnum = Object.prototype.propertyIsEnumerable; var CurseSetting_defNormalProp = (obj, key, value) => key in obj ? CurseSetting_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var CurseSetting_spreadValues = (a, b) => { for (var prop in b || (b = {})) if (CurseSetting_hasOwnProp.call(b, prop)) CurseSetting_defNormalProp(a, prop, b[prop]); if (CurseSetting_getOwnPropSymbols) for (var prop of CurseSetting_getOwnPropSymbols(b)) { if (CurseSetting_propIsEnum.call(b, prop)) CurseSetting_defNormalProp(a, prop, b[prop]); } return a; }; var CurseSetting_spreadProps = (a, b) => CurseSetting_defProps(a, CurseSetting_getOwnPropDescs(b)); var CurseSetting_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 Page = ({ user }) => { var _a, _b, _c, _d, _e; const initParams = { page: 1, per_page: 20, total: 0, ec_major_school_id: null, ec_year_id: null, sort_by: null, direction: null, id: null }; let [params, setParams] = (0,_react_17_0_2_react.useState)(initParams); const [searchParams] = (0,_umi_production_exports.useSearchParams)(); const [majorData, setMajorData] = (0,_react_17_0_2_react.useState)([]); const [yearData, setYearData] = (0,_react_17_0_2_react.useState)([]); const [CourseList, setCourseList] = (0,_react_17_0_2_react.useState)([]); const [teaccher, setTeacher] = (0,_react_17_0_2_react.useState)([]); const [coursestandards, setcoursestandards] = (0,_react_17_0_2_react.useState)([]); let [coursetargets, setcoursetargets] = (0,_react_17_0_2_react.useState)(); let [coursetargetslist, setcoursetargetslist] = (0,_react_17_0_2_react.useState)(); const [SelectList, setSelectList] = (0,_react_17_0_2_react.useState)([]); const [showmodal, setshowmodal] = (0,_react_17_0_2_react.useState)(false); const [Evaluations, setEvaluations] = (0,_react_17_0_2_react.useState)([]); const [addshow, setaddshow] = (0,_react_17_0_2_react.useState)(false); const editCourseId = (0,_react_17_0_2_react.useRef)(); const [exportshow, setexport] = (0,_react_17_0_2_react.useState)(false); const [fileList, setFileList] = (0,_react_17_0_2_react.useState)([]); const urlParams = (0,_umi_production_exports.useLocation)(); const [loadings, setloading] = (0,_react_17_0_2_react.useState)(false); const [isdisabled, setisdisabled] = (0,_react_17_0_2_react.useState)(false); const [points, setpoints] = (0,_react_17_0_2_react.useState)([]); const [pointsid, setpointsid] = (0,_react_17_0_2_react.useState)(""); const [Calculation, setCalculation] = (0,_react_17_0_2_react.useState)(false); let [formulas, setformulas] = (0,_react_17_0_2_react.useState)({}); const [items, setitems] = (0,_react_17_0_2_react.useState)([]); const [currt, setcurrt] = (0,_react_17_0_2_react.useState)("1"); const [preview, setPreview] = (0,_react_17_0_2_react.useState)({ filename: "", editOffice: "view", type: "", className: "", data: "", close: true, hasMask: true, style: { position: "fixed", zIndex: 9999, background: "rgba(0,0,0,.7)" }, monacoEditor: { value: "", language: "", theme: "vs", // onChange: onCodeChange, // onSave: onSave, // forbidCopy: forbidCopy, options: { readOnly: true } } }); const [previews, setPreviews] = (0,_react_17_0_2_react.useState)({}); const [Settingmodal, setSettingmodal] = (0,_react_17_0_2_react.useState)(false); const [evaluationslist, setevaluationslist] = (0,_react_17_0_2_react.useState)(); const [form] = es_form["default"].useForm(); const [isshowmodal, setisshowmodal] = (0,_react_17_0_2_react.useState)(false); const [isloading, setisloading] = (0,_react_17_0_2_react.useState)(false); (0,_react_17_0_2_react.useEffect)(() => { var _a2; if ((_a2 = user == null ? void 0 : user.userInfo) == null ? void 0 : _a2.school_id) { getMajorData(); } }, [(_a = user == null ? void 0 : user.userInfo) == null ? void 0 : _a.school_id]); const getData = (record) => CurseSetting_async(void 0, null, function* () { var _a2; util/* localSelect */.U.setItem((_a2 = user == null ? void 0 : user.userInfo) == null ? void 0 : _a2.login, [record == null ? void 0 : record.ec_major_school_id, record == null ? void 0 : record.ec_year_id]); getTeacher(record); getCourse2(record); getcourse_targets(record); getcourse_evaluations(record); getevaluations(record); graduation_subitems(record); getec_points(record); }); function setnull() { setTeacher([]); setcoursestandards([]); setcoursetargetslist([]); setcoursetargets([]); setEvaluations([]); setevaluationslist([]); setSelectList([]); } const graduation_subitems = (record) => CurseSetting_async(void 0, null, function* () { const res = yield (0,fetch/* default */.ZP)( `/api/ec_years/${record.ec_year_id}/graduation_subitems.json`, { method: "get" } ); setSelectList((res == null ? void 0 : res.graduation_subitems) || []); }); const getTeacher = (record) => CurseSetting_async(void 0, null, function* () { const res = yield (0,fetch/* default */.ZP)( `/api/ec_years/${record.ec_year_id}/ec_courses/get_course_teachers.json`, { method: "get", params: record } ); setTeacher(res == null ? void 0 : res.data); }); const getCourse2 = (record) => CurseSetting_async(void 0, null, function* () { const res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${record.id}/ec_course_standards.json`, { method: "get", params: { ec_course_id: record == null ? void 0 : record.id } } ); setcoursestandards(res == null ? void 0 : res.data); }); const getcourse_targets = (record) => CurseSetting_async(void 0, null, function* () { const res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${record.id}/course_targets.json`, { method: "get", params: { ec_course_id: record == null ? void 0 : record.id } } ); setcoursetargetslist(res == null ? void 0 : res.course_targets); setcoursetargets(res == null ? void 0 : res.course_targets); }); const addDraggers = { onRemove: () => { setFileList([]); }, beforeUpload: (file) => { console.log(file); if ((file == null ? void 0 : file.size) > 1024 * 1024 * 50) { message/* default */.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"); return false; } let filelist = []; filelist.push(file); setFileList([...filelist]); return false; }, fileList, accept: ".xls,.xlsx" }; const getcourse_evaluations = (record) => CurseSetting_async(void 0, null, function* () { const res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${record == null ? void 0 : record.id}/course_evaluations.json`, { method: "get", params: { ec_course_id: record == null ? void 0 : record.id } } ); setEvaluations(res == null ? void 0 : res.course_evaluation_tops); }); const getevaluations = (record) => CurseSetting_async(void 0, null, function* () { const res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${record == null ? void 0 : record.id}/evaluations.json`, { method: "get", params: { ec_course_id: record == null ? void 0 : record.id } } ); setevaluationslist(res == null ? void 0 : res.data); }); const getMajorData = () => CurseSetting_async(void 0, null, function* () { var _a2, _b2, _c2, _d2, _e2, _f, _g, _h, _i, _j, _k; const res1 = yield (0,fetch/* default */.ZP)( `/api/schools/${(_a2 = user == null ? void 0 : user.userInfo) == null ? void 0 : _a2.school_id}/ec_majors/get_major_list.json`, { method: "get" } ); if (((_b2 = res1 == null ? void 0 : res1.data) == null ? void 0 : _b2.length) <= 0) { setisdisabled(true); setParams(CurseSetting_spreadValues({}, params)); return; } setMajorData((res1 == null ? void 0 : res1.data) || []); const item = util/* localSelect */.U.getItem((_c2 = user == null ? void 0 : user.userInfo) == null ? void 0 : _c2.login); const ec_major_school_id = searchParams.get("ec_major_school_id") ? Number(searchParams.get("ec_major_school_id")) : item[0] || ((_e2 = (_d2 = res1 == null ? void 0 : res1.data) == null ? void 0 : _d2[0]) == null ? void 0 : _e2.ec_major_school_id); const res2 = yield (0,fetch/* default */.ZP)( `/api/ec_major_schools/${ec_major_school_id}/ec_years/get_year_list.json`, { method: "get" } ); if (((_f = res2 == null ? void 0 : res2.data) == null ? void 0 : _f.length) <= 0) { setisdisabled(true); params.ec_year_id = ""; setParams(CurseSetting_spreadValues({}, params)); return; } setYearData((res2 == null ? void 0 : res2.data) || []); const ec_year_id = searchParams.get("ec_year_id") ? Number(searchParams.get("ec_year_id")) : item[1] || ((_h = (_g = res2 == null ? void 0 : res2.data) == null ? void 0 : _g[0]) == null ? void 0 : _h.ec_year_id); const res3 = yield (0,fetch/* default */.ZP)( `/api/ec_years/${ec_year_id}/ec_courses/get_courses.json`, { method: "get" } ); setCourseList((res3 == null ? void 0 : res3.data) || []); const res4 = yield (0,fetch/* default */.ZP)( `/api/ec_years/${ec_year_id}/graduation_subitems.json`, { method: "get" } ); params.ec_major_school_id = ec_major_school_id; params.ec_year_id = ec_year_id; params.id = searchParams.get("course") ? Number(searchParams.get("course")) : (_j = (_i = res3 == null ? void 0 : res3.data) == null ? void 0 : _i[0]) == null ? void 0 : _j.id; if (((_k = res3 == null ? void 0 : res3.data) == null ? void 0 : _k.length) <= 0) { setisdisabled(true); return; } else { setisdisabled(false); } setSelectList((res4 == null ? void 0 : res4.graduation_subitems) || []); setParams(params); getData(params); console.log("ec_major_school_id", ec_major_school_id); }); const getYearData = (id) => CurseSetting_async(void 0, null, function* () { var _a2, _b2, _c2, _d2, _e2; const res2 = yield (0,fetch/* default */.ZP)( `/api/ec_major_schools/${id}/ec_years/get_year_list.json`, { method: "get" } ); if (((_a2 = res2 == null ? void 0 : res2.data) == null ? void 0 : _a2.length) <= 0) { setisdisabled(true); params.ec_year_id = ""; setParams(CurseSetting_spreadValues({}, params)); return; } else { setisdisabled(false); } params.ec_major_school_id = id; params.ec_year_id = (_c2 = (_b2 = res2 == null ? void 0 : res2.data) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.ec_year_id; setYearData((res2 == null ? void 0 : res2.data) || []); setParams(params); getCurses((_e2 = (_d2 = res2 == null ? void 0 : res2.data) == null ? void 0 : _d2[0]) == null ? void 0 : _e2.ec_year_id); }); const getCurses = (id) => CurseSetting_async(void 0, null, function* () { var _a2, _b2, _c2; const res2 = yield (0,fetch/* default */.ZP)( `/api/ec_years/${id}/ec_courses/get_courses.json`, { method: "get" } ); if (((_a2 = res2 == null ? void 0 : res2.data) == null ? void 0 : _a2.length) <= 0) { setisdisabled(true); params.id = ""; setParams(CurseSetting_spreadValues({}, params)); setnull(); return; } else { setisdisabled(false); } params.ec_year_id = id; params.id = (_c2 = (_b2 = res2 == null ? void 0 : res2.data) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.id; setCourseList((res2 == null ? void 0 : res2.data) || []); setParams(params); getData(params); }); const get_formulas = (id) => CurseSetting_async(void 0, null, function* () { const res2 = yield (0,fetch/* default */.ZP)(`/api/ec_years/1/ec_courses/get_formulas.json`, { method: "get", params: { ec_course_id: id } }); setParams(params); setformulas(res2); }); const getec_points = (record) => CurseSetting_async(void 0, null, function* () { const res2 = yield (0,fetch/* default */.ZP)(`/api/ec_courses/${record == null ? void 0 : record.id}/ec_points.json`, { method: "get", params: { ec_course_id: record == null ? void 0 : record.id } }); setParams(params); setpoints(res2 == null ? void 0 : res2.data); }); const handleSelect = (v, type) => { params.page = 1; params[type] = v; if (type === "ec_major_school_id") { getYearData(v); return; } if (type === "ec_year_id") { setParams(CurseSetting_spreadValues({}, params)); getCurses(v); } if (type === "id") { setParams(CurseSetting_spreadValues({}, params)); getData(params); } }; const Draggers = { beforeUpload: (file) => CurseSetting_async(void 0, null, function* () { console.log(file); if ((file == null ? void 0 : file.size) > 1024 * 1024 * 50) { message/* default */.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"); return false; } const formData = new FormData(); formData.append("file", file); let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${params == null ? void 0 : params.id}/ec_course_standards.json`, { method: "post", body: formData }, true ); getCourse2(params); getevaluations(params); return false; }), fileList: [] }; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.wrap }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.title }, "\u8BFE\u7A0B\u8BBE\u7F6E"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { clear: "both", marginTop: "40px" } }), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.control }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.label }, "\u8BA4\u8BC1\u4E13\u4E1A"), /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"], { style: { width: 240 }, placeholder: "\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A", value: params == null ? void 0 : params.ec_major_school_id, onChange: (v) => handleSelect(v, "ec_major_school_id") }, majorData == null ? void 0 : majorData.map((e) => /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { value: e.ec_major_school_id }, e.name)) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.label }, "\u8BA4\u8BC1\u5C4A\u522B"), /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"], { disabled: isdisabled && yearData.length <= 0, style: { width: 140 }, placeholder: "\u8BF7\u9009\u62E9\u5C4A\u522B", value: params == null ? void 0 : params.ec_year_id, onChange: (v) => handleSelect(v, "ec_year_id") }, yearData == null ? void 0 : yearData.map((e) => /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { value: e.ec_year_id }, e.year)) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.label }, "\u8BFE\u7A0B"), /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"], { disabled: isdisabled, style: { width: 140 }, placeholder: "\u8BF7\u9009\u62E9\u8BFE\u7A0B", value: params == null ? void 0 : params.id, onChange: (v) => handleSelect(v, "id") }, CourseList == null ? void 0 : CourseList.map((e) => /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { value: e.id }, e.name)) )), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.title }, "\u8BFE\u7A0B\u6559\u5E08"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.teachcount, style: { display: "flex", marginTop: 20, marginBottom: 16 } }, teaccher == null ? void 0 : teaccher.map((item, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", marginLeft: index === 0 ? "20px" : "47px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( "img", { src: tx_namespaceObject, style: { width: "50px", height: "50px", borderRadius: "50%", zIndex: 0 } } ), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { marginLeft: "8px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { style: { marginBottom: "0px" } }, item.name), /* @__PURE__ */ _react_17_0_2_react.createElement( "p", { style: { marginTop: "10px", height: "22px", borderRadius: "0px 12px 12px 0px", background: "#DFEAFF", marginLeft: "-30px", lineHeight: "22px", paddingLeft: 32, display: "inline-block", paddingRight: 16, color: "#0152D9" } }, item.pro ) )); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "20px", background: "#fafafa" } }), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.title, style: { display: "flex", justifyContent: "space-between" } }, "\u8BFE\u7A0B\u6807\u51C6", /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement(upload["default"], CurseSetting_spreadValues({}, Draggers), /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { disabled: isdisabled, type: "primary", style: { marginRight: "20px" }, onClick: () => { } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-shangchuan3" }), " \u4E0A\u4F20\u8BFE\u7A0B\u6807\u51C6" ))) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.teachcount }, /* @__PURE__ */ _react_17_0_2_react.createElement( table["default"], { style: { marginTop: "20px", marginBottom: 20, padding: "0px 20px" }, dataSource: coursestandards, pagination: false, columns: [ { title: "\u5E8F\u53F7", dataIndex: "name", key: "name", render: (text, record, index) => params.per_page * (params.page - 1) + index + 1 }, { title: "\u6587\u4EF6\u540D\u79F0", dataIndex: "name", width: "50%", key: "name" }, { title: "\u4E0A\u4F20\u65F6\u95F4", dataIndex: "created_at", key: "created_at" }, { title: "\u64CD\u4F5C", dataIndex: "id", key: "id", render: (text, record, index) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => { console.log(text, record, index); let types = ["office", "pdf", "image", "other", "video", "audio", "download"]; if (!types.includes(record.file_type)) { message/* default */.ZP.info("\u5F53\u524D\u7C7B\u578B\u6682\u4E0D\u652F\u6301\u9884\u89C8"); return; } preview.editOffice = "view"; setPreview(CurseSetting_spreadProps(CurseSetting_spreadValues({}, preview), { type: record.file_type, data: `/api/attachments/${record.attachment_id}` // data: ENV.API_SERVER + record.url })); }, style: { marginRight: "5px", color: "#0152d9", cursor: "pointer" }, className: "iconfont icon-chakansvg" } ), /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u5728\u7EBF\u7F16\u8F91" }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { onClick: () => CurseSetting_async(void 0, null, function* () { if (["xlsx", "docx", "pptx"].includes(record == null ? void 0 : record.type)) { preview.editOffice = "edit"; setPreview(CurseSetting_spreadProps(CurseSetting_spreadValues({}, preview), { type: record.file_type, data: `/api/attachments/${record.attachment_id}` // data: ENV.API_SERVER + record.url })); } else { message/* default */.ZP.info("\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u7F16\u8F91"); return; } }), style: { cursor: "pointer", color: "#0152d9", marginLeft: "5px" }, className: "iconfont icon-bianji10" })), /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => { modal["default"].confirm({ title: "\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F", icon: /* @__PURE__ */ _react_17_0_2_react.createElement(ExclamationCircleOutlined/* default */.Z, null), // content: 'Some descriptions', okText: "\u786E\u8BA4", cancelText: "\u53D6\u6D88", onOk: () => CurseSetting_async(void 0, null, function* () { let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${params == null ? void 0 : params.id}/ec_course_standards/${text}`, { method: "delete" } ); if (res) { message/* default */.ZP.info("\u5220\u9664\u6210\u529F"); getData(params); } }), onCancel() { } }); }, style: { marginRight: "5px", color: "#0152d9", cursor: "pointer" }, className: "iconfont icon-shanchu9 pl10" } )) } ] } )), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "20px", background: "#fafafa" } }), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.title, style: { display: "flex", justifyContent: "space-between" } }, "\u8BFE\u7A0B\u76EE\u6807", /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { disabled: isdisabled, type: "primary", style: { marginRight: "20px" }, onClick: () => CurseSetting_async(void 0, null, function* () { yield getcourse_targets(params); if ((coursetargets == null ? void 0 : coursetargets.length) <= 0) { let aa = { id: 0, content: "", weight: "", standard_grade: "", graduation_subitem_ids: [""] }; coursetargets.push(aa); setcoursetargets([...coursetargets]); } setshowmodal(true); }) }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-bianji7" }), " \u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807" )) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.teachcount }, /* @__PURE__ */ _react_17_0_2_react.createElement( table["default"], { style: { marginTop: "20px", marginBottom: 20, padding: "0px 20px" }, dataSource: coursetargetslist, bordered: true, pagination: false, columns: [ { title: "\u5206\u9879", dataIndex: "name", key: "name", width: "5%", render: (text, record, index) => params.per_page * (params.page - 1) + index + 1 }, { title: "\u8BFE\u7A0B\u76EE\u6807", dataIndex: "content", width: "45%", key: "content" }, { title: "\u6743\u91CD", dataIndex: "weight", key: "weight", width: "5%" }, { title: "\u8FBE\u6210\u5206\u503C", dataIndex: "standard_grade", key: "standard_grade", width: "5%" }, { title: "\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9", dataIndex: "graduation_subitem", width: "40%", key: "graduation_subitem", render: (text, record, index) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( list/* default */.Z, { itemLayout: "horizontal", dataSource: text, renderItem: (item) => /* @__PURE__ */ _react_17_0_2_react.createElement(list/* default */.Z.Item, null, /* @__PURE__ */ _react_17_0_2_react.createElement( list/* default */.Z.Item.Meta, { style: { fontSize: 14 }, description: "\u6307\u6807\u70B9" + (item == null ? void 0 : item.index) + "\uFF1A" + (item == null ? void 0 : item.content) } )) } )) } ] } )), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "20px", background: "#fafafa" } }), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.title, style: { display: "flex", justifyContent: "space-between" } }, "\u8BFE\u7A0B\u77E5\u8BC6\u70B9\u4E0E\u6559\u5B66\u5185\u5BB9", /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { disabled: isdisabled, type: "primary", style: { marginRight: "20px" }, onClick: () => { setisshowmodal(true); setpointsid(""); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-tianjiatimu" }), " \u65B0\u589E\u77E5\u8BC6\u70B9" )) ), /* @__PURE__ */ _react_17_0_2_react.createElement( table["default"], { style: { marginTop: "20px", marginBottom: 20, padding: "0px 20px" }, dataSource: points, bordered: true, pagination: false, columns: [ { title: "\u5E8F\u53F7", dataIndex: "name", key: "name", width: "5%", render: (text, record, index) => params.per_page * (params.page - 1) + index + 1 }, { title: "\u77E5\u8BC6\u70B9", dataIndex: "name", width: "15%", key: "name" }, { title: "\u6559\u5B66\u76EE\u7684", dataIndex: "target", key: "target" }, { title: "\u6559\u5B66\u5185\u5BB9", dataIndex: "content", key: "content" }, { title: "\u91CD\u70B9\u96BE\u70B9", dataIndex: "problem", key: "problem" }, { title: "\u652F\u6491\u7684\u8BFE\u7A0B\u76EE\u6807", dataIndex: "ec_course_targets", width: "10%", key: "ec_course_targets", render: (text, record, index) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( list/* default */.Z, { itemLayout: "horizontal", dataSource: text, renderItem: (item) => /* @__PURE__ */ _react_17_0_2_react.createElement(list/* default */.Z.Item, null, /* @__PURE__ */ _react_17_0_2_react.createElement( list/* default */.Z.Item.Meta, { style: { fontSize: 14 }, description: item == null ? void 0 : item.name } )) } )) }, { title: "\u64CD\u4F5C", dataIndex: "id", width: "8%", key: "id", render: (text, record, index) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("a", { onClick: () => { modal["default"].confirm({ title: "\u63D0\u793A", content: "\u662F\u5426\u786E\u8BA4\u5220\u9664", okText: "\u786E\u8BA4", cancelText: "\u53D6\u6D88", onOk: () => CurseSetting_async(void 0, null, function* () { let res = yield (0,fetch/* default */.ZP)(`/api/ec_courses/${params == null ? void 0 : params.id}/ec_points/${text}.json`, { method: "delete" }); if (res.status === 0) { message/* default */.ZP.info("\u5220\u9664\u6210\u529F"); getec_points(params); } }) }); }, style: { marginRight: 5 } }, "\u5220\u9664"), /* @__PURE__ */ _react_17_0_2_react.createElement("a", { onClick: () => { setisshowmodal(true); setpointsid(text); form.setFieldsValue({ name: record.name, target: record.target, content: record.content, problem: record.problem, ec_course_target_ids: record.ec_course_targets.map((item) => item.id) }); } }, "\u7F16\u8F91")) } ] } ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "20px", background: "#fafafa" } }), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.title, style: { display: "flex", justifyContent: "space-between" } }, "\u8003\u6838\u65B9\u5F0F\u4E0E\u6570\u636E\u6765\u6E90", /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { disabled: isdisabled, type: "primary", style: { marginRight: "20px" }, onClick: () => { editCourseId.current = ""; setaddshow(true); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-tianjiatimu" }), " \u6DFB\u52A0\u8BFE\u5802\u6570\u636E" ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { disabled: isdisabled, style: { marginRight: "20px" }, onClick: () => { editCourseId.current = ""; setexport(true); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-piliangdaoru" }), " \u5BFC\u5165\u6570\u636E" )) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.teachcount }, !Evaluations && /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, null), Evaluations && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { padding: "0px 20px", marginBottom: "20px", fontSize: "14px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", background: "#F5F5F5", height: "58px", border: "1px solid #E0E2EC", marginTop: "20px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "8%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u6570\u636E\u6765\u6E90"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "10%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u6559\u5B66\u8BFE\u5802/\u6570\u636E\u6587\u4EF6"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "100%", width: "61%", display: "flex", flexShrink: 0, borderRight: "1px solid #E0E2EC" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "15%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u8003\u6838\u65B9\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "55%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u8003\u6838\u5185\u5BB9"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "20%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u8003\u6838\u77E5\u8BC6\u70B9"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "10%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u6EE1\u5206\u503C")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "6%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u72B6\u6001"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "10%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u540C\u6B65/\u5BFC\u5165\u65F6\u95F4"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "5%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u64CD\u4F5C")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { border: "1px solid #E0E2EC", marginTop: -1 } }, Evaluations == null ? void 0 : Evaluations.map((item) => { var _a2, _b2, _c2, _d2, _e2, _f, _g; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", width: "100%", borderBottom: "1px solid #E0E2EC" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "8%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, item == null ? void 0 : item.name), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "10%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column" } }, (item == null ? void 0 : item.name) === "\u5BFC\u5165\u6570\u636E" && /* @__PURE__ */ _react_17_0_2_react.createElement( "a", { href: env/* default */.Z.API_SERVER + `/api/ec_courses/1/course_evaluations/download?id=${(_b2 = (_a2 = item == null ? void 0 : item.contents) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.attachment_id}` }, (_d2 = (_c2 = item == null ? void 0 : item.contents) == null ? void 0 : _c2[0]) == null ? void 0 : _d2.content ), (item == null ? void 0 : item.name) === "\u5173\u8054\u8BFE\u5802" && ((_e2 = item == null ? void 0 : item.contents) == null ? void 0 : _e2.map((items2, index) => { var _a3; return /* @__PURE__ */ _react_17_0_2_react.createElement( "a", { style: { display: "flex" }, href: items2 == null ? void 0 : items2.first_category_url, target: "_blank" }, items2 == null ? void 0 : items2.content, ((_a3 = item == null ? void 0 : item.contents) == null ? void 0 : _a3.length) > 1 && "," ); }))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "100%", width: "61%", display: "flex", flexShrink: 0, borderRight: "1px solid #E0E2EC", flexDirection: "column" } }, ((_f = item == null ? void 0 : item.evaluation_methods) == null ? void 0 : _f.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "100%", width: "42%", display: "flex", flexShrink: 0, borderRight: "1px solid #E0E2EC" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "15%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "--"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "75%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "--"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "10%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "--")), (_g = item == null ? void 0 : item.evaluation_methods) == null ? void 0 : _g.map((items2, index) => { var _a3, _b3, _c3, _d3, _e3, _f2, _g2; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "100%", display: "flex", flexShrink: 0 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "15%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", borderBottom: !(index === ((_a3 = item == null ? void 0 : item.evaluation_methods) == null ? void 0 : _a3.length) - 1) && "1px solid #E0E2EC" } }, items2 == null ? void 0 : items2.work_name), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "55%" } }, ((_b3 = items2 == null ? void 0 : items2.subitems) == null ? void 0 : _b3.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 30 } }, "--"), (_c3 = items2 == null ? void 0 : items2.evaluation_method_contents) == null ? void 0 : _c3.map((jtems, jndex) => { var _a4; return /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: jtems == null ? void 0 : jtems.name }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.textone, style: { borderRight: "1px solid #E0E2EC", borderBottom: !(index === ((_a4 = item == null ? void 0 : item.evaluation_methods) == null ? void 0 : _a4.length) - 1 && jndex === (items2 == null ? void 0 : items2.evaluation_method_contents.length) - 1) && "1px solid #E0E2EC", marginTop: -1, lineHeight: "30px", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 30, paddingLeft: "5px" } }, jtems == null ? void 0 : jtems.name)); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "20%" } }, ((_d3 = items2 == null ? void 0 : items2.subitems) == null ? void 0 : _d3.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 30 } }, "--"), (_e3 = items2 == null ? void 0 : items2.evaluation_method_contents) == null ? void 0 : _e3.map((jtems, jndex) => { var _a4; return /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: jtems == null ? void 0 : jtems.ec_points }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.textone, style: { borderRight: "1px solid #E0E2EC", borderBottom: !(index === ((_a4 = item == null ? void 0 : item.evaluation_methods) == null ? void 0 : _a4.length) - 1 && jndex === (items2 == null ? void 0 : items2.evaluation_method_contents.length) - 1) && "1px solid #E0E2EC", marginTop: -1, lineHeight: "30px", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 30, paddingLeft: "5px" } }, (jtems == null ? void 0 : jtems.ec_points) || "- -")); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "10%" } }, ((_f2 = items2 == null ? void 0 : items2.subitems) == null ? void 0 : _f2.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 30 } }, "--"), (_g2 = items2 == null ? void 0 : items2.evaluation_method_contents) == null ? void 0 : _g2.map((jtems, jndex) => { var _a4; return /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: jtems == null ? void 0 : jtems.score }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.textone, style: { borderBottom: !(index === ((_a4 = item == null ? void 0 : item.evaluation_methods) == null ? void 0 : _a4.length) - 1 && jndex === (items2 == null ? void 0 : items2.evaluation_method_contents.length) - 1) && "1px solid #E0E2EC", marginTop: -1, lineHeight: "30px", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 30, paddingLeft: "5px" } }, jtems == null ? void 0 : jtems.score)); }))); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "6%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", color: "#07C160" } }, item == null ? void 0 : item.status), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "10%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, item == null ? void 0 : item.update_at), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "5%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column" } }, (item == null ? void 0 : item.status) != "\u5DF2\u5BFC\u5165" && /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => CurseSetting_async(void 0, null, function* () { let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${params.id}/course_evaluations/update_online_data.json`, { method: "get", params: { id: item.id } } ); if (res) { message/* default */.ZP.info("\u540C\u6B65\u6210\u529F"); getData(params); } }), style: { color: "#0152d9", cursor: "pointer" }, className: "iconfont icon-tongbushuju" } ), /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => { modal["default"].confirm({ title: "\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F", icon: /* @__PURE__ */ _react_17_0_2_react.createElement(ExclamationCircleOutlined/* default */.Z, null), // content: 'Some descriptions', okText: "\u786E\u8BA4", cancelText: "\u53D6\u6D88", onOk: () => CurseSetting_async(void 0, null, function* () { let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${params.id}/course_evaluations/deletes.json`, { method: "delete", body: { id: item.id } } ); if (res) { message/* default */.ZP.info("\u5220\u9664\u6210\u529F"); getData(params); } }), onCancel() { } }); }, style: { color: "#0152d9", cursor: "pointer", margin: "10px 0px" }, className: "iconfont icon-shanchu9" } ), /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => { editCourseId.current = item.id; if ((item == null ? void 0 : item.status) != "\u5DF2\u5BFC\u5165") { setitems(item); setaddshow(true); } else { setexport(true); } }, style: { color: "#0152d9", cursor: "pointer" }, className: "iconfont icon-bianji8" } ))); })))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "20px", background: "#fafafa" } }), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { className: CurseSettingmodules.title, style: { display: "flex", justifyContent: "space-between" } }, "\u8BFE\u7A0B\u76EE\u6807\u8FBE\u6210\u5EA6", /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { disabled: isdisabled, style: { marginRight: "20px" }, onClick: () => { setSettingmodal(true); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-kechengshezhi" }), " \u8BBE\u7F6E\u8003\u6838\u5360\u6BD4" ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { disabled: isdisabled, style: { marginRight: "20px" }, onClick: () => { get_formulas(params.id); setCalculation(true); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-jisuangongshi" }), " \u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F" ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_button/* default */.ZP, { type: "primary", disabled: isdisabled, style: { marginRight: "20px" }, onClick: () => CurseSetting_async(void 0, null, function* () { let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${params.id}/evaluations/evaluation_data.json`, { method: "post" } ); if (res) { message/* default */.ZP.info("\u8BA1\u7B97\u5B8C\u6210"); getevaluations(params); } }) }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: "8px" }, className: "iconfont icon-jisuan" }), " \u8BA1\u7B97" )) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { padding: "0px 20px" }, className: CurseSettingmodules.teachcount }, !evaluationslist && /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, null), evaluationslist && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { fontSize: "14px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", background: "#F5F5F5", height: "58px", border: "1px solid #E0E2EC", marginTop: "20px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "4%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u5206\u9879"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "15%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u8BFE\u7A0B\u76EE\u6807"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "3%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u6743\u91CD"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "9%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "100%", width: "40%", display: "flex", flexDirection: "column", flexShrink: 0, borderRight: "1px solid #E0E2EC" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "100%", display: "flex", flexShrink: 0, height: "100%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "30%", borderRight: "1px solid #E0E2EC", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column" } }, "\u8003\u6838\u65B9\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "12.5%", borderRight: "1px solid #E0E2EC", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", textAlign: "center" } }, "\u8003\u6838\u65B9\u5F0F\u5360\u6BD4"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "45%", height: "100%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: "100%" } }, "\u8003\u6838\u5185\u5BB9")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "12.5%", height: "100%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: "100%", textAlign: "center" } }, "\u8003\u6838\u5185\u5BB9\u5360\u6BD4")))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "7%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", textAlignLast: "center" } }, "\u8FBE\u6210\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "7%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", textAlignLast: "center" } }, "\u5B9E\u9645\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "6%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u8BC4\u4EF7\u7ED3\u679C"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "8%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u8BA1\u7B97\u65F6\u95F4")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderLeft: "1px solid #E0E2EC" } }, (_b = evaluationslist == null ? void 0 : evaluationslist.ec_course_target) == null ? void 0 : _b.map((item, index) => { var _a2, _b2, _c2, _d2, _e2, _f; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "100%", display: "flex" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "4%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, index + 1), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.textone, style: { width: "15%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, alignItems: "center", justifyContent: "center", flexShrink: 0, maxHeight: ((_a2 = item == null ? void 0 : item.evaluation) == null ? void 0 : _a2.length) <= 0 && 43, lineHeight: ((_b2 = item == null ? void 0 : item.evaluation) == null ? void 0 : _b2.length) <= 0 && "43px", display: ((_c2 = item == null ? void 0 : item.evaluation) == null ? void 0 : _c2.length) != 0 && "flex", paddingLeft: 10 } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: item.content }, item.content)), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "3%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, item.weights), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "9%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, (_d2 = item == null ? void 0 : item.graduation_subitem) == null ? void 0 : _d2.map((graduation_subitemitem) => graduation_subitemitem.name).toString()), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "100%", width: "40%", display: "flex", flexDirection: "column", flexShrink: 0, borderRight: "1px solid #E0E2EC" } }, ((_e2 = item == null ? void 0 : item.evaluation) == null ? void 0 : _e2.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "100%", display: "flex", flexShrink: 0 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "30%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column" } }, "--"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "12.6%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column" } }, "--"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "45.3%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 43 } }, "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "12.5%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 43 } }, "--"))), (_f = item == null ? void 0 : item.evaluation) == null ? void 0 : _f.map((evaluationitem, evaluationindex) => { var _a3, _b3, _c3, _d3; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "100%", display: "flex", flexShrink: 0 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "30%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, (evaluationitem == null ? void 0 : evaluationitem.work_name) || "--"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "12.5%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, (evaluationitem == null ? void 0 : evaluationitem.weight) || "--"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "45%" } }, ((_a3 = evaluationitem == null ? void 0 : evaluationitem.subitems) == null ? void 0 : _a3.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, height: 43 } }, "--"), (_b3 = evaluationitem == null ? void 0 : evaluationitem.subitems) == null ? void 0 : _b3.map((subitems, subitemsindex) => { return /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: subitems == null ? void 0 : subitems.name }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CurseSettingmodules.textone, style: { borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, lineHeight: "43px", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 43, paddingLeft: "5px" } }, subitems == null ? void 0 : subitems.name)); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "12.5%" } }, ((_c3 = evaluationitem == null ? void 0 : evaluationitem.subitems) == null ? void 0 : _c3.length) <= 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 43 } }, "--"), (_d3 = evaluationitem == null ? void 0 : evaluationitem.subitems) == null ? void 0 : _d3.map((subitems, subitemsindex) => { return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, flexDirection: "column", height: 43 } }, subitems == null ? void 0 : subitems.weight); }))); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "7%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, item == null ? void 0 : item.standard_grade), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "7%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 } }, item == null ? void 0 : item.actual_grade), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "6%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: (item == null ? void 0 : item.status) ? "#07C160" : "#E30000" } }, (item == null ? void 0 : item.status) ? "\u8FBE\u6210" : "\u672A\u8FBE\u6210"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { width: "8%", borderRight: "1px solid #E0E2EC", borderBottom: "1px solid #E0E2EC", marginTop: -1, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, textAlign: "center" } }, evaluationslist == null ? void 0 : evaluationslist.evaluation_time)); })), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", height: "58px", border: "1px solid #E0E2EC", marginTop: -1 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "4%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, "\u603B\u5206"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "74%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { borderRight: "1px solid #E0E2EC", width: "7%", textAlign: "center", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, evaluationslist == null ? void 0 : evaluationslist.total_score)))), /* @__PURE__ */ _react_17_0_2_react.createElement( AddCourseModal, { courseId: editCourseId.current, isshow: addshow, setishow: setaddshow, items, points, modalparams: params, getevaluations, getcourse_evaluations } ), /* @__PURE__ */ _react_17_0_2_react.createElement( SettingModal, { isshow: Settingmodal, setishow: setSettingmodal, modalparams: params, getcourse_evaluations: getevaluations } ), /* @__PURE__ */ _react_17_0_2_react.createElement( modal["default"], { title: "\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807", open: showmodal, wrapClassName: CurseSettingmodules.modalWrapContainer, width: 918, okText: "\u4FDD\u5B58", onOk: () => CurseSetting_async(void 0, null, function* () { if ((coursetargets == null ? void 0 : coursetargets.filter( (item) => { var _a2, _b2; return !item.content || !item.weight || !item.standard_grade || ((_a2 = item == null ? void 0 : item.graduation_subitem_ids) == null ? void 0 : _a2.length) <= 0 || ((_b2 = item == null ? void 0 : item.graduation_subitem_ids) == null ? void 0 : _b2.filter((items2) => !items2).length) > 0; } ).length) > 0) { message/* default */.ZP.info("\u8BF7\u586B\u5199\u6216\u5220\u9664\u6CA1\u6709\u586B\u5165\u6570\u503C\u7684\u6570\u636E"); return; } let res = yield (0,fetch/* default */.ZP)( `/api/ec_courses/${params == null ? void 0 : params.id}/course_targets`, { method: "POST", body: { course_targets: coursetargets } } ); if ((res == null ? void 0 : res.status) === 0) { setshowmodal(false); getcourse_targets(params); getevaluations(params); } }), onCancel: () => { setshowmodal(false); getcourse_targets(params); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { color: "#464F66", fontSize: 14, paddingLeft: 40, paddingBottom: 12 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u8BF4\u660E\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "1.\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u4E4B\u548C\u5E94\u7B49\u4E8E1\uFF1B", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "2.\u53EF\u5728\u8BBE\u7F6E\u8BFE\u7A0B\u8FBE\u6210\u5EA6\u8BA1\u7B97\u516C\u5F0F\u65F6\uFF0C\u9009\u62E9\u662F\u5426\u5C06\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u53C2\u4E0E\u5230\u8BA1\u7B97\u4E2D\u3002")), /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", background: "#F5F5F5", height: "38px", alignItems: "center", padding: "0px 10px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }, "\u5206\u9879"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 3 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { color: "#EE0A24", marginRight: "5px" } }, "*"), "\u8BFE\u7A0B\u76EE\u6807"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { color: "#EE0A24", marginRight: "5px" } }, "*"), "\u6743\u91CD"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { color: "#EE0A24", marginRight: "5px" } }, "*"), "\u8FBE\u6210\u5206\u503C\uFF08\u5206\uFF09") ), coursetargets == null ? void 0 : coursetargets.map((item, index) => { var _a2, _b2, _c2; return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", background: "#EEF2F8", height: "62px", alignItems: "center", padding: "0px 10px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }, index + 1), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 3, padding: "0px 10px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( input["default"], { onChange: (e) => { item.content = e.target.value; setcoursetargets([...coursetargets]); }, value: item == null ? void 0 : item.content } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } }, /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { min: 0, max: 1, step: 0.1, onChange: (e) => { item.weight = e; setcoursetargets([...coursetargets]); }, value: item == null ? void 0 : item.weight } )), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } }, /* @__PURE__ */ _react_17_0_2_react.createElement( input_number/* default */.Z, { min: 0, max: 100, onChange: (e) => { item.standard_grade = e; setcoursetargets([...coursetargets]); }, value: item == null ? void 0 : item.standard_grade } ), /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u65B0\u589E\u8BFE\u7A0B\u76EE\u6807" }, /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { style: { color: "#0152D9", cursor: "pointer", marginLeft: "10px" }, className: "iconfont icon-xinzeng", onClick: () => CurseSetting_async(void 0, null, function* () { let aa = { id: 0, content: "", weight: "", standard_grade: "", graduation_subitem_ids: [""] }; coursetargets.push(aa); setcoursetargets([...coursetargets]); }) } )), index !== 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u5220\u9664" }, /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => CurseSetting_async(void 0, null, function* () { coursetargets.splice(index, 1); setcoursetargets([...coursetargets]); }), style: { color: "#0152D9", cursor: "pointer", marginLeft: "10px" }, className: "iconfont icon-shanchu9" } ))) ), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", padding: "0px 10px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 3 } }, " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { color: "#EE0A24", marginRight: "5px" } }, "*"), " ", "\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9", " "), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } })), (_a2 = item == null ? void 0 : item.graduation_subitem_ids) == null ? void 0 : _a2.map((items2, j) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", height: "40px", alignItems: "center", padding: "0px 10px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }), /* @__PURE__ */ _react_17_0_2_react.createElement( "span", { style: { flex: 3, display: "flex", alignItems: "center" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"], { value: items2, getPopupContainer: (trigger) => trigger.parentNode, onChange: (e) => { item.graduation_subitem_ids[j] = e; setcoursetargets([...coursetargets]); }, style: { width: "320px" } }, SelectList == null ? void 0 : SelectList.map((jitems, h) => /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"].Option, { disabled: item.graduation_subitem_ids.includes( jitems == null ? void 0 : jitems.id ), value: jitems == null ? void 0 : jitems.id, title: `\u6307\u6807\u70B9` + (jitems == null ? void 0 : jitems.index) + `\uFF1A` + (jitems == null ? void 0 : jitems.content) }, "\u6307\u6807\u70B9", jitems == null ? void 0 : jitems.index, "\uFF1A", jitems == null ? void 0 : jitems.content )) ), /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u65B0\u589E\u6307\u6807\u70B9" }, /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { style: { color: "#0152D9", cursor: "pointer", marginLeft: "10px" }, className: "iconfont icon-xinzeng", onClick: () => CurseSetting_async(void 0, null, function* () { item == null ? void 0 : item.graduation_subitem_ids.push(""); setcoursetargets([...coursetargets]); }) } )), j !== 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u5220\u9664" }, /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => CurseSetting_async(void 0, null, function* () { item.graduation_subitem_ids.splice(j, 1); setcoursetargets([...coursetargets]); }), style: { color: "#0152D9", cursor: "pointer", marginLeft: "10px" }, className: "iconfont icon-shanchu9" } )) ), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }) )), ((_b2 = item == null ? void 0 : item.graduation_subitem_ids) == null ? void 0 : _b2.length) <= 0 && ((_c2 = [""]) == null ? void 0 : _c2.map((items2, j) => /* @__PURE__ */ _react_17_0_2_react.createElement( "div", { style: { display: "flex", height: "40px", alignItems: "center", padding: "0px 10px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }), /* @__PURE__ */ _react_17_0_2_react.createElement( "span", { style: { flex: 3, display: "flex", alignItems: "center" } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"], { value: items2, getPopupContainer: (trigger) => trigger.parentNode, onChange: (e) => { item.graduation_subitem_ids[j] = e; setcoursetargets([...coursetargets]); }, style: { width: "320px" } }, SelectList == null ? void 0 : SelectList.map((jitems, h) => /* @__PURE__ */ _react_17_0_2_react.createElement( es_select["default"].Option, { disabled: item.graduation_subitem_ids.includes( jitems == null ? void 0 : jitems.id ), value: jitems == null ? void 0 : jitems.id, title: `\u6307\u6807\u70B9` + (jitems == null ? void 0 : jitems.index) + `\uFF1A` + (jitems == null ? void 0 : jitems.content) }, "\u6307\u6807\u70B9", jitems == null ? void 0 : jitems.index, "\uFF1A", jitems == null ? void 0 : jitems.content )) ), /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u65B0\u589E\u6307\u6807\u70B9" }, /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { style: { color: "#0152D9", cursor: "pointer", marginLeft: "10px" }, className: "iconfont icon-xinzeng", onClick: () => CurseSetting_async(void 0, null, function* () { item == null ? void 0 : item.graduation_subitem_ids.push(""); setcoursetargets([...coursetargets]); }) } )), j !== 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u5220\u9664" }, /* @__PURE__ */ _react_17_0_2_react.createElement( "i", { onClick: () => CurseSetting_async(void 0, null, function* () { item.graduation_subitem_ids.splice(j, 1); setcoursetargets([...coursetargets]); }), style: { color: "#0152D9", cursor: "pointer", marginLeft: "10px" }, className: "iconfont icon-shanchu9" } )) ), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 2 } }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }) )))); }) ), /* @__PURE__ */ _react_17_0_2_react.createElement( modal["default"], { title: "\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F", open: Calculation, width: 918, className: CurseSettingmodules.modalWrapContainer, onCancel: () => { setCalculation(false); }, onOk: () => CurseSetting_async(void 0, null, function* () { var _a2, _b2, _c2, _d2; let res = yield (0,fetch/* default */.ZP)( `/api/ec_years/1/ec_courses/save_formulas.json`, { method: "post", body: { ec_course_id: params.id, ec_course_target_formula_id: (_b2 = (_a2 = formulas == null ? void 0 : formulas.ec_course_target_formulas.filter( (item) => item.checked )) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.id, ec_course_formula_id: (_d2 = (_c2 = formulas == null ? void 0 : formulas.ec_course_formulas.filter( (item) => item.checked )) == null ? void 0 : _c2[0]) == null ? void 0 : _d2.id } } ); if (res) { setCalculation(false); get_formulas(params.id); } }) }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { padding: "16px 0" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"], { activeKey: currt, onChange: (e) => { setcurrt(e); } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { key: 1, tab: "\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C" }), /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { key: 2, tab: "\u8BFE\u7A0B\u603B\u5206" }))), currt === "1" && /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", height: 38, background: "#F5F5F5", lineHeight: "38px", padding: "0px 40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1, marginRight: "30px" } }, "\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C\u8BA1\u7B97\u516C\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 185 } }, "\u64CD\u4F5C")), (_c = formulas == null ? void 0 : formulas.ec_course_target_formulas) == null ? void 0 : _c.map( (item, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", padding: "20px 40px" } }, (item == null ? void 0 : item.checked) && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: "40px", borderRadius: "2px", color: "#0152D9", border: "1px solid #0152D9", display: "inline-flex", alignItems: "center", justifyContent: "center", marginRight: "10px", height: "22px" } }, "\u9ED8\u8BA4"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1, marginRight: "30px", marginLeft: !(item == null ? void 0 : item.checked) && "50px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, item == null ? void 0 : item.content), (item == null ? void 0 : item.explain) && /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u8BF4\u660E\uFF1A", item == null ? void 0 : item.explain)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 185 } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_radio/* default */.ZP, { onClick: () => { formulas == null ? void 0 : formulas.ec_course_target_formulas.map((items2) => { if (item.id === items2.id) { items2.checked = true; } else { items2.checked = false; } }); setformulas(CurseSetting_spreadValues({}, formulas)); }, checked: item == null ? void 0 : item.checked }, " ", "\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F" ))); } )), currt === "2" && /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", height: 38, background: "#F5F5F5", lineHeight: "38px", padding: "0px 40px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1 } }, "\u8BFE\u7A0B\u603B\u5206\u8BA1\u7B97\u516C\u5F0F"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 185 } }, "\u64CD\u4F5C")), (_d = formulas == null ? void 0 : formulas.ec_course_formulas) == null ? void 0 : _d.map((item, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", padding: "20px 40px" } }, (item == null ? void 0 : item.checked) && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: "40px", borderRadius: "2px", color: "#0152D9", border: "1px solid #0152D9", display: "inline-flex", alignItems: "center", justifyContent: "center", marginRight: "10px", height: "22px" } }, "\u9ED8\u8BA4"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { flex: 1, marginRight: "30px", marginLeft: !(item == null ? void 0 : item.checked) && "50px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, item == null ? void 0 : item.content), (item == null ? void 0 : item.explain) && /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u8BF4\u660E\uFF1A", item == null ? void 0 : item.explain)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { width: 185 } }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_radio/* default */.ZP, { onClick: () => { formulas == null ? void 0 : formulas.ec_course_formulas.map((items2) => { if (item.id === items2.id) { items2.checked = true; } else { items2.checked = false; } }); setformulas(CurseSetting_spreadValues({}, formulas)); }, checked: item == null ? void 0 : item.checked }, " ", "\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F" ))); })) ), /* @__PURE__ */ _react_17_0_2_react.createElement( modal["default"], { title: "\u6279\u91CF\u5BFC\u5165", open: exportshow, centered: true, onCancel: () => { setexport(false); setFileList([]); }, okButtonProps: { loading: loadings }, onOk: () => CurseSetting_async(void 0, null, function* () { const formData = new FormData(); if (fileList.length > 0) { formData.append("file", fileList[0]); } else { message/* default */.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6"); return; } if (!params.id) { message/* default */.ZP.info("\u8BF7\u5148\u521B\u5EFA\u8BFE\u7A0B"); return; } setloading(true); formData.append("ec_course_id", params.id); if (editCourseId.current) { formData.append("id", editCourseId.current); } let url = editCourseId.current ? `/api/ec_courses/${params.id}/course_evaluations/update_offline.json` : `/api/ec_courses/${params.id}/course_evaluations/create_offline.json`; let res = yield (0,fetch/* default */.ZP)( url, { method: editCourseId.current ? "put" : "post", body: formData }, true ); setloading(false); if ((res == null ? void 0 : res.status) === 0) { message/* default */.ZP.info("\u6DFB\u52A0\u6210\u529F"); setexport(false); setFileList([]); getcourse_evaluations(params); } }) }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u6B65\u9AA41\uFF1A\u4E0B\u8F7D", /* @__PURE__ */ _react_17_0_2_react.createElement( "a", { href: env/* default */.Z.API_SERVER + `/api/ec_courses/1/course_evaluations/download_template.xlsx`, download: `\u6A21\u7248.xlsx` }, "\u660E\u7EC6\u6210\u7EE9\u5BFC\u5165\u6A21\u677F" ), ",\u5BFC\u5165\u7EBF\u4E0B\u6570\u636E\u5185\u5BB9\u3002", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { color: "#D95201" } }, "\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F")), /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, "\u6B65\u9AA42\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(upload["default"], CurseSetting_spreadValues({}, addDraggers), /* @__PURE__ */ _react_17_0_2_react.createElement(es_button/* default */.ZP, { type: "primary" }, "\u9009\u62E9\u6587\u4EF6")))) ), /* @__PURE__ */ _react_17_0_2_react.createElement( PreviewAll/* default */.Z, CurseSetting_spreadProps(CurseSetting_spreadValues({}, preview), { onClose: () => { setPreview(CurseSetting_spreadProps(CurseSetting_spreadValues({}, preview), { type: "" })); } }) ), /* @__PURE__ */ _react_17_0_2_react.createElement( modal["default"], { title: pointsid ? "\u7F16\u8F91\u77E5\u8BC6\u70B9" : `\u65B0\u589E\u77E5\u8BC6\u70B9`, open: isshowmodal, onOk: () => { form.submit(); }, okButtonProps: { loading: isloading }, onCancel: () => { setisshowmodal(false); form.setFieldsValue({ name: "", target: "", content: "", problem: "", ec_course_target_ids: [] }); } }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { style: { color: "#FA6400", fontSize: "14px" } }), /* @__PURE__ */ _react_17_0_2_react.createElement( es_form["default"], { labelCol: { span: 7 }, wrapperCol: { span: 17 }, form, onFinish: (value) => CurseSetting_async(void 0, null, function* () { setisloading(true); let url = pointsid ? `/api/ec_courses/${params.id}/ec_points/${pointsid}.json` : `/api/ec_courses/${params.id}/ec_points.json`; let res = yield (0,fetch/* default */.ZP)(url, { method: pointsid ? "put" : "post", body: CurseSetting_spreadValues({ ec_course_id: params.id, id: pointsid }, value) }); setisloading(false); if (res.status === 0) { message/* default */.ZP.info("\u65B0\u589E\u6210\u529F"); getec_points(params); form.setFieldsValue({ name: "", target: "", content: "", problem: "", ec_course_target_ids: [] }); setisshowmodal(false); } }) }, /* @__PURE__ */ _react_17_0_2_react.createElement( es_form["default"].Item, { label: "\u77E5\u8BC6\u70B9", name: "name", rules: [ { required: true, message: "\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9" } ] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], null) ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_form["default"].Item, { label: "\u6559\u5B66\u76EE\u7684", name: "target", rules: [ { required: true, message: "\u8BF7\u8F93\u5165\u6559\u5B66\u76EE\u7684" } ] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], null) ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_form["default"].Item, { label: "\u6559\u5B66\u5185\u5BB9", name: "content", rules: [ { required: true, message: "\u8BF7\u8F93\u5165\u6559\u5B66\u5185\u5BB9" } ] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], null) ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_form["default"].Item, { label: "\u91CD\u70B9\u96BE\u70B9", name: "problem", rules: [ { required: true, message: "\u8BF7\u8F93\u5165\u91CD\u70B9\u96BE\u70B9" } ] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], null) ), /* @__PURE__ */ _react_17_0_2_react.createElement( es_form["default"].Item, { label: "\u652F\u6491\u7684\u8BFE\u7A0B\u76EE\u6807", name: "ec_course_target_ids", rules: [ { required: true, message: "\u8BF7\u9009\u62E9\u8BFE\u7A0B\u76EE\u6807" } ] }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], { mode: "multiple", disabled: ((_e = params.kcdatas) == null ? void 0 : _e.length) <= 0, placeholder: "\u8BF7\u9009\u62E9\u8BFE\u7A0B\u76EE\u6807" }, coursetargetslist == null ? void 0 : coursetargetslist.map((item, index) => { return /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { key: index, value: item == null ? void 0 : item.id }, item == null ? void 0 : item.content); })) ) ) )); }; /* harmony default export */ var CurseSetting = ((0,_umi_production_exports.connect)(({ user }) => ({ user }))(Page)); /***/ }) }]);