"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([[31962],{ /***/ 3148: /*!*******************************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***! \*******************************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_ExclamationCircleOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(33614); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js // This icon file is generated automatically. var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" }; /* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(1393); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_ExclamationCircleOutlined })); }; /**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTQ2NCA2ODhhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0yNC0xMTJoNDhjNC40IDAgOC0zLjYgOC04VjI5NmMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MjcyYzAgNC40IDMuNiA4IDggOHoiIC8+PC9zdmc+) */ var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined); if (false) {} /* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon); /***/ }), /***/ 67147: /*!******************************************************************************************************!*\ !*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { // EXPORTS __webpack_require__.d(__webpack_exports__, { Z: function() { return /* binding */ icons_PlusOutlined; } }); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(33614); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/PlusOutlined.js // This icon file is generated automatically. var PlusOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" }; /* harmony default export */ var asn_PlusOutlined = (PlusOutlined); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules var AntdIcon = __webpack_require__(1393); ;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/PlusOutlined.js // GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY var PlusOutlined_PlusOutlined = function PlusOutlined(props, ref) { return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { ref: ref, icon: asn_PlusOutlined })); }; /**![plus](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ4MiAxNTJoNjBxOCAwIDggOHY3MDRxMCA4LTggOGgtNjBxLTggMC04LThWMTYwcTAtOCA4LTh6IiAvPjxwYXRoIGQ9Ik0xOTIgNDc0aDY3MnE4IDAgOCA4djYwcTAgOC04IDhIMTYwcS04IDAtOC04di02MHEwLTggOC04eiIgLz48L3N2Zz4=) */ var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(PlusOutlined_PlusOutlined); if (false) {} /* harmony default export */ var icons_PlusOutlined = (RefIcon); /***/ }), /***/ 54691: /*!**********************************************************!*\ !*** ./src/pages/Classrooms/Lists/Engineering/index.tsx ***! \**********************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800); /* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301); /* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 80608); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 24905); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 78241); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 3113); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 51945); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 43418); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd */ 8591); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 86859); /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 57809); /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ant-design/icons */ 67147); /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ant-design/icons */ 3148); /* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/fetch */ 49105); /* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./index.less?modules */ 9447); /* harmony import */ var _assets_images_AssistantCode3_jpeg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/assets/images/AssistantCode3.jpeg */ 32637); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ 37712); var CheckboxGroup = antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z.Group; var ShixunsListPage = function ShixunsListPage(_ref) { var _params$zydatas, _params$zydatas2, _params$jbdatas, _params$jbdatas2, _params$kcdatas, _params$kcdatas2; var classroomList = _ref.classroomList, loading = _ref.loading, user = _ref.user, dispatch = _ref.dispatch; var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]), _useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2), datas = _useState2[0], setdatas = _useState2[1]; var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)({ zydatas: [], jbdatas: [], kcdatas: [], page: 1, per_page: 20 }), _useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2), params = _useState4[0], setparams = _useState4[1]; var param = (0,umi__WEBPACK_IMPORTED_MODULE_5__.useParams)(); var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false), _useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2), isshowmodal = _useState6[0], setisshowmodal = _useState6[1]; var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false), _useState8 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState7, 2), isloading = _useState8[0], setisloading = _useState8[1]; var _Form$useForm = antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.useForm(), _Form$useForm2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_Form$useForm, 1), form = _Form$useForm2[0]; var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false), _useState10 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState9, 2), isshow = _useState10[0], setisshow = _useState10[1]; // console.log(params); (0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () { getDatas(); }, []); function getDatas() { return _getDatas.apply(this, arguments); } //获取认证专业 function _getDatas() { _getDatas = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3() { var res; return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: _context3.next = 2; return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/courses/ecs_courses.json", { method: 'get', params: { id: param === null || param === void 0 ? void 0 : param.coursesId } }); case 2: res = _context3.sent; setdatas(res); case 4: case "end": return _context3.stop(); } }, _callee3); })); return _getDatas.apply(this, arguments); } function getrz() { return _getrz.apply(this, arguments); } //获取认证届别 function _getrz() { _getrz = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4() { var _user$userInfo; var res; return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: _context4.next = 2; return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/schools/".concat(user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.course) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.course_school_id, "/ec_majors/get_major_list.json"), { method: 'get' }); case 2: res = _context4.sent; params.zydatas = res === null || res === void 0 ? void 0 : res.data; setparams(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)); case 5: case "end": return _context4.stop(); } }, _callee4); })); return _getrz.apply(this, arguments); } function getjb(_x) { return _getjb.apply(this, arguments); } //获取关联课程 function _getjb() { _getjb = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5(key) { var res; return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee5$(_context5) { while (1) switch (_context5.prev = _context5.next) { case 0: _context5.next = 2; return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/ec_major_schools/".concat(key, "/ec_years/get_year_list.json"), { method: 'get' }); case 2: res = _context5.sent; params.jbdatas = res === null || res === void 0 ? void 0 : res.data; setparams(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)); case 5: case "end": return _context5.stop(); } }, _callee5); })); return _getjb.apply(this, arguments); } function getcourse(_x2) { return _getcourse.apply(this, arguments); } function _getcourse() { _getcourse = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee6(key) { var res; return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee6$(_context6) { while (1) switch (_context6.prev = _context6.next) { case 0: _context6.next = 2; return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/ec_years/".concat(key, "/ec_courses/get_courses.json"), { method: 'get' }); case 2: res = _context6.sent; params.kcdatas = res === null || res === void 0 ? void 0 : res.data; setparams(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)); case 5: case "end": return _context6.stop(); } }, _callee6); })); return _getcourse.apply(this, arguments); } return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", { className: _index_less_modules__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.content, children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", { className: _index_less_modules__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.header, children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", { className: _index_less_modules__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.span, children: "\u5173\u8054\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, { type: "primary", onClick: function onClick() { params.zydatas = []; params.jbdatas = []; params.kcdatas = []; form.setFieldsValue({ zy: '', jb: '', ec_course_id: '' }); setparams(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)); if (!(datas !== null && datas !== void 0 && datas.have_data)) { setisshow(true); } else { setisshowmodal(true); } getrz(); }, icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {}), children: "\u6DFB\u52A0\u5173\u8054" })] }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, { dataSource: datas.data, pagination: false, columns: [{ title: '序号', dataIndex: 'filename', key: 'filename', render: function render(text, item, index) { return params.per_page * (params.page - 1) + index + 1; } }, { title: '认证专业', dataIndex: 'pro_name', ellipsis: true, width: '30%', key: 'pro_name' }, { title: '认证届别', dataIndex: 'year', ellipsis: true, width: '10%', key: 'year' }, { title: '关联课程', dataIndex: 'course_name', ellipsis: true, width: '30%', key: 'course_name' }, { title: '操作', dataIndex: 'id', ellipsis: true, width: '20%', key: 'id', render: function render(text, record) { return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", { children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("a", { href: "/classrooms/".concat(param === null || param === void 0 ? void 0 : param.coursesId, "/engineering/datail?kc=").concat(record === null || record === void 0 ? void 0 : record.ec_course_id), style: { marginRight: 20 }, children: "\u67E5\u770B\u8BE6\u60C5" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("a", { onClick: function onClick() { antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.confirm({ title: '提示', content: '你确定要取消关联吗', okText: '确认', cancelText: '取消', onOk: function () { var _onOk = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() { var res; return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/courses/delete_ecs_course.json", { method: 'DELETE', body: { ec_course_id: text } }); case 2: res = _context.sent; if (res.status === 0) { antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .ZP.info('取消成功'); getDatas(); } case 4: case "end": return _context.stop(); } }, _callee); })); function onOk() { return _onOk.apply(this, arguments); } return onOk; }() }); }, children: "\u53D6\u6D88\u5173\u8054" })] }); } }] }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, { style: { textAlign: 'center', marginTop: 20 }, current: params.page, showSizeChanger: false, total: datas === null || datas === void 0 ? void 0 : datas.count, pageSize: 20, hideOnSinglePage: true, onChange: function onChange(e) { params.page = e, setparams(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)); getDatas(); } }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, { title: "\u5173\u8054\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B", centered: true, width: 566, open: isshow, footer: null, onCancel: function onCancel() { setisshow(false); }, children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("p", { children: "\u6559\u5B66\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u672A\u5F00\u8BBE\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5173\u8054\u64CD\u4F5C\uFF01" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("p", { children: "\u89E3\u51B3\u529E\u6CD5\uFF1A" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("p", { children: "1.\u9700\u8981\u8BE5\u5355\u4F4D\u7684\u8BA4\u8BC1\u5DE5\u4F5C\u56E2\u961F\u4EBA\u5458\uFF0C\u5148\u5728\u5DE5\u7A0B\u8BA4\u8BC1\u6A21\u5757\u6DFB\u52A0\u57F9\u517B\u65B9\u6848\u4EE5\u53CA\u8BFE\u7A0B\uFF1B " }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("p", { children: "2.\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\uFF0C\u534F\u52A9\u89E3\u51B3\u3002" }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", { style: { textAlign: 'center' }, children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("img", { style: { width: 192 }, src: _assets_images_AssistantCode3_jpeg__WEBPACK_IMPORTED_MODULE_8__ }) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", { style: { textAlign: 'end' }, children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, { type: "primary", onClick: function onClick() { setisshow(false); }, children: "\u77E5\u9053\u4E86" }), " "] })] }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, { title: "\u5173\u8054\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B", open: isshowmodal, centered: true, onOk: function onOk() { form.submit(); }, okButtonProps: { loading: isloading }, onCancel: function onCancel() { setisshowmodal(false); }, children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("p", { style: { color: '#FA6400', fontSize: '14px' }, children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {}), " \u6559\u5B66\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u5F00\u8BBE\u4E86\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B\uFF0C\u624D\u80FD\u8FDB\u884C\u6DFB\u52A0\u5173\u8054\u64CD\u4F5C\uFF01"] }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, { labelCol: { span: 4 }, wrapperCol: { span: 20 }, form: form, onValuesChange: function onValuesChange(value) { console.log('----', value); if (value.zy) { getjb(value.zy); } if (value.jb) { getcourse(value.jb); } }, onFinish: ( /*#__PURE__*/function () { var _ref2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(value) { var res; return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: setisloading(true); _context2.next = 3; return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/courses/create_ecs_course.json", { method: 'post', body: { id: param === null || param === void 0 ? void 0 : param.coursesId, ec_course_id: value.ec_course_id } }); case 3: res = _context2.sent; setisloading(false); if (res.status === 0) { antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .ZP.info('关联成功'); getDatas(); form.setFieldsValue({ zy: '', jb: '', ec_course_id: '' }); setisshowmodal(false); } case 6: case "end": return _context2.stop(); } }, _callee2); })); return function (_x3) { return _ref2.apply(this, arguments); }; }()), children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.Item, { label: "\u8BA4\u8BC1\u4E13\u4E1A", name: "zy", rules: [{ required: true, message: '请选择认证专业' }], children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"], { disabled: ((_params$zydatas = params.zydatas) === null || _params$zydatas === void 0 ? void 0 : _params$zydatas.length) <= 0, placeholder: "\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A", children: params === null || params === void 0 || (_params$zydatas2 = params.zydatas) === null || _params$zydatas2 === void 0 ? void 0 : _params$zydatas2.map(function (item, index) { return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"].Option, { value: item === null || item === void 0 ? void 0 : item.ec_major_school_id, children: item === null || item === void 0 ? void 0 : item.name }, index); }) }) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.Item, { label: "\u8BA4\u8BC1\u5C4A\u522B", name: "jb", rules: [{ required: true, message: '请选择认证届别' }], children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"], { disabled: ((_params$jbdatas = params.jbdatas) === null || _params$jbdatas === void 0 ? void 0 : _params$jbdatas.length) <= 0, placeholder: "\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B", children: params === null || params === void 0 || (_params$jbdatas2 = params.jbdatas) === null || _params$jbdatas2 === void 0 ? void 0 : _params$jbdatas2.map(function (item, index) { return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"].Option, { value: item === null || item === void 0 ? void 0 : item.ec_year_id, children: item === null || item === void 0 ? void 0 : item.year }, index); }) }) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z.Item, { label: "\u5173\u8054\u8BFE\u7A0B", name: "ec_course_id", rules: [{ required: true, message: '请选择关联课程' }], children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"], { disabled: ((_params$kcdatas = params.kcdatas) === null || _params$kcdatas === void 0 ? void 0 : _params$kcdatas.length) <= 0, placeholder: "\u8BF7\u9009\u62E9\u5173\u8054\u8BFE\u7A0B", children: params === null || params === void 0 || (_params$kcdatas2 = params.kcdatas) === null || _params$kcdatas2 === void 0 ? void 0 : _params$kcdatas2.map(function (item, index) { return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"].Option, { value: item === null || item === void 0 ? void 0 : item.id, children: item === null || item === void 0 ? void 0 : item.name }, index); }) }) })] })] })] }); }; /* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_5__.connect)(function (_ref3) { var classroomList = _ref3.classroomList, loading = _ref3.loading, globalSetting = _ref3.globalSetting, user = _ref3.user; return { classroomList: classroomList, globalSetting: globalSetting, loading: loading.effects, user: user }; })(ShixunsListPage)); /***/ }), /***/ 9447: /*!*******************************************************************!*\ !*** ./src/pages/Classrooms/Lists/Engineering/index.less?modules ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__) { // extracted by mini-css-extract-plugin /* harmony default export */ __webpack_exports__.Z = ({"flex_box_center":"flex_box_center___auROP","flex_space_between":"flex_space_between___zffiE","flex_box_vertical_center":"flex_box_vertical_center___wyNpY","flex_box_center_end":"flex_box_center_end___m_Isr","flex_box_column":"flex_box_column___b27kO","content":"content___QuZGt","header":"header___Lgq9g","span":"span___aqN0x","title":"title___fcmlM","textone":"textone___AoPbl"}); /***/ }), /***/ 32637: /*!***********************************************!*\ !*** ./src/assets/images/AssistantCode3.jpeg ***! \***********************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { module.exports = __webpack_require__.p + "static/AssistantCode3.a8740efb.jpeg"; /***/ }) }]);