|
|
"use strict";
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39391],{
|
|
|
|
|
|
/***/ 87169:
|
|
|
/*!*******************************************************************************************************************!*\
|
|
|
!*** ./node_modules/_@ant-design_icons@5.6.1@@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.27.3@@babel/runtime/helpers/esm/extends.js
|
|
|
var esm_extends = __webpack_require__(71409);
|
|
|
// 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.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
var AntdIcon = __webpack_require__(7657);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@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
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
/** */
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
|
|
|
if (false) {}
|
|
|
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 70768:
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./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/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
|
|
|
var toConsumableArray = __webpack_require__(37205);
|
|
|
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
|
var slicedToArray = __webpack_require__(79800);
|
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
// 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
|
|
|
var _umi_production_exports = __webpack_require__(80184);
|
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
|
var fetch = __webpack_require__(35325);
|
|
|
// 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__(54580);
|
|
|
// 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__(1710);
|
|
|
// 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__(10249);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
|
|
|
var input_number = __webpack_require__(5871);
|
|
|
// 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__(67390);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
|
|
|
var ExclamationCircleOutlined = __webpack_require__(87169);
|
|
|
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
|
|
|
var PreviewAll = __webpack_require__(31427);
|
|
|
// 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);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/AddCourseModal.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Addmodal(_ref) {
|
|
|
var _items$contents;
|
|
|
var isshow = _ref.isshow,
|
|
|
setishow = _ref.setishow,
|
|
|
modalparams = _ref.modalparams,
|
|
|
courseId = _ref.courseId,
|
|
|
getcourse_evaluations = _ref.getcourse_evaluations,
|
|
|
getevaluations = _ref.getevaluations,
|
|
|
items = _ref.items,
|
|
|
points = _ref.points;
|
|
|
var initParams = {
|
|
|
page: 1,
|
|
|
per_page: 20,
|
|
|
total: 0,
|
|
|
name: ''
|
|
|
};
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(0),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
current = _useState2[0],
|
|
|
setcurrent = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(initParams),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
params = _useState4[0],
|
|
|
setParams = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
datas = _useState6[0],
|
|
|
setdatas = _useState6[1];
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(courseId ? items === null || items === void 0 || (_items$contents = items.contents) === null || _items$contents === void 0 ? void 0 : _items$contents.map(function (item) {
|
|
|
return item.course_id;
|
|
|
}) : []),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
selectIds = _useState8[0],
|
|
|
setSelectIds = _useState8[1];
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
howorklist = _useState10[0],
|
|
|
sethoworklist = _useState10[1];
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
howorkids = _useState12[0],
|
|
|
sethoworkids = _useState12[1];
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)('1'),
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
activitykey = _useState14[0],
|
|
|
setactitykey = _useState14[1];
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
isloading = _useState16[0],
|
|
|
setisloading = _useState16[1];
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (isshow) {
|
|
|
var _items$contents2;
|
|
|
setSelectIds(courseId ? items === null || items === void 0 || (_items$contents2 = items.contents) === null || _items$contents2 === void 0 ? void 0 : _items$contents2.map(function (item) {
|
|
|
return item.course_id;
|
|
|
}) : []);
|
|
|
getcourse(params);
|
|
|
}
|
|
|
}, [isshow]);
|
|
|
function getcourse(_x) {
|
|
|
return _getcourse.apply(this, arguments);
|
|
|
}
|
|
|
function _getcourse() {
|
|
|
_getcourse = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(parasm) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
case 0:
|
|
|
_context5.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/1/course_evaluations/search_courses.json", {
|
|
|
method: 'get',
|
|
|
params: parasm
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context5.sent;
|
|
|
if (res !== null && res !== void 0 && res.courses) {
|
|
|
params.total = res === null || res === void 0 ? void 0 : res.count;
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
setdatas(res === null || res === void 0 ? void 0 : res.courses);
|
|
|
}
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context5.stop();
|
|
|
}
|
|
|
}, _callee5);
|
|
|
}));
|
|
|
return _getcourse.apply(this, arguments);
|
|
|
}
|
|
|
var handleChangePage = function handleChangePage(param, per_page, sorter) {
|
|
|
params.page = param === null || param === void 0 ? void 0 : param.current;
|
|
|
params.per_page = param === null || param === void 0 ? void 0 : param.pageSize;
|
|
|
if (sorter !== null && sorter !== void 0 && sorter.order) {
|
|
|
params.sort_by = sorter === null || sorter === void 0 ? void 0 : sorter.field;
|
|
|
params.direction = (sorter === null || sorter === void 0 ? void 0 : sorter.order) === 'ascend' ? 'asc' : 'desc';
|
|
|
} else {
|
|
|
params.sort_by = null;
|
|
|
params.direction = null;
|
|
|
}
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
getcourse(params);
|
|
|
};
|
|
|
var rowSelection = {
|
|
|
selectedRowKeys: selectIds,
|
|
|
columnWidth: 40,
|
|
|
onChange: function onChange(k) {
|
|
|
return setSelectIds(k);
|
|
|
},
|
|
|
getCheckboxProps: function getCheckboxProps(r) {
|
|
|
return {
|
|
|
disabled: r.is_manager
|
|
|
};
|
|
|
}
|
|
|
};
|
|
|
var parser = function parser(v) {
|
|
|
var num = v;
|
|
|
num = isNaN(num) ? '' : num;
|
|
|
if (num[0] === '.') {
|
|
|
num = '';
|
|
|
}
|
|
|
return num;
|
|
|
};
|
|
|
var titletes = function titletes() {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
padding: '0 40px',
|
|
|
color: '#464F66'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
marginBottom: 10
|
|
|
},
|
|
|
children: "\u7EC4\u5408\u8BA1\u7B97\u8BF4\u660E\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: "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__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: "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__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: "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"
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
var shixuntable = function shixuntable(item) {
|
|
|
var _item$courses2, _item$courses3, _item$courses4, _item$courses5, _item$courses6, _item$courses7;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: '38px',
|
|
|
background: '#F5F5F5',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
marginTop: '20px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u8003\u6838\u65B9\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194
|
|
|
},
|
|
|
children: "\u6559\u5B66\u8BFE\u5802"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
width: 324
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
checked: howorkids.length === (item === null || item === void 0 ? void 0 : item.shixun_count),
|
|
|
onChange: function onChange(e) {
|
|
|
var _item$courses;
|
|
|
item === null || item === void 0 || (_item$courses = item.courses) === null || _item$courses === void 0 || _item$courses.map(function (items) {
|
|
|
var _items$shixun_models;
|
|
|
items === null || items === void 0 || (_items$shixun_models = items.shixun_models) === null || _items$shixun_models === void 0 || _items$shixun_models.map(function (jtems) {
|
|
|
jtems.checked = e.target.checked;
|
|
|
});
|
|
|
});
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
if (e.target.checked) {
|
|
|
var _howorklist$courses;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses = howorklist.courses) === null || _howorklist$courses === void 0 ? void 0 : _howorklist$courses.map(function (item) {
|
|
|
var _item$shixun_models;
|
|
|
return item === null || item === void 0 || (_item$shixun_models = item.shixun_models) === null || _item$shixun_models === void 0 ? void 0 : _item$shixun_models.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(bb));
|
|
|
} else {
|
|
|
sethoworkids([]);
|
|
|
}
|
|
|
}
|
|
|
}), " \u8003\u6838\u5185\u5BB9"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277
|
|
|
},
|
|
|
children: "\u5206\u73ED"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214
|
|
|
},
|
|
|
children: "\u8003\u6838\u77E5\u8BC6\u70B9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u503C"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u7EC4\u5408\u8BA1\u7B97"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
border: '1px solid #f0f0f0',
|
|
|
maxHeight: '552px',
|
|
|
overflow: 'auto'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: item.name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses2 = item.courses) === null || _item$courses2 === void 0 ? void 0 : _item$courses2.map(function (items) {
|
|
|
var _items$shixun_models2, _items$shixun_models3, _items$shixun_models4, _items$shixun_models5;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: (items === null || items === void 0 || (_items$shixun_models2 = items.shixun_models) === null || _items$shixun_models2 === void 0 ? void 0 : _items$shixun_models2.length) === 0 ? 40 : (items === null || items === void 0 || (_items$shixun_models3 = items.shixun_models) === null || _items$shixun_models3 === void 0 ? void 0 : _items$shixun_models3.length) * 40,
|
|
|
lineHeight: (items === null || items === void 0 || (_items$shixun_models4 = items.shixun_models) === null || _items$shixun_models4 === void 0 ? void 0 : _items$shixun_models4.length) === 0 ? 40 + 'px' : (items === null || items === void 0 || (_items$shixun_models5 = items.shixun_models) === null || _items$shixun_models5 === void 0 ? void 0 : _items$shixun_models5.length) * 40 + 'px'
|
|
|
},
|
|
|
children: items.name
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 324,
|
|
|
maxHeight: '552px',
|
|
|
textAlign: 'left'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z.Group, {
|
|
|
onChange: function onChange(e) {
|
|
|
var _howorklist$courses2;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses2 = howorklist.courses) === null || _howorklist$courses2 === void 0 ? void 0 : _howorklist$courses2.map(function (item) {
|
|
|
var _item$shixun_models2;
|
|
|
return item === null || item === void 0 || (_item$shixun_models2 = item.shixun_models) === null || _item$shixun_models2 === void 0 ? void 0 : _item$shixun_models2.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
var res = bb.filter(function (item) {
|
|
|
return e.includes(item.id);
|
|
|
});
|
|
|
sethoworkids(res);
|
|
|
},
|
|
|
style: {
|
|
|
width: '100%'
|
|
|
},
|
|
|
value: howorkids === null || howorkids === void 0 ? void 0 : howorkids.map(function (item) {
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
}),
|
|
|
children: item === null || item === void 0 || (_item$courses3 = item.courses) === null || _item$courses3 === void 0 ? void 0 : _item$courses3.map(function (items) {
|
|
|
var _items$shixun_models6, _items$shixun_models7;
|
|
|
return (items === null || items === void 0 || (_items$shixun_models6 = items.shixun_models) === null || _items$shixun_models6 === void 0 ? void 0 : _items$shixun_models6.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$shixun_models7 = items.shixun_models) === null || _items$shixun_models7 === void 0 ? void 0 : _items$shixun_models7.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
onChange: function onChange(e) {
|
|
|
items.checked = e.target.checked;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
value: items === null || items === void 0 ? void 0 : items.id,
|
|
|
children: items.name
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses4 = item.courses) === null || _item$courses4 === void 0 ? void 0 : _item$courses4.map(function (items) {
|
|
|
var _items$shixun_models8, _items$shixun_models9;
|
|
|
return (items === null || items === void 0 || (_items$shixun_models8 = items.shixun_models) === null || _items$shixun_models8 === void 0 ? void 0 : _items$shixun_models8.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$shixun_models9 = items.shixun_models) === null || _items$shixun_models9 === void 0 ? void 0 : _items$shixun_models9.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: items.groups,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.groups
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses5 = item.courses) === null || _item$courses5 === void 0 ? void 0 : _item$courses5.map(function (items) {
|
|
|
var _items$shixun_models10, _items$shixun_models11;
|
|
|
return (items === null || items === void 0 || (_items$shixun_models10 = items.shixun_models) === null || _items$shixun_models10 === void 0 ? void 0 : _items$shixun_models10.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$shixun_models11 = items.shixun_models) === null || _items$shixun_models11 === void 0 ? void 0 : _items$shixun_models11.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
value: items.ec_point_ids,
|
|
|
onChange: function onChange(value) {
|
|
|
items.ec_point_ids = value;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
mode: "multiple",
|
|
|
style: {
|
|
|
width: 200
|
|
|
},
|
|
|
children: points.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
|
|
|
value: item.id,
|
|
|
children: ["\u77E5\u8BC6\u70B9".concat(index + 1, "\uFF1A"), item.name]
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses6 = item.courses) === null || _item$courses6 === void 0 ? void 0 : _item$courses6.map(function (items) {
|
|
|
var _items$shixun_models12, _items$shixun_models13;
|
|
|
return (items === null || items === void 0 || (_items$shixun_models12 = items.shixun_models) === null || _items$shixun_models12 === void 0 ? void 0 : _items$shixun_models12.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$shixun_models13 = items.shixun_models) === null || _items$shixun_models13 === void 0 ? void 0 : _items$shixun_models13.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.total_score
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses7 = item.courses) === null || _item$courses7 === void 0 ? void 0 : _item$courses7.map(function (items) {
|
|
|
var _items$shixun_models14, _items$shixun_models15;
|
|
|
return (items === null || items === void 0 || (_items$shixun_models14 = items.shixun_models) === null || _items$shixun_models14 === void 0 ? void 0 : _items$shixun_models14.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
disabled: true
|
|
|
})
|
|
|
}) : items === null || items === void 0 || (_items$shixun_models15 = items.shixun_models) === null || _items$shixun_models15 === void 0 ? void 0 : _items$shixun_models15.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
min: 1,
|
|
|
step: 0.1,
|
|
|
parser: parser,
|
|
|
value: items === null || items === void 0 ? void 0 : items.position,
|
|
|
onChange: function onChange(e) {
|
|
|
items.position = e;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
var exercisetable = function exercisetable(item) {
|
|
|
var _item$courses9, _item$courses10, _item$courses11, _item$courses12, _item$courses13, _item$courses14;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: '38px',
|
|
|
background: '#F5F5F5',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
marginTop: '20px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u8003\u6838\u65B9\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194
|
|
|
},
|
|
|
children: "\u6559\u5B66\u8BFE\u5802"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
width: 324
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
checked: howorkids.length === (item === null || item === void 0 ? void 0 : item.exercise_count),
|
|
|
onChange: function onChange(e) {
|
|
|
var _item$courses8;
|
|
|
item === null || item === void 0 || (_item$courses8 = item.courses) === null || _item$courses8 === void 0 || _item$courses8.map(function (items) {
|
|
|
var _items$exercise_model;
|
|
|
items === null || items === void 0 || (_items$exercise_model = items.exercise_models) === null || _items$exercise_model === void 0 || _items$exercise_model.map(function (jtems) {
|
|
|
jtems.checked = e.target.checked;
|
|
|
});
|
|
|
});
|
|
|
sethoworklist(objectSpread2_default()({}, howorklist));
|
|
|
if (e.target.checked) {
|
|
|
var _howorklist$courses3;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses3 = howorklist.courses) === null || _howorklist$courses3 === void 0 ? void 0 : _howorklist$courses3.map(function (item) {
|
|
|
var _item$exercise_models;
|
|
|
return item === null || item === void 0 || (_item$exercise_models = item.exercise_models) === null || _item$exercise_models === void 0 ? void 0 : _item$exercise_models.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(bb));
|
|
|
} else {
|
|
|
sethoworkids([]);
|
|
|
}
|
|
|
}
|
|
|
}), " \u8003\u6838\u5185\u5BB9"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277
|
|
|
},
|
|
|
children: "\u5206\u73ED"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214
|
|
|
},
|
|
|
children: "\u8003\u6838\u77E5\u8BC6\u70B9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u503C"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u7EC4\u5408\u8BA1\u7B97"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
border: '1px solid #f0f0f0',
|
|
|
maxHeight: '552px',
|
|
|
overflow: 'auto'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: item.name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses9 = item.courses) === null || _item$courses9 === void 0 ? void 0 : _item$courses9.map(function (items) {
|
|
|
var _items$exercise_model2, _items$exercise_model3, _items$exercise_model4, _items$exercise_model5;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: (items === null || items === void 0 || (_items$exercise_model2 = items.exercise_models) === null || _items$exercise_model2 === void 0 ? void 0 : _items$exercise_model2.length) === 0 ? 40 : (items === null || items === void 0 || (_items$exercise_model3 = items.exercise_models) === null || _items$exercise_model3 === void 0 ? void 0 : _items$exercise_model3.length) * 40,
|
|
|
lineHeight: (items === null || items === void 0 || (_items$exercise_model4 = items.exercise_models) === null || _items$exercise_model4 === void 0 ? void 0 : _items$exercise_model4.length) === 0 ? 40 + 'px' : (items === null || items === void 0 || (_items$exercise_model5 = items.exercise_models) === null || _items$exercise_model5 === void 0 ? void 0 : _items$exercise_model5.length) * 40 + 'px'
|
|
|
},
|
|
|
children: items.name
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 324,
|
|
|
maxHeight: '552px',
|
|
|
textAlign: 'left'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z.Group, {
|
|
|
onChange: function onChange(e) {
|
|
|
var _howorklist$courses4;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses4 = howorklist.courses) === null || _howorklist$courses4 === void 0 ? void 0 : _howorklist$courses4.map(function (item) {
|
|
|
var _item$exercise_models2;
|
|
|
return item === null || item === void 0 || (_item$exercise_models2 = item.exercise_models) === null || _item$exercise_models2 === void 0 ? void 0 : _item$exercise_models2.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
var res = bb.filter(function (item) {
|
|
|
return e.includes(item.id);
|
|
|
});
|
|
|
sethoworkids(res);
|
|
|
},
|
|
|
style: {
|
|
|
width: '100%'
|
|
|
},
|
|
|
value: howorkids === null || howorkids === void 0 ? void 0 : howorkids.map(function (item) {
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
}),
|
|
|
children: item === null || item === void 0 || (_item$courses10 = item.courses) === null || _item$courses10 === void 0 ? void 0 : _item$courses10.map(function (items) {
|
|
|
var _items$exercise_model6, _items$exercise_model7;
|
|
|
return (items === null || items === void 0 || (_items$exercise_model6 = items.exercise_models) === null || _items$exercise_model6 === void 0 ? void 0 : _items$exercise_model6.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$exercise_model7 = items.exercise_models) === null || _items$exercise_model7 === void 0 ? void 0 : _items$exercise_model7.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
onChange: function onChange(e) {
|
|
|
items.checked = e.target.checked;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
value: items === null || items === void 0 ? void 0 : items.id,
|
|
|
children: items.name
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses11 = item.courses) === null || _item$courses11 === void 0 ? void 0 : _item$courses11.map(function (items) {
|
|
|
var _items$exercise_model8, _items$exercise_model9;
|
|
|
return (items === null || items === void 0 || (_items$exercise_model8 = items.exercise_models) === null || _items$exercise_model8 === void 0 ? void 0 : _items$exercise_model8.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$exercise_model9 = items.exercise_models) === null || _items$exercise_model9 === void 0 ? void 0 : _items$exercise_model9.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: items.groups,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.groups
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses12 = item.courses) === null || _item$courses12 === void 0 ? void 0 : _item$courses12.map(function (items) {
|
|
|
var _items$exercise_model10, _items$exercise_model11;
|
|
|
return (items === null || items === void 0 || (_items$exercise_model10 = items.exercise_models) === null || _items$exercise_model10 === void 0 ? void 0 : _items$exercise_model10.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$exercise_model11 = items.exercise_models) === null || _items$exercise_model11 === void 0 ? void 0 : _items$exercise_model11.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
value: items.ec_point_ids,
|
|
|
onChange: function onChange(value) {
|
|
|
items.ec_point_ids = value;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
mode: "multiple",
|
|
|
style: {
|
|
|
width: 200
|
|
|
},
|
|
|
children: points.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
|
|
|
value: item.id,
|
|
|
children: ["\u77E5\u8BC6\u70B9".concat(index + 1, "\uFF1A"), item.name]
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses13 = item.courses) === null || _item$courses13 === void 0 ? void 0 : _item$courses13.map(function (items) {
|
|
|
var _items$exercise_model12, _items$exercise_model13;
|
|
|
return (items === null || items === void 0 || (_items$exercise_model12 = items.exercise_models) === null || _items$exercise_model12 === void 0 ? void 0 : _items$exercise_model12.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$exercise_model13 = items.exercise_models) === null || _items$exercise_model13 === void 0 ? void 0 : _items$exercise_model13.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.total_score
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses14 = item.courses) === null || _item$courses14 === void 0 ? void 0 : _item$courses14.map(function (items) {
|
|
|
var _items$exercise_model14, _items$exercise_model15;
|
|
|
return (items === null || items === void 0 || (_items$exercise_model14 = items.exercise_models) === null || _items$exercise_model14 === void 0 ? void 0 : _items$exercise_model14.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
disabled: true
|
|
|
})
|
|
|
}) : items === null || items === void 0 || (_items$exercise_model15 = items.exercise_models) === null || _items$exercise_model15 === void 0 ? void 0 : _items$exercise_model15.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
min: 1,
|
|
|
step: 0.1,
|
|
|
parser: parser,
|
|
|
value: items === null || items === void 0 ? void 0 : items.position,
|
|
|
onChange: function onChange(e) {
|
|
|
items.position = e;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
var commontable = function commontable(item) {
|
|
|
var _item$courses16, _item$courses17, _item$courses18, _item$courses19, _item$courses20, _item$courses21;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: '38px',
|
|
|
background: '#F5F5F5',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
marginTop: '20px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u8003\u6838\u65B9\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194
|
|
|
},
|
|
|
children: "\u6559\u5B66\u8BFE\u5802"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
width: 324
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
checked: howorkids.length === (item === null || item === void 0 ? void 0 : item.common_count),
|
|
|
onChange: function onChange(e) {
|
|
|
var _item$courses15;
|
|
|
item === null || item === void 0 || (_item$courses15 = item.courses) === null || _item$courses15 === void 0 || _item$courses15.map(function (items) {
|
|
|
var _items$common_models;
|
|
|
items === null || items === void 0 || (_items$common_models = items.common_models) === null || _items$common_models === void 0 || _items$common_models.map(function (jtems) {
|
|
|
jtems.checked = e.target.checked;
|
|
|
});
|
|
|
});
|
|
|
sethoworklist(objectSpread2_default()({}, howorklist));
|
|
|
if (e.target.checked) {
|
|
|
var _howorklist$courses5;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses5 = howorklist.courses) === null || _howorklist$courses5 === void 0 ? void 0 : _howorklist$courses5.map(function (item) {
|
|
|
var _item$common_models;
|
|
|
return item === null || item === void 0 || (_item$common_models = item.common_models) === null || _item$common_models === void 0 ? void 0 : _item$common_models.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(bb));
|
|
|
} else {
|
|
|
sethoworkids([]);
|
|
|
}
|
|
|
}
|
|
|
}), " \u8003\u6838\u5185\u5BB9"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277
|
|
|
},
|
|
|
children: "\u5206\u73ED"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214
|
|
|
},
|
|
|
children: "\u8003\u6838\u77E5\u8BC6\u70B9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u503C"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u7EC4\u5408\u8BA1\u7B97"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
border: '1px solid #f0f0f0',
|
|
|
maxHeight: '552px',
|
|
|
overflow: 'auto'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: item.name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses16 = item.courses) === null || _item$courses16 === void 0 ? void 0 : _item$courses16.map(function (items) {
|
|
|
var _items$common_models2, _items$common_models3, _items$common_models4, _items$common_models5;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: (items === null || items === void 0 || (_items$common_models2 = items.common_models) === null || _items$common_models2 === void 0 ? void 0 : _items$common_models2.length) === 0 ? 40 : (items === null || items === void 0 || (_items$common_models3 = items.common_models) === null || _items$common_models3 === void 0 ? void 0 : _items$common_models3.length) * 40,
|
|
|
lineHeight: (items === null || items === void 0 || (_items$common_models4 = items.common_models) === null || _items$common_models4 === void 0 ? void 0 : _items$common_models4.length) === 0 ? 40 + 'px' : (items === null || items === void 0 || (_items$common_models5 = items.common_models) === null || _items$common_models5 === void 0 ? void 0 : _items$common_models5.length) * 40 + 'px'
|
|
|
},
|
|
|
children: items.name
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 324,
|
|
|
maxHeight: '552px',
|
|
|
textAlign: 'left'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z.Group, {
|
|
|
onChange: function onChange(e) {
|
|
|
var _howorklist$courses6;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses6 = howorklist.courses) === null || _howorklist$courses6 === void 0 ? void 0 : _howorklist$courses6.map(function (item) {
|
|
|
var _item$common_models2;
|
|
|
return item === null || item === void 0 || (_item$common_models2 = item.common_models) === null || _item$common_models2 === void 0 ? void 0 : _item$common_models2.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
var res = bb.filter(function (item) {
|
|
|
return e.includes(item.id);
|
|
|
});
|
|
|
sethoworkids(res);
|
|
|
},
|
|
|
style: {
|
|
|
width: '100%'
|
|
|
},
|
|
|
value: howorkids === null || howorkids === void 0 ? void 0 : howorkids.map(function (item) {
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
}),
|
|
|
children: item === null || item === void 0 || (_item$courses17 = item.courses) === null || _item$courses17 === void 0 ? void 0 : _item$courses17.map(function (items) {
|
|
|
var _items$common_models6, _items$common_models7;
|
|
|
return (items === null || items === void 0 || (_items$common_models6 = items.common_models) === null || _items$common_models6 === void 0 ? void 0 : _items$common_models6.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$common_models7 = items.common_models) === null || _items$common_models7 === void 0 ? void 0 : _items$common_models7.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
onChange: function onChange(e) {
|
|
|
items.checked = e.target.checked;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
value: items === null || items === void 0 ? void 0 : items.id,
|
|
|
children: items.name
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses18 = item.courses) === null || _item$courses18 === void 0 ? void 0 : _item$courses18.map(function (items) {
|
|
|
var _items$common_models8, _items$common_models9;
|
|
|
return (items === null || items === void 0 || (_items$common_models8 = items.common_models) === null || _items$common_models8 === void 0 ? void 0 : _items$common_models8.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$common_models9 = items.common_models) === null || _items$common_models9 === void 0 ? void 0 : _items$common_models9.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: items.groups,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.groups
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses19 = item.courses) === null || _item$courses19 === void 0 ? void 0 : _item$courses19.map(function (items) {
|
|
|
var _items$common_models10, _items$common_models11;
|
|
|
return (items === null || items === void 0 || (_items$common_models10 = items.common_models) === null || _items$common_models10 === void 0 ? void 0 : _items$common_models10.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$common_models11 = items.common_models) === null || _items$common_models11 === void 0 ? void 0 : _items$common_models11.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
value: items.ec_point_ids,
|
|
|
onChange: function onChange(value) {
|
|
|
items.ec_point_ids = value;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
mode: "multiple",
|
|
|
style: {
|
|
|
width: 200
|
|
|
},
|
|
|
children: points.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
|
|
|
value: item.id,
|
|
|
children: ["\u77E5\u8BC6\u70B9".concat(index + 1, "\uFF1A"), item.name]
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses20 = item.courses) === null || _item$courses20 === void 0 ? void 0 : _item$courses20.map(function (items) {
|
|
|
var _items$common_models12, _items$common_models13;
|
|
|
return (items === null || items === void 0 || (_items$common_models12 = items.common_models) === null || _items$common_models12 === void 0 ? void 0 : _items$common_models12.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$common_models13 = items.common_models) === null || _items$common_models13 === void 0 ? void 0 : _items$common_models13.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.total_score
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses21 = item.courses) === null || _item$courses21 === void 0 ? void 0 : _item$courses21.map(function (items) {
|
|
|
var _items$common_models14, _items$common_models15;
|
|
|
return (items === null || items === void 0 || (_items$common_models14 = items.common_models) === null || _items$common_models14 === void 0 ? void 0 : _items$common_models14.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
disabled: true
|
|
|
})
|
|
|
}) : items === null || items === void 0 || (_items$common_models15 = items.common_models) === null || _items$common_models15 === void 0 ? void 0 : _items$common_models15.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
min: 1,
|
|
|
step: 0.1,
|
|
|
parser: parser,
|
|
|
value: items === null || items === void 0 ? void 0 : items.position,
|
|
|
onChange: function onChange(e) {
|
|
|
items.position = e;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
var grouptable = function grouptable(item) {
|
|
|
var _item$courses23, _item$courses24, _item$courses25, _item$courses26, _item$courses27, _item$courses28;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: '38px',
|
|
|
background: '#F5F5F5',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
marginTop: '20px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u8003\u6838\u65B9\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194
|
|
|
},
|
|
|
children: "\u6559\u5B66\u8BFE\u5802"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
width: 324
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
checked: howorkids.length === (item === null || item === void 0 ? void 0 : item.group_count),
|
|
|
onChange: function onChange(e) {
|
|
|
var _item$courses22;
|
|
|
item === null || item === void 0 || (_item$courses22 = item.courses) === null || _item$courses22 === void 0 || _item$courses22.map(function (items) {
|
|
|
var _items$group_models;
|
|
|
items === null || items === void 0 || (_items$group_models = items.group_models) === null || _items$group_models === void 0 || _items$group_models.map(function (jtems) {
|
|
|
jtems.checked = e.target.checked;
|
|
|
});
|
|
|
});
|
|
|
sethoworklist(objectSpread2_default()({}, howorklist));
|
|
|
if (e.target.checked) {
|
|
|
var _howorklist$courses7;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses7 = howorklist.courses) === null || _howorklist$courses7 === void 0 ? void 0 : _howorklist$courses7.map(function (item) {
|
|
|
var _item$group_models;
|
|
|
return item === null || item === void 0 || (_item$group_models = item.group_models) === null || _item$group_models === void 0 ? void 0 : _item$group_models.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(bb));
|
|
|
} else {
|
|
|
sethoworkids([]);
|
|
|
}
|
|
|
}
|
|
|
}), " \u8003\u6838\u5185\u5BB9"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277
|
|
|
},
|
|
|
children: "\u5206\u73ED"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214
|
|
|
},
|
|
|
children: "\u8003\u6838\u77E5\u8BC6\u70B9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u503C"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: "\u7EC4\u5408\u8BA1\u7B97"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
textAlign: 'center',
|
|
|
border: '1px solid #f0f0f0',
|
|
|
maxHeight: '552px',
|
|
|
overflow: 'auto'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93
|
|
|
},
|
|
|
children: item.name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 194,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses23 = item.courses) === null || _item$courses23 === void 0 ? void 0 : _item$courses23.map(function (items) {
|
|
|
var _items$group_models2, _items$group_models3, _items$group_models4, _items$group_models5;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: (items === null || items === void 0 || (_items$group_models2 = items.group_models) === null || _items$group_models2 === void 0 ? void 0 : _items$group_models2.length) === 0 ? 40 : (items === null || items === void 0 || (_items$group_models3 = items.group_models) === null || _items$group_models3 === void 0 ? void 0 : _items$group_models3.length) * 40,
|
|
|
lineHeight: (items === null || items === void 0 || (_items$group_models4 = items.group_models) === null || _items$group_models4 === void 0 ? void 0 : _items$group_models4.length) === 0 ? 40 + 'px' : (items === null || items === void 0 || (_items$group_models5 = items.group_models) === null || _items$group_models5 === void 0 ? void 0 : _items$group_models5.length) * 40 + 'px'
|
|
|
},
|
|
|
children: items.name
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 324,
|
|
|
maxHeight: '552px',
|
|
|
textAlign: 'left'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z.Group, {
|
|
|
onChange: function onChange(e) {
|
|
|
var _howorklist$courses8;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses8 = howorklist.courses) === null || _howorklist$courses8 === void 0 ? void 0 : _howorklist$courses8.map(function (item) {
|
|
|
var _item$group_models2;
|
|
|
return item === null || item === void 0 || (_item$group_models2 = item.group_models) === null || _item$group_models2 === void 0 ? void 0 : _item$group_models2.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
bb.push(jtem);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
var res = bb.filter(function (item) {
|
|
|
return e.includes(item.id);
|
|
|
});
|
|
|
sethoworkids(res);
|
|
|
},
|
|
|
style: {
|
|
|
width: '100%'
|
|
|
},
|
|
|
value: howorkids === null || howorkids === void 0 ? void 0 : howorkids.map(function (item) {
|
|
|
return item === null || item === void 0 ? void 0 : item.id;
|
|
|
}),
|
|
|
children: item === null || item === void 0 || (_item$courses24 = item.courses) === null || _item$courses24 === void 0 ? void 0 : _item$courses24.map(function (items) {
|
|
|
var _items$group_models6, _items$group_models7;
|
|
|
return (items === null || items === void 0 || (_items$group_models6 = items.group_models) === null || _items$group_models6 === void 0 ? void 0 : _items$group_models6.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$group_models7 = items.group_models) === null || _items$group_models7 === void 0 ? void 0 : _items$group_models7.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
onChange: function onChange(e) {
|
|
|
items.checked = e.target.checked;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
value: items === null || items === void 0 ? void 0 : items.id,
|
|
|
children: items.name
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 277,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses25 = item.courses) === null || _item$courses25 === void 0 ? void 0 : _item$courses25.map(function (items) {
|
|
|
var _items$group_models8, _items$group_models9;
|
|
|
return (items === null || items === void 0 || (_items$group_models8 = items.group_models) === null || _items$group_models8 === void 0 ? void 0 : _items$group_models8.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$group_models9 = items.group_models) === null || _items$group_models9 === void 0 ? void 0 : _items$group_models9.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: items.groups,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.groups
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 214,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses26 = item.courses) === null || _item$courses26 === void 0 ? void 0 : _item$courses26.map(function (items) {
|
|
|
var _items$group_models10, _items$group_models11;
|
|
|
return (items === null || items === void 0 || (_items$group_models10 = items.group_models) === null || _items$group_models10 === void 0 ? void 0 : _items$group_models10.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$group_models11 = items.group_models) === null || _items$group_models11 === void 0 ? void 0 : _items$group_models11.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
value: items.ec_point_ids,
|
|
|
onChange: function onChange(value) {
|
|
|
items.ec_point_ids = value;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
},
|
|
|
mode: "multiple",
|
|
|
style: {
|
|
|
width: 200
|
|
|
},
|
|
|
children: points.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
|
|
|
value: item.id,
|
|
|
children: ["\u77E5\u8BC6\u70B9".concat(index + 1, "\uFF1A"), item.name]
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 87,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses27 = item.courses) === null || _item$courses27 === void 0 ? void 0 : _item$courses27.map(function (items) {
|
|
|
var _items$group_models12, _items$group_models13;
|
|
|
return (items === null || items === void 0 || (_items$group_models12 = items.group_models) === null || _items$group_models12 === void 0 ? void 0 : _items$group_models12.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: "--"
|
|
|
}) : items === null || items === void 0 || (_items$group_models13 = items.group_models) === null || _items$group_models13 === void 0 ? void 0 : _items$group_models13.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: items.total_score
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 93,
|
|
|
maxHeight: '552px'
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$courses28 = item.courses) === null || _item$courses28 === void 0 ? void 0 : _item$courses28.map(function (items) {
|
|
|
var _items$group_models14, _items$group_models15;
|
|
|
return (items === null || items === void 0 || (_items$group_models14 = items.group_models) === null || _items$group_models14 === void 0 ? void 0 : _items$group_models14.length) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
disabled: true
|
|
|
})
|
|
|
}) : items === null || items === void 0 || (_items$group_models15 = items.group_models) === null || _items$group_models15 === void 0 ? void 0 : _items$group_models15.map(function (items) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textwidth,
|
|
|
style: {
|
|
|
height: 40,
|
|
|
lineHeight: '40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
min: 1,
|
|
|
step: 0.1,
|
|
|
parser: parser,
|
|
|
value: items === null || items === void 0 ? void 0 : items.position,
|
|
|
onChange: function onChange(e) {
|
|
|
items.position = e;
|
|
|
sethoworklist(objectSpread2_default()({}, item));
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
});
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
title: "\u6DFB\u52A0\u8BFE\u5802\u6570\u636E",
|
|
|
wrapClassName: CurseSettingmodules.modalWrapContainer,
|
|
|
open: isshow,
|
|
|
width: current < 2 ? 740 : 1100,
|
|
|
footer: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [current < 2 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
type: "primary",
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
var _res$courses;
|
|
|
var res, aa, bb;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
if (!(!selectIds || selectIds == "")) {
|
|
|
_context.next = 3;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.warning("请选择课堂");
|
|
|
return _context.abrupt("return");
|
|
|
case 3:
|
|
|
_context.next = 5;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(modalparams === null || modalparams === void 0 ? void 0 : modalparams.id, "/course_evaluations/search_works.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
course_ids: selectIds,
|
|
|
list_id: courseId || ''
|
|
|
}
|
|
|
});
|
|
|
case 5:
|
|
|
res = _context.sent;
|
|
|
sethoworklist(res);
|
|
|
aa = res === null || res === void 0 || (_res$courses = res.courses) === null || _res$courses === void 0 ? void 0 : _res$courses.map(function (item) {
|
|
|
var _item$shixun_models3;
|
|
|
return item === null || item === void 0 || (_item$shixun_models3 = item.shixun_models) === null || _item$shixun_models3 === void 0 ? void 0 : _item$shixun_models3.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
bb.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(bb));
|
|
|
setactitykey('1');
|
|
|
setcurrent(2);
|
|
|
case 13:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
})),
|
|
|
children: "\u4E0B\u4E00\u6B65"
|
|
|
}), current >= 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
type: "primary",
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
setishow(false);
|
|
|
setcurrent(0);
|
|
|
case 2:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}, _callee2);
|
|
|
})),
|
|
|
children: "\u53D6\u6D88"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
type: "primary",
|
|
|
loading: isloading,
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
var _howorklist$courses9, _howorklist$courses10, _howorklist$courses11, _howorklist$courses12, _shixun_works, _common_works, _group_works, _exercise_works;
|
|
|
var aa, common_works, bb, group_works, cc, exercise_works, dd, shixun_works, res, _res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
case 0:
|
|
|
aa = howorklist === null || howorklist === void 0 || (_howorklist$courses9 = howorklist.courses) === null || _howorklist$courses9 === void 0 ? void 0 : _howorklist$courses9.map(function (item) {
|
|
|
var _item$common_models3;
|
|
|
return item === null || item === void 0 || (_item$common_models3 = item.common_models) === null || _item$common_models3 === void 0 ? void 0 : _item$common_models3.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
common_works = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
common_works.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
bb = howorklist === null || howorklist === void 0 || (_howorklist$courses10 = howorklist.courses) === null || _howorklist$courses10 === void 0 ? void 0 : _howorklist$courses10.map(function (item) {
|
|
|
var _item$group_models3;
|
|
|
return item === null || item === void 0 || (_item$group_models3 = item.group_models) === null || _item$group_models3 === void 0 ? void 0 : _item$group_models3.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
group_works = [];
|
|
|
bb.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
group_works.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
cc = howorklist === null || howorklist === void 0 || (_howorklist$courses11 = howorklist.courses) === null || _howorklist$courses11 === void 0 ? void 0 : _howorklist$courses11.map(function (item) {
|
|
|
var _item$exercise_models3;
|
|
|
return item === null || item === void 0 || (_item$exercise_models3 = item.exercise_models) === null || _item$exercise_models3 === void 0 ? void 0 : _item$exercise_models3.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
exercise_works = [];
|
|
|
cc.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
exercise_works.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
dd = howorklist === null || howorklist === void 0 || (_howorklist$courses12 = howorklist.courses) === null || _howorklist$courses12 === void 0 ? void 0 : _howorklist$courses12.map(function (item) {
|
|
|
var _item$shixun_models4;
|
|
|
return item === null || item === void 0 || (_item$shixun_models4 = item.shixun_models) === null || _item$shixun_models4 === void 0 ? void 0 : _item$shixun_models4.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
shixun_works = [];
|
|
|
dd.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',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 = shixun_works) === null || _shixun_works === void 0 ? void 0 : _shixun_works.length) <= 0 && ((_common_works = common_works) === null || _common_works === void 0 ? void 0 : _common_works.length) <= 0 && ((_group_works = group_works) === null || _group_works === void 0 ? void 0 : _group_works.length) <= 0 && ((_exercise_works = exercise_works) === null || _exercise_works === void 0 ? void 0 : _exercise_works.length) <= 0)) {
|
|
|
_context3.next = 18;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.info('请选择考核内容');
|
|
|
setisloading(false);
|
|
|
return _context3.abrupt("return");
|
|
|
case 18:
|
|
|
if (!courseId) {
|
|
|
_context3.next = 25;
|
|
|
break;
|
|
|
}
|
|
|
_context3.next = 21;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(modalparams === null || modalparams === void 0 ? void 0 : modalparams.id, "/course_evaluations/update_online"), {
|
|
|
method: 'put',
|
|
|
body: {
|
|
|
id: courseId,
|
|
|
course_ids: selectIds,
|
|
|
shixun_works: shixun_works,
|
|
|
common_works: common_works,
|
|
|
group_works: group_works,
|
|
|
exercise_works: exercise_works
|
|
|
}
|
|
|
});
|
|
|
case 21:
|
|
|
res = _context3.sent;
|
|
|
if (res) {
|
|
|
setishow(false);
|
|
|
getcourse_evaluations(modalparams);
|
|
|
getevaluations(modalparams);
|
|
|
}
|
|
|
_context3.next = 29;
|
|
|
break;
|
|
|
case 25:
|
|
|
_context3.next = 27;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(modalparams === null || modalparams === void 0 ? void 0 : modalparams.id, "/course_evaluations/create_online"), {
|
|
|
method: 'post',
|
|
|
body: {
|
|
|
course_ids: selectIds,
|
|
|
shixun_works: shixun_works,
|
|
|
common_works: common_works,
|
|
|
group_works: group_works,
|
|
|
exercise_works: exercise_works
|
|
|
}
|
|
|
});
|
|
|
case 27:
|
|
|
_res = _context3.sent;
|
|
|
if (_res) {
|
|
|
setishow(false);
|
|
|
getcourse_evaluations(modalparams);
|
|
|
getevaluations(modalparams);
|
|
|
}
|
|
|
case 29:
|
|
|
setisloading(false);
|
|
|
setcurrent(0);
|
|
|
case 31:
|
|
|
case "end":
|
|
|
return _context3.stop();
|
|
|
}
|
|
|
}, _callee3);
|
|
|
})),
|
|
|
children: "\u4FDD\u5B58"
|
|
|
})]
|
|
|
})]
|
|
|
}),
|
|
|
onCancel: function onCancel() {
|
|
|
setcurrent(0);
|
|
|
setishow(false);
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: "calc(100% - 184px)",
|
|
|
margin: '0 auto'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(steps/* default */.Z, {
|
|
|
current: current,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(steps/* default */.Z.Step, {
|
|
|
style: {
|
|
|
cursor: 'pointer'
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
setcurrent(1);
|
|
|
},
|
|
|
title: '关联课堂'
|
|
|
}, 1), /*#__PURE__*/(0,jsx_runtime.jsx)(steps/* default */.Z.Step, {
|
|
|
style: {
|
|
|
cursor: 'pointer'
|
|
|
},
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
|
|
|
var _res$courses2;
|
|
|
var res, aa, bb;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
case 0:
|
|
|
if (!(selectIds.length <= 0)) {
|
|
|
_context4.next = 3;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.info("\u8BF7\u9009\u62E9\u8BFE\u5802");
|
|
|
return _context4.abrupt("return");
|
|
|
case 3:
|
|
|
_context4.next = 5;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(modalparams === null || modalparams === void 0 ? void 0 : modalparams.id, "/course_evaluations/search_works.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
course_ids: selectIds,
|
|
|
list_id: courseId || ''
|
|
|
}
|
|
|
});
|
|
|
case 5:
|
|
|
res = _context4.sent;
|
|
|
sethoworklist(res);
|
|
|
aa = res === null || res === void 0 || (_res$courses2 = res.courses) === null || _res$courses2 === void 0 ? void 0 : _res$courses2.map(function (item) {
|
|
|
var _item$shixun_models5;
|
|
|
return item === null || item === void 0 || (_item$shixun_models5 = item.shixun_models) === null || _item$shixun_models5 === void 0 ? void 0 : _item$shixun_models5.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
bb.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(bb));
|
|
|
setactitykey('1');
|
|
|
setcurrent(2);
|
|
|
case 13:
|
|
|
case "end":
|
|
|
return _context4.stop();
|
|
|
}
|
|
|
}, _callee4);
|
|
|
})),
|
|
|
title: '配置考核方式与内容'
|
|
|
}, 2)]
|
|
|
})
|
|
|
}), current < 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
marginTop: 30,
|
|
|
padding: '0 40px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
},
|
|
|
className: CurseSettingmodules.title,
|
|
|
children: "\u5173\u8054\u8BFE\u5802"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
|
|
|
className: CurseSettingmodules.inputWrap,
|
|
|
style: {
|
|
|
width: '342px',
|
|
|
height: "auto"
|
|
|
},
|
|
|
onSearch: function onSearch(e) {
|
|
|
params.page = 1;
|
|
|
params.name = e;
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
getcourse(params);
|
|
|
},
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
style: {
|
|
|
marginTop: '10px'
|
|
|
},
|
|
|
dataSource: datas,
|
|
|
rowKey: "id",
|
|
|
scroll: {
|
|
|
y: 300
|
|
|
},
|
|
|
rowSelection: rowSelection,
|
|
|
onChange: handleChangePage,
|
|
|
columns: [{
|
|
|
title: '课堂名称',
|
|
|
dataIndex: 'name'
|
|
|
}, {
|
|
|
title: '创建者',
|
|
|
dataIndex: 'creator_name',
|
|
|
width: 110
|
|
|
}, {
|
|
|
title: '创建时间',
|
|
|
dataIndex: 'created_at',
|
|
|
width: 133
|
|
|
}, {
|
|
|
title: '结束时间',
|
|
|
dataIndex: 'end_time',
|
|
|
width: 133,
|
|
|
render: function render(text, record, index) {
|
|
|
return text || '- -';
|
|
|
}
|
|
|
}],
|
|
|
pagination: {
|
|
|
pageSize: params.per_page,
|
|
|
total: params.total,
|
|
|
current: params.page,
|
|
|
showQuickJumper: true,
|
|
|
hideOnSinglePage: false,
|
|
|
showSizeChanger: true,
|
|
|
position: ['bottomCenter'],
|
|
|
showTotal: function showTotal(total) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: "mr10",
|
|
|
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "c-orange",
|
|
|
children: total
|
|
|
}), "\u6761\u6570\u636E"]
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
}), current === 2 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.addCourseTabsContainer,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z, {
|
|
|
defaultActiveKey: "1",
|
|
|
activeKey: activitykey,
|
|
|
onChange: function onChange(e) {
|
|
|
setactitykey(e);
|
|
|
if (e === '1') {
|
|
|
var _howorklist$courses13;
|
|
|
var aa = howorklist === null || howorklist === void 0 || (_howorklist$courses13 = howorklist.courses) === null || _howorklist$courses13 === void 0 ? void 0 : _howorklist$courses13.map(function (item) {
|
|
|
var _item$shixun_models6;
|
|
|
return item === null || item === void 0 || (_item$shixun_models6 = item.shixun_models) === null || _item$shixun_models6 === void 0 ? void 0 : _item$shixun_models6.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var bb = [];
|
|
|
aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
bb.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(bb));
|
|
|
} else if (e === '2') {
|
|
|
var _howorklist$courses14;
|
|
|
var _aa = howorklist === null || howorklist === void 0 || (_howorklist$courses14 = howorklist.courses) === null || _howorklist$courses14 === void 0 ? void 0 : _howorklist$courses14.map(function (item) {
|
|
|
var _item$common_models4;
|
|
|
return item === null || item === void 0 || (_item$common_models4 = item.common_models) === null || _item$common_models4 === void 0 ? void 0 : _item$common_models4.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var _bb = [];
|
|
|
_aa.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
_bb.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(_bb));
|
|
|
} else if (e === '3') {
|
|
|
var _howorklist$courses15;
|
|
|
var _aa2 = howorklist === null || howorklist === void 0 || (_howorklist$courses15 = howorklist.courses) === null || _howorklist$courses15 === void 0 ? void 0 : _howorklist$courses15.map(function (item) {
|
|
|
var _item$group_models4;
|
|
|
return item === null || item === void 0 || (_item$group_models4 = item.group_models) === null || _item$group_models4 === void 0 ? void 0 : _item$group_models4.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var _bb2 = [];
|
|
|
_aa2.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
_bb2.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(_bb2));
|
|
|
} else {
|
|
|
var _howorklist$courses16;
|
|
|
var _aa3 = howorklist === null || howorklist === void 0 || (_howorklist$courses16 = howorklist.courses) === null || _howorklist$courses16 === void 0 ? void 0 : _howorklist$courses16.map(function (item) {
|
|
|
var _item$exercise_models4;
|
|
|
return item === null || item === void 0 || (_item$exercise_models4 = item.exercise_models) === null || _item$exercise_models4 === void 0 ? void 0 : _item$exercise_models4.map(function (jtems) {
|
|
|
return jtems;
|
|
|
});
|
|
|
});
|
|
|
var _bb3 = [];
|
|
|
_aa3.map(function (item) {
|
|
|
if (item.length > 0) {
|
|
|
item === null || item === void 0 || item.map(function (jtem) {
|
|
|
// console.log('----',jtem);
|
|
|
if (jtem.checked) {
|
|
|
_bb3.push(jtem);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
sethoworkids([].concat(_bb3));
|
|
|
}
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u5B9E\u8BAD\u4F5C\u4E1A",
|
|
|
children: [titletes(), shixuntable(objectSpread2_default()(objectSpread2_default()({}, howorklist), {}, {
|
|
|
name: '实训作业'
|
|
|
}))]
|
|
|
}, 1), /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u666E\u901A\u4F5C\u4E1A",
|
|
|
children: [titletes(), commontable(objectSpread2_default()(objectSpread2_default()({}, howorklist), {}, {
|
|
|
name: '普通作业'
|
|
|
}))]
|
|
|
}, 2), /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u5206\u7EC4\u4F5C\u4E1A",
|
|
|
children: [titletes(), grouptable(objectSpread2_default()(objectSpread2_default()({}, howorklist), {}, {
|
|
|
name: '分组作业'
|
|
|
}))]
|
|
|
}, 3), /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u5728\u7EBF\u8003\u8BD5",
|
|
|
children: [titletes(), exercisetable(objectSpread2_default()(objectSpread2_default()({}, howorklist), {}, {
|
|
|
name: '在线考试'
|
|
|
}))]
|
|
|
}, 4)]
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
}
|
|
|
/* 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__(46172);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/SettingModal.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function SettingModal_Addmodal(_ref) {
|
|
|
var _khdatas$ec_course_ta, _khdatas$evaluations, _khdatas$evaluations2;
|
|
|
var isshow = _ref.isshow,
|
|
|
setishow = _ref.setishow,
|
|
|
modalparams = _ref.modalparams,
|
|
|
getcourse_evaluations = _ref.getcourse_evaluations;
|
|
|
var initParams = {
|
|
|
page: 1,
|
|
|
per_page: 20,
|
|
|
total: 0,
|
|
|
name: ''
|
|
|
};
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(0),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
current = _useState2[0],
|
|
|
setcurrent = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(initParams),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
params = _useState4[0],
|
|
|
setParams = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
datas = _useState6[0],
|
|
|
setdatas = _useState6[1];
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
column = _useState8[0],
|
|
|
setColumn = _useState8[1];
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
datalist = _useState10[0],
|
|
|
setdatalist = _useState10[1];
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)({}),
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
khdatas = _useState12[0],
|
|
|
setkhdatas = _useState12[1];
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(),
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
width = _useState14[0],
|
|
|
setwidth = _useState14[1];
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
isloading = _useState16[0],
|
|
|
setisloading = _useState16[1];
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)('1'),
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
activitykey = _useState18[0],
|
|
|
setactivitykey = _useState18[1];
|
|
|
var paramsRef = (0,_react_17_0_2_react.useRef)(initParams);
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(null),
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
editId = _useState20[0],
|
|
|
setEditId = _useState20[1];
|
|
|
var editIdRef = (0,_react_17_0_2_react.useRef)(null);
|
|
|
var editIdValue = (0,_react_17_0_2_react.useRef)('');
|
|
|
var tableInitRef = (0,_react_17_0_2_react.useRef)([]); //表格原始数据
|
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
if (isshow) {
|
|
|
getevaluation_settings(params);
|
|
|
setactivitykey('1');
|
|
|
}
|
|
|
}, [isshow]);
|
|
|
var handleClickNum = function handleClickNum(id) {
|
|
|
setEditId(id);
|
|
|
editIdRef.current = id;
|
|
|
dealData((0,lodash.cloneDeep)(tableInitRef.current));
|
|
|
// dealData(column)
|
|
|
// getData(params)
|
|
|
};
|
|
|
var parser = function parser(v) {
|
|
|
var num = v;
|
|
|
num = isNaN(num) ? '' : num;
|
|
|
if (num[0] === '.') {
|
|
|
num = '';
|
|
|
}
|
|
|
return num;
|
|
|
};
|
|
|
function getevaluation_settings(_x) {
|
|
|
return _getevaluation_settings.apply(this, arguments);
|
|
|
}
|
|
|
function _getevaluation_settings() {
|
|
|
_getevaluation_settings = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(parasm) {
|
|
|
var _res$ec_course_target;
|
|
|
var res, datas;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
case 0:
|
|
|
_context3.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(modalparams.id, "/evaluations/evaluation_settings.json"), {
|
|
|
method: 'get',
|
|
|
params: parasm
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context3.sent;
|
|
|
setdatas(res);
|
|
|
setwidth((res === null || res === void 0 || (_res$ec_course_target = res.ec_course_targets) === null || _res$ec_course_target === void 0 ? void 0 : _res$ec_course_target.length) * 75 + 227 + 240 + 32);
|
|
|
datas = res.ec_course_targets;
|
|
|
datas.unshift({
|
|
|
content: '11'
|
|
|
});
|
|
|
tableInitRef.current = datas;
|
|
|
dealData(datas);
|
|
|
case 9:
|
|
|
case "end":
|
|
|
return _context3.stop();
|
|
|
}
|
|
|
}, _callee3);
|
|
|
}));
|
|
|
return _getevaluation_settings.apply(this, arguments);
|
|
|
}
|
|
|
function evaluation_settings_subitems(_x2) {
|
|
|
return _evaluation_settings_subitems.apply(this, arguments);
|
|
|
}
|
|
|
function _evaluation_settings_subitems() {
|
|
|
_evaluation_settings_subitems = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(parasm) {
|
|
|
var _res$ec_course_target2;
|
|
|
var res, items;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
case 0:
|
|
|
_context4.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(modalparams.id, "/evaluations/evaluation_settings_subitems.json"), {
|
|
|
method: 'get',
|
|
|
params: parasm
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context4.sent;
|
|
|
items = [];
|
|
|
res.evaluations.map(function (item) {
|
|
|
var _item$subitems3;
|
|
|
item === null || item === void 0 || (_item$subitems3 = item.subitems) === null || _item$subitems3 === void 0 || _item$subitems3.map(function (itemslist) {
|
|
|
items.push(itemslist);
|
|
|
});
|
|
|
});
|
|
|
setwidth((res === null || res === void 0 || (_res$ec_course_target2 = res.ec_course_targets) === null || _res$ec_course_target2 === void 0 ? void 0 : _res$ec_course_target2.length) * 75 + 227 + 240 + 32);
|
|
|
setkhdatas({});
|
|
|
setkhdatas(res);
|
|
|
setdatalist(items);
|
|
|
case 9:
|
|
|
case "end":
|
|
|
return _context4.stop();
|
|
|
}
|
|
|
}, _callee4);
|
|
|
}));
|
|
|
return _evaluation_settings_subitems.apply(this, arguments);
|
|
|
}
|
|
|
var handleBlur = /*#__PURE__*/function () {
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(type) {
|
|
|
var _rel$split, _rel$split2, _rel$split3;
|
|
|
var rel, url, res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
setEditId(null);
|
|
|
rel = editIdRef.current;
|
|
|
editIdRef.current = null;
|
|
|
url = type ? "/api/ec_courses/".concat(modalparams.id, "/evaluations/update_evaluation_settings") : "/api/ec_courses/".concat(modalparams.id, "/evaluations/update_evaluation_setting_subitem");
|
|
|
_context.next = 6;
|
|
|
return (0,fetch/* default */.ZP)(url, {
|
|
|
method: "post",
|
|
|
body: {
|
|
|
random_number: rel === null || rel === void 0 || (_rel$split = rel.split('-')) === null || _rel$split === void 0 ? void 0 : _rel$split[1],
|
|
|
ec_course_target_id: rel === null || rel === void 0 || (_rel$split2 = rel.split('-')) === null || _rel$split2 === void 0 ? void 0 : _rel$split2[0],
|
|
|
weight: editIdValue.current,
|
|
|
ec_course_evaluation_subitem_ids: type ? null : [rel === null || rel === void 0 || (_rel$split3 = rel.split('-')) === null || _rel$split3 === void 0 ? void 0 : _rel$split3[2]]
|
|
|
}
|
|
|
});
|
|
|
case 6:
|
|
|
res = _context.sent;
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success('保存成功');
|
|
|
if (type) {
|
|
|
getevaluation_settings(params);
|
|
|
getcourse_evaluations(modalparams);
|
|
|
} else {
|
|
|
evaluation_settings_subitems(params);
|
|
|
getcourse_evaluations(modalparams);
|
|
|
}
|
|
|
}
|
|
|
case 8:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return function handleBlur(_x3) {
|
|
|
return _ref2.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var dealData = function dealData(d) {
|
|
|
var cloneData = (0,lodash.cloneDeep)(d);
|
|
|
cloneData[0].title = /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.line,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: "\u8BFE\u7A0B\u76EE\u6807"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: "\u8003\u6838\u65B9\u5F0F"
|
|
|
})]
|
|
|
});
|
|
|
cloneData[0].dataIndex = 'work_name';
|
|
|
cloneData[0].width = 180;
|
|
|
cloneData[0].fixed = "left";
|
|
|
cloneData[0].render = function (v, r) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.omit,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
title: v,
|
|
|
children: v
|
|
|
}), r.warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '该考核方式对应目标占比之和为0,可能导致计算结果不准确',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#FF9D18'
|
|
|
},
|
|
|
className: "iconfont icon-hongsejingshi ml5"
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
var _render = function render(k, g, id, ei) {
|
|
|
var _paramsRef$current, _g$relation;
|
|
|
var realV1 = '';
|
|
|
var realV2 = '';
|
|
|
if (k) {
|
|
|
realV1 = k.split('-')[0];
|
|
|
realV2 = k.split('-')[1];
|
|
|
}
|
|
|
var realV = ((_paramsRef$current = paramsRef.current) === null || _paramsRef$current === void 0 ? void 0 : _paramsRef$current.tab) === '1' ? realV1 : realV2;
|
|
|
var weights = g === null || g === void 0 || (_g$relation = g.relation[ei - 1]) === null || _g$relation === void 0 ? void 0 : _g$relation.weight;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: editIdRef.current === "".concat(id, "-").concat(g.random_number) ? /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
autoFocus: true,
|
|
|
defaultValue: weights,
|
|
|
onBlur: function onBlur() {
|
|
|
return handleBlur(true);
|
|
|
},
|
|
|
onFocus: function onFocus() {
|
|
|
editIdValue.current = weights;
|
|
|
},
|
|
|
step: 0.1,
|
|
|
parser: parser,
|
|
|
onChange: function onChange(e) {
|
|
|
return editIdValue.current = e;
|
|
|
},
|
|
|
style: {
|
|
|
width: 100
|
|
|
}
|
|
|
}, "".concat(id, "-").concat(g.random_number)) : /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: CurseSettingmodules.tbl,
|
|
|
onClick: function onClick() {
|
|
|
return handleClickNum("".concat(id, "-").concat(g.random_number));
|
|
|
},
|
|
|
style: {
|
|
|
color: realV === 'H' ? "#0152D9" : realV === "M" ? '#07C160' : realV === "L" ? '#FF9D18' : '#0152d9'
|
|
|
},
|
|
|
children: weights ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: weights
|
|
|
}) : '输入数字'
|
|
|
})
|
|
|
}, "".concat(id, "-").concat(g.random_number))
|
|
|
});
|
|
|
};
|
|
|
cloneData = cloneData.map(function (e, ei) {
|
|
|
if (!ei) {
|
|
|
return e;
|
|
|
}
|
|
|
return {
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: e.content,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: '目标' + ei
|
|
|
})
|
|
|
}), e.warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '该目标下考核方式占比之和不等于1 ,可能导致计算结果不准确!',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#FF9D18'
|
|
|
},
|
|
|
className: "iconfont icon-hongsejingshi ml5"
|
|
|
})
|
|
|
})]
|
|
|
}, Math.random()),
|
|
|
dataIndex: 'content',
|
|
|
width: ei === cloneData.length - 1 ? 120 : '',
|
|
|
fixed: ei === cloneData.length - 1 ? "right" : '',
|
|
|
render: function render(k, g) {
|
|
|
return _render(k, g, e.id, ei);
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
setColumn(cloneData || []);
|
|
|
};
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
title: "\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4",
|
|
|
open: isshow,
|
|
|
width: width > 1060 ? 1060 : width,
|
|
|
footer: null,
|
|
|
centered: true,
|
|
|
onCancel: function onCancel() {
|
|
|
setishow(false);
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z, {
|
|
|
activeKey: activitykey,
|
|
|
onChange: function onChange(e) {
|
|
|
setactivitykey(e);
|
|
|
if (e === '1') {
|
|
|
getevaluation_settings(params);
|
|
|
} else {
|
|
|
evaluation_settings_subitems(params);
|
|
|
}
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u8BBE\u7F6E\u8003\u6838\u65B9\u5F0F\u5360\u6BD4",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
marginTop: '30px',
|
|
|
color: '#464F66',
|
|
|
fontSize: '14px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
children: "\u8BF4\u660E\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
children: "\u6BCF\u4E00\u4E2A\u8BFE\u7A0B\u76EE\u6807\u4E0B\u7684\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
columns: column,
|
|
|
bordered: true,
|
|
|
scroll: {
|
|
|
x: 2000
|
|
|
},
|
|
|
dataSource: datas === null || datas === void 0 ? void 0 : datas.evaluations,
|
|
|
pagination: false
|
|
|
})]
|
|
|
}, 1), /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u8BBE\u7F6E\u8003\u6838\u5185\u5BB9\u5360\u6BD4",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
marginTop: '30px',
|
|
|
color: '#464F66',
|
|
|
fontSize: '14px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
children: "\u8BF4\u660E\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
children: "\u6BCF\u4E00\u4E2A\u8003\u6838\u65B9\u5F0F\u4E0B\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
overflow: 'auto',
|
|
|
width: '100%'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
background: '#F5F5F5',
|
|
|
height: '78px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderLeft: '1px solid #E0E2EC',
|
|
|
borderTop: '1px solid #E0E2EC',
|
|
|
width: '240px',
|
|
|
paddingLeft: '30px',
|
|
|
lineHeight: '78px',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: "\u8003\u6838\u65B9\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderTop: '1px solid #E0E2EC',
|
|
|
width: '227px',
|
|
|
lineHeight: '78px',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: "\u8003\u6838\u5185\u5BB9"
|
|
|
}), khdatas === null || khdatas === void 0 || (_khdatas$ec_course_ta = khdatas.ec_course_targets) === null || _khdatas$ec_course_ta === void 0 ? void 0 : _khdatas$ec_course_ta.map(function (item, index) {
|
|
|
var _khdatas$ec_course_ta2;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
borderRight: index != (khdatas === null || khdatas === void 0 || (_khdatas$ec_course_ta2 = khdatas.ec_course_targets) === null || _khdatas$ec_course_ta2 === void 0 ? void 0 : _khdatas$ec_course_ta2.length) - 1 && '1px solid #E0E2EC',
|
|
|
width: '75px',
|
|
|
lineHeight: '78px',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
background: '#F5F5F5',
|
|
|
borderTop: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: item.content,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: '目标' + (index + 1)
|
|
|
})
|
|
|
}), item.warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '该目标下有考核方式的考核内容占比之和不等于1 ,可能导致计算结果不准确!',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#FF9D18'
|
|
|
},
|
|
|
className: "iconfont icon-hongsejingshi ml5"
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
maxHeight: "550px"
|
|
|
},
|
|
|
children: [(khdatas === null || khdatas === void 0 || (_khdatas$evaluations = khdatas.evaluations) === null || _khdatas$evaluations === void 0 ? void 0 : _khdatas$evaluations.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
|
|
customText: "\u5F53\u524D\u6682\u65E0\u6570\u636E"
|
|
|
}), khdatas === null || khdatas === void 0 || (_khdatas$evaluations2 = khdatas.evaluations) === null || _khdatas$evaluations2 === void 0 ? void 0 : _khdatas$evaluations2.map(function (item, index) {
|
|
|
var _item$subitems, _khdatas$ec_course_ta3;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
height: '100%',
|
|
|
display: 'flex',
|
|
|
borderLeft: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '240px',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: item.work_name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
flexDirection: 'column',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '227px',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$subitems = item.subitems) === null || _item$subitems === void 0 ? void 0 : _item$subitems.map(function (jtmes, jindex) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
paddingLeft: 8,
|
|
|
paddingRight: 12,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: jtmes === null || jtmes === void 0 ? void 0 : jtmes.name,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textone,
|
|
|
style: {
|
|
|
height: '42px',
|
|
|
lineHeight: '42px'
|
|
|
},
|
|
|
children: jtmes === null || jtmes === void 0 ? void 0 : jtmes.name
|
|
|
})
|
|
|
}), jtmes.warning && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '该考核内容对应目标占比之和为0,可能导致计算结果不准确',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#FF9D18'
|
|
|
},
|
|
|
className: "iconfont icon-hongsejingshi ml5"
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
})
|
|
|
}), khdatas === null || khdatas === void 0 || (_khdatas$ec_course_ta3 = khdatas.ec_course_targets) === null || _khdatas$ec_course_ta3 === void 0 ? void 0 : _khdatas$ec_course_ta3.map(function (ktem, kindex) {
|
|
|
var _khdatas$ec_course_ta4, _item$subitems2;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
flexDirection: 'column',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: kindex != (khdatas === null || khdatas === void 0 || (_khdatas$ec_course_ta4 = khdatas.ec_course_targets) === null || _khdatas$ec_course_ta4 === void 0 ? void 0 : _khdatas$ec_course_ta4.length) - 1 ? '75px' : '74px',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$subitems2 = item.subitems) === null || _item$subitems2 === void 0 ? void 0 : _item$subitems2.map(function (jtmes, jindex) {
|
|
|
var _jtmes$relation, _khdatas$ec_course_ta5;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
parser: parser,
|
|
|
step: 0.1,
|
|
|
disabled: isloading,
|
|
|
onBlur: ( /*#__PURE__*/function () {
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(e) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
setisloading(true);
|
|
|
_context2.next = 3;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(modalparams.id, "/evaluations/update_evaluation_setting_subitem"), {
|
|
|
method: 'post',
|
|
|
body: {
|
|
|
random_number: jtmes === null || jtmes === void 0 ? void 0 : jtmes.random_number,
|
|
|
ec_course_target_id: ktem === null || ktem === void 0 ? void 0 : ktem.id,
|
|
|
weight: e.target.value,
|
|
|
ec_course_evaluation_subitem_ids: jtmes === null || jtmes === void 0 ? void 0 : jtmes.ec_course_evaluation_subitem_ids
|
|
|
}
|
|
|
});
|
|
|
case 3:
|
|
|
res = _context2.sent;
|
|
|
setisloading(false);
|
|
|
if (res) {
|
|
|
evaluation_settings_subitems(params);
|
|
|
getcourse_evaluations(modalparams);
|
|
|
}
|
|
|
case 6:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}, _callee2);
|
|
|
}));
|
|
|
return function (_x4) {
|
|
|
return _ref3.apply(this, arguments);
|
|
|
};
|
|
|
}()),
|
|
|
defaultValue: jtmes === null || jtmes === void 0 || (_jtmes$relation = jtmes.relation) === null || _jtmes$relation === void 0 || (_jtmes$relation = _jtmes$relation[kindex]) === null || _jtmes$relation === void 0 ? void 0 : _jtmes$relation.weight,
|
|
|
style: {
|
|
|
height: 43,
|
|
|
lineHeight: '43px',
|
|
|
width: kindex != (khdatas === null || khdatas === void 0 || (_khdatas$ec_course_ta5 = khdatas.ec_course_targets) === null || _khdatas$ec_course_ta5 === void 0 ? void 0 : _khdatas$ec_course_ta5.length) - 1 ? '75px' : '74px'
|
|
|
}
|
|
|
}, "".concat(kindex, "-").concat(jindex));
|
|
|
})
|
|
|
});
|
|
|
})]
|
|
|
});
|
|
|
})]
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
}, 2)]
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
/* 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__(65644);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Engineering/Lists/CurseSetting/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Page = function Page(_ref) {
|
|
|
var _user$userInfo2, _evaluationslist$ec_c, _formulas$ec_course_t2, _formulas$ec_course_f2, _params$kcdatas;
|
|
|
var user = _ref.user;
|
|
|
var initParams = {
|
|
|
page: 1,
|
|
|
per_page: 20,
|
|
|
total: 0,
|
|
|
ec_major_school_id: null,
|
|
|
ec_year_id: null,
|
|
|
sort_by: null,
|
|
|
direction: null,
|
|
|
id: null
|
|
|
};
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(initParams),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
params = _useState2[0],
|
|
|
setParams = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
majorData = _useState4[0],
|
|
|
setMajorData = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
yearData = _useState6[0],
|
|
|
setYearData = _useState6[1];
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
CourseList = _useState8[0],
|
|
|
setCourseList = _useState8[1];
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
teaccher = _useState10[0],
|
|
|
setTeacher = _useState10[1];
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
coursestandards = _useState12[0],
|
|
|
setcoursestandards = _useState12[1];
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(),
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
coursetargets = _useState14[0],
|
|
|
setcoursetargets = _useState14[1];
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(),
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
coursetargetslist = _useState16[0],
|
|
|
setcoursetargetslist = _useState16[1];
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
SelectList = _useState18[0],
|
|
|
setSelectList = _useState18[1];
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
showmodal = _useState20[0],
|
|
|
setshowmodal = _useState20[1];
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
Evaluations = _useState22[0],
|
|
|
setEvaluations = _useState22[1];
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
addshow = _useState24[0],
|
|
|
setaddshow = _useState24[1];
|
|
|
var editCourseId = (0,_react_17_0_2_react.useRef)();
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
exportshow = _useState26[0],
|
|
|
setexport = _useState26[1];
|
|
|
var _useState27 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
fileList = _useState28[0],
|
|
|
setFileList = _useState28[1];
|
|
|
var urlParams = (0,_umi_production_exports.useLocation)();
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState30 = slicedToArray_default()(_useState29, 2),
|
|
|
loadings = _useState30[0],
|
|
|
setloading = _useState30[1];
|
|
|
var _useState31 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState32 = slicedToArray_default()(_useState31, 2),
|
|
|
isdisabled = _useState32[0],
|
|
|
setisdisabled = _useState32[1];
|
|
|
var _useState33 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState34 = slicedToArray_default()(_useState33, 2),
|
|
|
points = _useState34[0],
|
|
|
setpoints = _useState34[1];
|
|
|
var _useState35 = (0,_react_17_0_2_react.useState)(''),
|
|
|
_useState36 = slicedToArray_default()(_useState35, 2),
|
|
|
pointsid = _useState36[0],
|
|
|
setpointsid = _useState36[1];
|
|
|
var _useState37 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState38 = slicedToArray_default()(_useState37, 2),
|
|
|
Calculation = _useState38[0],
|
|
|
setCalculation = _useState38[1];
|
|
|
var _useState39 = (0,_react_17_0_2_react.useState)({}),
|
|
|
_useState40 = slicedToArray_default()(_useState39, 2),
|
|
|
formulas = _useState40[0],
|
|
|
setformulas = _useState40[1];
|
|
|
var _useState41 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState42 = slicedToArray_default()(_useState41, 2),
|
|
|
items = _useState42[0],
|
|
|
setitems = _useState42[1];
|
|
|
var _useState43 = (0,_react_17_0_2_react.useState)('1'),
|
|
|
_useState44 = slicedToArray_default()(_useState43, 2),
|
|
|
currt = _useState44[0],
|
|
|
setcurrt = _useState44[1];
|
|
|
var _useState45 = (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
|
|
|
}
|
|
|
}
|
|
|
}),
|
|
|
_useState46 = slicedToArray_default()(_useState45, 2),
|
|
|
preview = _useState46[0],
|
|
|
setPreview = _useState46[1];
|
|
|
var _useState47 = (0,_react_17_0_2_react.useState)({}),
|
|
|
_useState48 = slicedToArray_default()(_useState47, 2),
|
|
|
previews = _useState48[0],
|
|
|
setPreviews = _useState48[1];
|
|
|
var _useState49 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState50 = slicedToArray_default()(_useState49, 2),
|
|
|
Settingmodal = _useState50[0],
|
|
|
setSettingmodal = _useState50[1];
|
|
|
var _useState51 = (0,_react_17_0_2_react.useState)(),
|
|
|
_useState52 = slicedToArray_default()(_useState51, 2),
|
|
|
evaluationslist = _useState52[0],
|
|
|
setevaluationslist = _useState52[1];
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
|
form = _Form$useForm2[0];
|
|
|
var _useState53 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState54 = slicedToArray_default()(_useState53, 2),
|
|
|
isshowmodal = _useState54[0],
|
|
|
setisshowmodal = _useState54[1];
|
|
|
var _useState55 = (0,_react_17_0_2_react.useState)(false),
|
|
|
_useState56 = slicedToArray_default()(_useState55, 2),
|
|
|
isloading = _useState56[0],
|
|
|
setisloading = _useState56[1];
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
var _user$userInfo;
|
|
|
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.school_id) {
|
|
|
getMajorData();
|
|
|
}
|
|
|
}, [user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.school_id]);
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
|
|
|
var _user$userInfo3;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
util/* localSelect */.U.setItem(user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login, [record === null || record === void 0 ? void 0 : record.ec_major_school_id, record === null || record === void 0 ? void 0 : record.ec_year_id]);
|
|
|
//获取老师
|
|
|
getTeacher(record);
|
|
|
//获取课程标准
|
|
|
getCourse(record);
|
|
|
//获取课程目标
|
|
|
getcourse_targets(record);
|
|
|
//获取考核方式与数据来源
|
|
|
getcourse_evaluations(record);
|
|
|
//获取课程目标达成度
|
|
|
getevaluations(record);
|
|
|
//获取课程目标
|
|
|
graduation_subitems(record);
|
|
|
//获取知识点
|
|
|
getec_points(record);
|
|
|
case 8:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return function getData(_x) {
|
|
|
return _ref2.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
function setnull() {
|
|
|
setTeacher([]);
|
|
|
setcoursestandards([]);
|
|
|
setcoursetargetslist([]);
|
|
|
setcoursetargets([]);
|
|
|
setEvaluations([]);
|
|
|
setevaluationslist([]);
|
|
|
setSelectList([]);
|
|
|
}
|
|
|
var graduation_subitems = /*#__PURE__*/function () {
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(record) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
_context2.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(record.ec_year_id, "/graduation_subitems.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context2.sent;
|
|
|
setSelectList((res === null || res === void 0 ? void 0 : res.graduation_subitems) || []);
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}, _callee2);
|
|
|
}));
|
|
|
return function graduation_subitems(_x2) {
|
|
|
return _ref3.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getTeacher = /*#__PURE__*/function () {
|
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(record) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
case 0:
|
|
|
_context3.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(record.ec_year_id, "/ec_courses/get_course_teachers.json"), {
|
|
|
method: 'get',
|
|
|
params: record
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context3.sent;
|
|
|
setTeacher(res === null || res === void 0 ? void 0 : res.data);
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context3.stop();
|
|
|
}
|
|
|
}, _callee3);
|
|
|
}));
|
|
|
return function getTeacher(_x3) {
|
|
|
return _ref4.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getCourse = /*#__PURE__*/function () {
|
|
|
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(record) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
case 0:
|
|
|
_context4.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(record.id, "/ec_course_standards.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
ec_course_id: record === null || record === void 0 ? void 0 : record.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context4.sent;
|
|
|
setcoursestandards(res === null || res === void 0 ? void 0 : res.data);
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context4.stop();
|
|
|
}
|
|
|
}, _callee4);
|
|
|
}));
|
|
|
return function getCourse(_x4) {
|
|
|
return _ref5.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getcourse_targets = /*#__PURE__*/function () {
|
|
|
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(record) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
case 0:
|
|
|
_context5.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(record.id, "/course_targets.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
ec_course_id: record === null || record === void 0 ? void 0 : record.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context5.sent;
|
|
|
setcoursetargetslist(res === null || res === void 0 ? void 0 : res.course_targets);
|
|
|
setcoursetargets(res === null || res === void 0 ? void 0 : res.course_targets);
|
|
|
case 5:
|
|
|
case "end":
|
|
|
return _context5.stop();
|
|
|
}
|
|
|
}, _callee5);
|
|
|
}));
|
|
|
return function getcourse_targets(_x5) {
|
|
|
return _ref6.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var addDraggers = {
|
|
|
onRemove: function onRemove() {
|
|
|
setFileList([]);
|
|
|
},
|
|
|
beforeUpload: function beforeUpload(file) {
|
|
|
console.log(file);
|
|
|
if ((file === null || file === void 0 ? void 0 : file.size) > 1024 * 1024 * 50) {
|
|
|
message/* default */.ZP.info('文件超过50M,不符合上传要求');
|
|
|
return false;
|
|
|
}
|
|
|
var filelist = [];
|
|
|
filelist.push(file);
|
|
|
setFileList([].concat(filelist));
|
|
|
return false;
|
|
|
},
|
|
|
fileList: fileList,
|
|
|
accept: '.xls,.xlsx'
|
|
|
};
|
|
|
var getcourse_evaluations = /*#__PURE__*/function () {
|
|
|
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(record) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
case 0:
|
|
|
_context6.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(record === null || record === void 0 ? void 0 : record.id, "/course_evaluations.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
ec_course_id: record === null || record === void 0 ? void 0 : record.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context6.sent;
|
|
|
setEvaluations(res === null || res === void 0 ? void 0 : res.course_evaluation_tops);
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context6.stop();
|
|
|
}
|
|
|
}, _callee6);
|
|
|
}));
|
|
|
return function getcourse_evaluations(_x6) {
|
|
|
return _ref7.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getevaluations = /*#__PURE__*/function () {
|
|
|
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(record) {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
case 0:
|
|
|
_context7.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(record === null || record === void 0 ? void 0 : record.id, "/evaluations.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
ec_course_id: record === null || record === void 0 ? void 0 : record.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context7.sent;
|
|
|
setevaluationslist(res === null || res === void 0 ? void 0 : res.data);
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context7.stop();
|
|
|
}
|
|
|
}, _callee7);
|
|
|
}));
|
|
|
return function getevaluations(_x7) {
|
|
|
return _ref8.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getMajorData = /*#__PURE__*/function () {
|
|
|
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
|
|
|
var _user$userInfo4, _res1$data, _user$userInfo5, _urlParams$query, _res1$data2, _res2$data, _urlParams$query2, _res2$data2, _urlParams$query3, _urlParams$query4, _res3$data, _res3$data2;
|
|
|
var res1, item, ec_major_school_id, res2, ec_year_id, res3, res4;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
|
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
|
case 0:
|
|
|
_context8.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/schools/".concat(user === null || user === void 0 || (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.school_id, "/ec_majors/get_major_list.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 2:
|
|
|
res1 = _context8.sent;
|
|
|
if (!((res1 === null || res1 === void 0 || (_res1$data = res1.data) === null || _res1$data === void 0 ? void 0 : _res1$data.length) <= 0)) {
|
|
|
_context8.next = 7;
|
|
|
break;
|
|
|
}
|
|
|
setisdisabled(true);
|
|
|
// params.ec_major_school_id='';
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
return _context8.abrupt("return");
|
|
|
case 7:
|
|
|
setMajorData((res1 === null || res1 === void 0 ? void 0 : res1.data) || []);
|
|
|
item = util/* localSelect */.U.getItem(user === null || user === void 0 || (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login);
|
|
|
ec_major_school_id = Number(urlParams === null || urlParams === void 0 || (_urlParams$query = urlParams.query) === null || _urlParams$query === void 0 ? void 0 : _urlParams$query.ec_major_school_id) || item[0] || (res1 === null || res1 === void 0 || (_res1$data2 = res1.data) === null || _res1$data2 === void 0 || (_res1$data2 = _res1$data2[0]) === null || _res1$data2 === void 0 ? void 0 : _res1$data2.ec_major_school_id);
|
|
|
_context8.next = 12;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_major_schools/".concat(ec_major_school_id, "/ec_years/get_year_list.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 12:
|
|
|
res2 = _context8.sent;
|
|
|
if (!((res2 === null || res2 === void 0 || (_res2$data = res2.data) === null || _res2$data === void 0 ? void 0 : _res2$data.length) <= 0)) {
|
|
|
_context8.next = 18;
|
|
|
break;
|
|
|
}
|
|
|
setisdisabled(true);
|
|
|
params.ec_year_id = '';
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
return _context8.abrupt("return");
|
|
|
case 18:
|
|
|
setYearData((res2 === null || res2 === void 0 ? void 0 : res2.data) || []);
|
|
|
ec_year_id = Number(urlParams === null || urlParams === void 0 || (_urlParams$query2 = urlParams.query) === null || _urlParams$query2 === void 0 ? void 0 : _urlParams$query2.ec_year_id) || item[1] || (res2 === null || res2 === void 0 || (_res2$data2 = res2.data) === null || _res2$data2 === void 0 || (_res2$data2 = _res2$data2[0]) === null || _res2$data2 === void 0 ? void 0 : _res2$data2.ec_year_id);
|
|
|
_context8.next = 22;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(ec_year_id, "/ec_courses/get_courses.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 22:
|
|
|
res3 = _context8.sent;
|
|
|
setCourseList((res3 === null || res3 === void 0 ? void 0 : res3.data) || []);
|
|
|
_context8.next = 26;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(ec_year_id, "/graduation_subitems.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 26:
|
|
|
res4 = _context8.sent;
|
|
|
params.ec_major_school_id = ec_major_school_id;
|
|
|
params.ec_year_id = ec_year_id;
|
|
|
params.id = urlParams !== null && urlParams !== void 0 && (_urlParams$query3 = urlParams.query) !== null && _urlParams$query3 !== void 0 && _urlParams$query3.course ? Number(urlParams === null || urlParams === void 0 || (_urlParams$query4 = urlParams.query) === null || _urlParams$query4 === void 0 ? void 0 : _urlParams$query4.course) : res3 === null || res3 === void 0 || (_res3$data = res3.data) === null || _res3$data === void 0 || (_res3$data = _res3$data[0]) === null || _res3$data === void 0 ? void 0 : _res3$data.id;
|
|
|
if (!((res3 === null || res3 === void 0 || (_res3$data2 = res3.data) === null || _res3$data2 === void 0 ? void 0 : _res3$data2.length) <= 0)) {
|
|
|
_context8.next = 35;
|
|
|
break;
|
|
|
}
|
|
|
setisdisabled(true);
|
|
|
return _context8.abrupt("return");
|
|
|
case 35:
|
|
|
setisdisabled(false);
|
|
|
case 36:
|
|
|
setSelectList((res4 === null || res4 === void 0 ? void 0 : res4.graduation_subitems) || []);
|
|
|
setParams(params);
|
|
|
getData(params);
|
|
|
console.log('ec_major_school_id', ec_major_school_id);
|
|
|
case 40:
|
|
|
case "end":
|
|
|
return _context8.stop();
|
|
|
}
|
|
|
}, _callee8);
|
|
|
}));
|
|
|
return function getMajorData() {
|
|
|
return _ref9.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getYearData = /*#__PURE__*/function () {
|
|
|
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(id) {
|
|
|
var _res2$data3, _res2$data4, _res2$data5;
|
|
|
var res2;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
case 0:
|
|
|
_context9.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_major_schools/".concat(id, "/ec_years/get_year_list.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 2:
|
|
|
res2 = _context9.sent;
|
|
|
if (!((res2 === null || res2 === void 0 || (_res2$data3 = res2.data) === null || _res2$data3 === void 0 ? void 0 : _res2$data3.length) <= 0)) {
|
|
|
_context9.next = 10;
|
|
|
break;
|
|
|
}
|
|
|
setisdisabled(true);
|
|
|
params.ec_year_id = '';
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
return _context9.abrupt("return");
|
|
|
case 10:
|
|
|
setisdisabled(false);
|
|
|
case 11:
|
|
|
params.ec_major_school_id = id;
|
|
|
params.ec_year_id = res2 === null || res2 === void 0 || (_res2$data4 = res2.data) === null || _res2$data4 === void 0 || (_res2$data4 = _res2$data4[0]) === null || _res2$data4 === void 0 ? void 0 : _res2$data4.ec_year_id;
|
|
|
setYearData((res2 === null || res2 === void 0 ? void 0 : res2.data) || []);
|
|
|
setParams(params);
|
|
|
// getData(params);
|
|
|
getCurses(res2 === null || res2 === void 0 || (_res2$data5 = res2.data) === null || _res2$data5 === void 0 || (_res2$data5 = _res2$data5[0]) === null || _res2$data5 === void 0 ? void 0 : _res2$data5.ec_year_id);
|
|
|
case 16:
|
|
|
case "end":
|
|
|
return _context9.stop();
|
|
|
}
|
|
|
}, _callee9);
|
|
|
}));
|
|
|
return function getYearData(_x8) {
|
|
|
return _ref10.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getCurses = /*#__PURE__*/function () {
|
|
|
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10(id) {
|
|
|
var _res2$data6, _res2$data7;
|
|
|
var res2;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
case 0:
|
|
|
_context10.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/".concat(id, "/ec_courses/get_courses.json"), {
|
|
|
method: 'get'
|
|
|
});
|
|
|
case 2:
|
|
|
res2 = _context10.sent;
|
|
|
if (!((res2 === null || res2 === void 0 || (_res2$data6 = res2.data) === null || _res2$data6 === void 0 ? void 0 : _res2$data6.length) <= 0)) {
|
|
|
_context10.next = 11;
|
|
|
break;
|
|
|
}
|
|
|
setisdisabled(true);
|
|
|
params.id = '';
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
// getData(params);
|
|
|
setnull();
|
|
|
return _context10.abrupt("return");
|
|
|
case 11:
|
|
|
setisdisabled(false);
|
|
|
case 12:
|
|
|
params.ec_year_id = id;
|
|
|
params.id = res2 === null || res2 === void 0 || (_res2$data7 = res2.data) === null || _res2$data7 === void 0 || (_res2$data7 = _res2$data7[0]) === null || _res2$data7 === void 0 ? void 0 : _res2$data7.id;
|
|
|
setCourseList((res2 === null || res2 === void 0 ? void 0 : res2.data) || []);
|
|
|
setParams(params);
|
|
|
getData(params);
|
|
|
case 17:
|
|
|
case "end":
|
|
|
return _context10.stop();
|
|
|
}
|
|
|
}, _callee10);
|
|
|
}));
|
|
|
return function getCurses(_x9) {
|
|
|
return _ref11.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var get_formulas = /*#__PURE__*/function () {
|
|
|
var _ref12 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(id) {
|
|
|
var res2;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
case 0:
|
|
|
_context11.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_years/1/ec_courses/get_formulas.json", {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
ec_course_id: id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res2 = _context11.sent;
|
|
|
setParams(params);
|
|
|
setformulas(res2);
|
|
|
case 5:
|
|
|
case "end":
|
|
|
return _context11.stop();
|
|
|
}
|
|
|
}, _callee11);
|
|
|
}));
|
|
|
return function get_formulas(_x10) {
|
|
|
return _ref12.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var getec_points = /*#__PURE__*/function () {
|
|
|
var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12(record) {
|
|
|
var res2;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
case 0:
|
|
|
_context12.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(record === null || record === void 0 ? void 0 : record.id, "/ec_points.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
ec_course_id: record === null || record === void 0 ? void 0 : record.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res2 = _context12.sent;
|
|
|
setParams(params);
|
|
|
// setformulas(res2);
|
|
|
setpoints(res2 === null || res2 === void 0 ? void 0 : res2.data);
|
|
|
case 5:
|
|
|
case "end":
|
|
|
return _context12.stop();
|
|
|
}
|
|
|
}, _callee12);
|
|
|
}));
|
|
|
return function getec_points(_x11) {
|
|
|
return _ref13.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
var handleSelect = function handleSelect(v, type) {
|
|
|
params.page = 1;
|
|
|
params[type] = v;
|
|
|
if (type === 'ec_major_school_id') {
|
|
|
getYearData(v);
|
|
|
return;
|
|
|
}
|
|
|
if (type === 'ec_year_id') {
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
// getData(params)
|
|
|
getCurses(v);
|
|
|
}
|
|
|
if (type === 'id') {
|
|
|
setParams(objectSpread2_default()({}, params));
|
|
|
getData(params);
|
|
|
}
|
|
|
};
|
|
|
var Draggers = {
|
|
|
beforeUpload: function () {
|
|
|
var _beforeUpload = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13(file) {
|
|
|
var formData, res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
case 0:
|
|
|
console.log(file);
|
|
|
if (!((file === null || file === void 0 ? void 0 : file.size) > 1024 * 1024 * 50)) {
|
|
|
_context13.next = 4;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.info('文件超过50M,不符合上传要求');
|
|
|
return _context13.abrupt("return", false);
|
|
|
case 4:
|
|
|
formData = new FormData();
|
|
|
formData.append('file', file);
|
|
|
_context13.next = 8;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(params === null || params === void 0 ? void 0 : params.id, "/ec_course_standards.json"), {
|
|
|
method: 'post',
|
|
|
body: formData
|
|
|
}, true);
|
|
|
case 8:
|
|
|
res = _context13.sent;
|
|
|
getCourse(params);
|
|
|
getevaluations(params);
|
|
|
return _context13.abrupt("return", false);
|
|
|
case 12:
|
|
|
case "end":
|
|
|
return _context13.stop();
|
|
|
}
|
|
|
}, _callee13);
|
|
|
}));
|
|
|
function beforeUpload(_x12) {
|
|
|
return _beforeUpload.apply(this, arguments);
|
|
|
}
|
|
|
return beforeUpload;
|
|
|
}(),
|
|
|
fileList: []
|
|
|
};
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.wrap,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.title,
|
|
|
children: "\u8BFE\u7A0B\u8BBE\u7F6E"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
clear: 'both',
|
|
|
marginTop: '40px'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.control,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.label,
|
|
|
children: "\u8BA4\u8BC1\u4E13\u4E1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
style: {
|
|
|
width: 240
|
|
|
},
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",
|
|
|
value: params === null || params === void 0 ? void 0 : params.ec_major_school_id,
|
|
|
onChange: function onChange(v) {
|
|
|
return handleSelect(v, 'ec_major_school_id');
|
|
|
},
|
|
|
children: majorData === null || majorData === void 0 ? void 0 : majorData.map(function (e) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: e.ec_major_school_id,
|
|
|
children: e.name
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.label,
|
|
|
children: "\u8BA4\u8BC1\u5C4A\u522B"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
disabled: isdisabled && yearData.length <= 0,
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u5C4A\u522B",
|
|
|
value: params === null || params === void 0 ? void 0 : params.ec_year_id,
|
|
|
onChange: function onChange(v) {
|
|
|
return handleSelect(v, 'ec_year_id');
|
|
|
},
|
|
|
children: yearData === null || yearData === void 0 ? void 0 : yearData.map(function (e) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: e.ec_year_id,
|
|
|
children: e.year
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.label,
|
|
|
children: "\u8BFE\u7A0B"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
disabled: isdisabled,
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u8BFE\u7A0B",
|
|
|
value: params === null || params === void 0 ? void 0 : params.id,
|
|
|
onChange: function onChange(v) {
|
|
|
return handleSelect(v, 'id');
|
|
|
},
|
|
|
children: CourseList === null || CourseList === void 0 ? void 0 : CourseList.map(function (e) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: e.id,
|
|
|
children: e.name
|
|
|
});
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.title,
|
|
|
children: "\u8BFE\u7A0B\u6559\u5E08"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.teachcount,
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
marginTop: 20,
|
|
|
marginBottom: 16
|
|
|
},
|
|
|
children: teaccher === null || teaccher === void 0 ? void 0 : teaccher.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
marginLeft: index === 0 ? '20px' : '47px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
src: tx_namespaceObject,
|
|
|
style: {
|
|
|
width: '50px',
|
|
|
height: '50px',
|
|
|
borderRadius: '50%',
|
|
|
zIndex: 0
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
marginLeft: '8px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
style: {
|
|
|
marginBottom: '0px'
|
|
|
},
|
|
|
children: item.name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("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'
|
|
|
},
|
|
|
children: item.pro
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
height: '20px',
|
|
|
background: '#fafafa'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.title,
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'space-between'
|
|
|
},
|
|
|
children: ["\u8BFE\u7A0B\u6807\u51C6", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, Draggers), {}, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isdisabled,
|
|
|
type: "primary",
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: function onClick() {},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-shangchuan3"
|
|
|
}), " \u4E0A\u4F20\u8BFE\u7A0B\u6807\u51C6"]
|
|
|
})
|
|
|
}))
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.teachcount,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
style: {
|
|
|
marginTop: '20px',
|
|
|
marginBottom: 20,
|
|
|
padding: '0px 20px'
|
|
|
},
|
|
|
dataSource: coursestandards,
|
|
|
pagination: false,
|
|
|
columns: [{
|
|
|
title: '序号',
|
|
|
dataIndex: 'name',
|
|
|
key: 'name',
|
|
|
render: function render(text, record, index) {
|
|
|
return params.per_page * (params.page - 1) + index + 1;
|
|
|
}
|
|
|
}, {
|
|
|
title: '文件名称',
|
|
|
dataIndex: 'name',
|
|
|
width: '50%',
|
|
|
key: 'name'
|
|
|
}, {
|
|
|
title: '上传时间',
|
|
|
dataIndex: 'created_at',
|
|
|
key: 'created_at'
|
|
|
}, {
|
|
|
title: '操作',
|
|
|
dataIndex: 'id',
|
|
|
key: 'id',
|
|
|
render: function render(text, record, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: function onClick() {
|
|
|
console.log(text, record, index);
|
|
|
var types = ['office', 'pdf', 'image', 'other', 'video', 'audio', 'download'];
|
|
|
if (!types.includes(record.file_type)) {
|
|
|
message/* default */.ZP.info('当前类型暂不支持预览');
|
|
|
return;
|
|
|
}
|
|
|
preview.editOffice = "view";
|
|
|
setPreview(objectSpread2_default()(objectSpread2_default()({}, preview), {}, {
|
|
|
filename: record.name,
|
|
|
type: record.file_type,
|
|
|
data: "/api/attachments/".concat(record.attachment_id)
|
|
|
// data: ENV.API_SERVER + record.url
|
|
|
}));
|
|
|
},
|
|
|
style: {
|
|
|
marginRight: '5px',
|
|
|
color: '#0152d9',
|
|
|
cursor: 'pointer'
|
|
|
},
|
|
|
className: "iconfont icon-chakansvg"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: "\u5728\u7EBF\u7F16\u8F91",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
|
|
|
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
case 0:
|
|
|
if (!["xlsx", "docx", "pptx"].includes(record === null || record === void 0 ? void 0 : record.type)) {
|
|
|
_context14.next = 5;
|
|
|
break;
|
|
|
}
|
|
|
// let res=await Fetch(`/api/attachments/set_ecs_attachment.json`,{
|
|
|
// method:'get',
|
|
|
// params:{
|
|
|
// attachment_id:record?.attachment_id
|
|
|
// }
|
|
|
// })
|
|
|
// setPreviews({
|
|
|
// ...res,
|
|
|
// Keys:res.key,
|
|
|
// type:res.fileType,
|
|
|
// close:true,
|
|
|
// })
|
|
|
// initDoc(res.key+'',res.url,res.fileType,res.title,res.model,ENV.API_SERVER+res.callbackUrl)
|
|
|
|
|
|
// if(record?.type==='xlsx'){
|
|
|
// window.open(`${ENV.OFFICE_SERVER}/x/_layouts/xlviewerinternal.aspx?WOPISrc=${ENV.OFFICE_IP}/wopi/files/${record?.attachment_id}`)
|
|
|
// }
|
|
|
// if(record?.type==='docx'){
|
|
|
|
|
|
// window.open(`${ENV.OFFICE_SERVER}/wv/wordviewerframe.aspx?WOPISrc=${ENV.OFFICE_IP}/wopi/files/${record?.attachment_id}`)
|
|
|
// }
|
|
|
// if(record?.type==='pptx'){
|
|
|
// window.open(`${ENV.OFFICE_SERVER}/p/PowerPointFrame.aspx?WOPISrc=${ENV.OFFICE_IP}/wopi/files/${record?.attachment_id}`)
|
|
|
// }
|
|
|
preview.editOffice = "edit";
|
|
|
setPreview(objectSpread2_default()(objectSpread2_default()({}, preview), {}, {
|
|
|
type: record.file_type,
|
|
|
data: "/api/attachments/".concat(record.attachment_id)
|
|
|
// data: ENV.API_SERVER + record.url
|
|
|
}));
|
|
|
_context14.next = 7;
|
|
|
break;
|
|
|
case 5:
|
|
|
message/* default */.ZP.info('当前文件不支持编辑');
|
|
|
return _context14.abrupt("return");
|
|
|
case 7:
|
|
|
case "end":
|
|
|
return _context14.stop();
|
|
|
}
|
|
|
}, _callee14);
|
|
|
})),
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#0152d9',
|
|
|
marginLeft: '5px'
|
|
|
},
|
|
|
className: "iconfont icon-bianji10"
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: function onClick() {
|
|
|
modal/* default */.Z.confirm({
|
|
|
title: '确认是否删除?',
|
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {}),
|
|
|
// content: 'Some descriptions',
|
|
|
okText: '确认',
|
|
|
cancelText: '取消',
|
|
|
onOk: function () {
|
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15() {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
|
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
|
case 0:
|
|
|
_context15.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(params === null || params === void 0 ? void 0 : params.id, "/ec_course_standards/").concat(text), {
|
|
|
method: 'delete'
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context15.sent;
|
|
|
if (res) {
|
|
|
message/* default */.ZP.info('删除成功');
|
|
|
getData(params);
|
|
|
}
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context15.stop();
|
|
|
}
|
|
|
}, _callee15);
|
|
|
}));
|
|
|
function onOk() {
|
|
|
return _onOk.apply(this, arguments);
|
|
|
}
|
|
|
return onOk;
|
|
|
}(),
|
|
|
onCancel: function onCancel() {}
|
|
|
});
|
|
|
},
|
|
|
style: {
|
|
|
marginRight: '5px',
|
|
|
color: '#0152d9',
|
|
|
cursor: 'pointer'
|
|
|
},
|
|
|
className: "iconfont icon-shanchu9 pl10"
|
|
|
})]
|
|
|
});
|
|
|
}
|
|
|
}]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
height: '20px',
|
|
|
background: '#fafafa'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.title,
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'space-between'
|
|
|
},
|
|
|
children: ["\u8BFE\u7A0B\u76EE\u6807", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isdisabled,
|
|
|
type: "primary",
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
|
|
|
var aa;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
|
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
|
case 0:
|
|
|
_context16.next = 2;
|
|
|
return getcourse_targets(params);
|
|
|
case 2:
|
|
|
if ((coursetargets === null || coursetargets === void 0 ? void 0 : coursetargets.length) <= 0) {
|
|
|
aa = {
|
|
|
id: 0,
|
|
|
content: '',
|
|
|
weight: '',
|
|
|
standard_grade: '',
|
|
|
graduation_subitem_ids: ['']
|
|
|
};
|
|
|
coursetargets.push(aa);
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
}
|
|
|
setshowmodal(true);
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context16.stop();
|
|
|
}
|
|
|
}, _callee16);
|
|
|
})),
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-bianji7"
|
|
|
}), " \u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807"]
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.teachcount,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
style: {
|
|
|
marginTop: '20px',
|
|
|
marginBottom: 20,
|
|
|
padding: '0px 20px'
|
|
|
},
|
|
|
dataSource: coursetargetslist,
|
|
|
bordered: true,
|
|
|
pagination: false,
|
|
|
columns: [{
|
|
|
title: '分项',
|
|
|
dataIndex: 'name',
|
|
|
key: 'name',
|
|
|
width: '5%',
|
|
|
render: function render(text, record, index) {
|
|
|
return params.per_page * (params.page - 1) + index + 1;
|
|
|
}
|
|
|
}, {
|
|
|
title: '课程目标',
|
|
|
dataIndex: 'content',
|
|
|
width: '45%',
|
|
|
key: 'content'
|
|
|
}, {
|
|
|
title: '权重',
|
|
|
dataIndex: 'weight',
|
|
|
key: 'weight',
|
|
|
width: '5%'
|
|
|
}, {
|
|
|
title: '达成分值',
|
|
|
dataIndex: 'standard_grade',
|
|
|
key: 'standard_grade',
|
|
|
width: '5%'
|
|
|
}, {
|
|
|
title: '对应毕业要求指标点',
|
|
|
dataIndex: 'graduation_subitem',
|
|
|
width: '40%',
|
|
|
key: 'graduation_subitem',
|
|
|
render: function render(text, record, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z, {
|
|
|
itemLayout: "horizontal",
|
|
|
dataSource: text,
|
|
|
renderItem: function renderItem(item) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z.Item, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z.Item.Meta, {
|
|
|
style: {
|
|
|
fontSize: 14
|
|
|
},
|
|
|
description: '指标点' + (item === null || item === void 0 ? void 0 : item.index) + ':' + (item === null || item === void 0 ? void 0 : item.content)
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
}]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
height: '20px',
|
|
|
background: '#fafafa'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.title,
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'space-between'
|
|
|
},
|
|
|
children: ["\u8BFE\u7A0B\u77E5\u8BC6\u70B9\u4E0E\u6559\u5B66\u5185\u5BB9", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isdisabled,
|
|
|
type: "primary",
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
setisshowmodal(true);
|
|
|
setpointsid('');
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-tianjiatimu"
|
|
|
}), " \u65B0\u589E\u77E5\u8BC6\u70B9"]
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
style: {
|
|
|
marginTop: '20px',
|
|
|
marginBottom: 20,
|
|
|
padding: '0px 20px'
|
|
|
},
|
|
|
dataSource: points,
|
|
|
bordered: true,
|
|
|
pagination: false,
|
|
|
columns: [{
|
|
|
title: '序号',
|
|
|
dataIndex: 'name',
|
|
|
key: 'name',
|
|
|
width: '5%',
|
|
|
render: function render(text, record, index) {
|
|
|
return params.per_page * (params.page - 1) + index + 1;
|
|
|
}
|
|
|
}, {
|
|
|
title: '知识点',
|
|
|
dataIndex: 'name',
|
|
|
width: '15%',
|
|
|
key: 'name'
|
|
|
}, {
|
|
|
title: '教学目的',
|
|
|
dataIndex: 'target',
|
|
|
key: 'target'
|
|
|
}, {
|
|
|
title: '教学内容',
|
|
|
dataIndex: 'content',
|
|
|
key: 'content'
|
|
|
}, {
|
|
|
title: '重点难点',
|
|
|
dataIndex: 'problem',
|
|
|
key: 'problem'
|
|
|
}, {
|
|
|
title: '支撑的课程目标',
|
|
|
dataIndex: 'ec_course_targets',
|
|
|
width: '10%',
|
|
|
key: 'ec_course_targets',
|
|
|
render: function render(text, record, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z, {
|
|
|
itemLayout: "horizontal",
|
|
|
dataSource: text,
|
|
|
renderItem: function renderItem(item) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z.Item, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z.Item.Meta, {
|
|
|
style: {
|
|
|
fontSize: 14
|
|
|
},
|
|
|
description: item === null || item === void 0 ? void 0 : item.name
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '操作',
|
|
|
dataIndex: 'id',
|
|
|
width: '8%',
|
|
|
key: 'id',
|
|
|
render: function render(text, record, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
onClick: function onClick() {
|
|
|
modal/* default */.Z.confirm({
|
|
|
title: '提示',
|
|
|
content: '是否确认删除',
|
|
|
okText: '确认',
|
|
|
cancelText: '取消',
|
|
|
onOk: function () {
|
|
|
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17() {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
|
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
|
case 0:
|
|
|
_context17.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(params === null || params === void 0 ? void 0 : params.id, "/ec_points/").concat(text, ".json"), {
|
|
|
method: 'delete'
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context17.sent;
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.info('删除成功');
|
|
|
getec_points(params);
|
|
|
}
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context17.stop();
|
|
|
}
|
|
|
}, _callee17);
|
|
|
}));
|
|
|
function onOk() {
|
|
|
return _onOk2.apply(this, arguments);
|
|
|
}
|
|
|
return onOk;
|
|
|
}()
|
|
|
});
|
|
|
},
|
|
|
style: {
|
|
|
marginRight: 5
|
|
|
},
|
|
|
children: "\u5220\u9664"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
onClick: function 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(function (item) {
|
|
|
return item.id;
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
children: "\u7F16\u8F91"
|
|
|
})]
|
|
|
});
|
|
|
}
|
|
|
}]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
height: '20px',
|
|
|
background: '#fafafa'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.title,
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'space-between'
|
|
|
},
|
|
|
children: ["\u8003\u6838\u65B9\u5F0F\u4E0E\u6570\u636E\u6765\u6E90", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isdisabled,
|
|
|
type: "primary",
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
editCourseId.current = '';
|
|
|
setaddshow(true);
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-tianjiatimu"
|
|
|
}), " \u6DFB\u52A0\u8BFE\u5802\u6570\u636E"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isdisabled
|
|
|
// type="primary"
|
|
|
,
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
editCourseId.current = '';
|
|
|
setexport(true);
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-piliangdaoru"
|
|
|
}), " \u5BFC\u5165\u6570\u636E"]
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.teachcount,
|
|
|
children: [!Evaluations && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), Evaluations && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
padding: '0px 20px',
|
|
|
marginBottom: '20px',
|
|
|
fontSize: '14px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
background: '#F5F5F5',
|
|
|
height: '58px',
|
|
|
border: '1px solid #E0E2EC',
|
|
|
marginTop: '20px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '8%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u6570\u636E\u6765\u6E90"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '10%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u6559\u5B66\u8BFE\u5802/\u6570\u636E\u6587\u4EF6"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
height: '100%',
|
|
|
width: '61%',
|
|
|
display: 'flex',
|
|
|
flexShrink: 0,
|
|
|
borderRight: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '15%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u8003\u6838\u65B9\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '55%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u8003\u6838\u5185\u5BB9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '20%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u8003\u6838\u77E5\u8BC6\u70B9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '10%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u503C"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '6%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u72B6\u6001"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '10%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u540C\u6B65/\u5BFC\u5165\u65F6\u95F4"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '5%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u64CD\u4F5C"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
border: '1px solid #E0E2EC',
|
|
|
marginTop: -1
|
|
|
},
|
|
|
children: Evaluations === null || Evaluations === void 0 ? void 0 : Evaluations.map(function (item) {
|
|
|
var _item$contents, _item$contents2, _item$contents3, _item$evaluation_meth, _item$evaluation_meth2;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
width: '100%',
|
|
|
borderBottom: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '8%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '10%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexDirection: 'column'
|
|
|
},
|
|
|
children: [(item === null || item === void 0 ? void 0 : item.name) === '导入数据' && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: env/* default */.Z.API_SERVER + "/api/ec_courses/1/course_evaluations/download?id=".concat(item === null || item === void 0 || (_item$contents = item.contents) === null || _item$contents === void 0 || (_item$contents = _item$contents[0]) === null || _item$contents === void 0 ? void 0 : _item$contents.attachment_id)
|
|
|
// target="_blank"
|
|
|
,
|
|
|
children: item === null || item === void 0 || (_item$contents2 = item.contents) === null || _item$contents2 === void 0 || (_item$contents2 = _item$contents2[0]) === null || _item$contents2 === void 0 ? void 0 : _item$contents2.content
|
|
|
}), (item === null || item === void 0 ? void 0 : item.name) === '关联课堂' && (item === null || item === void 0 || (_item$contents3 = item.contents) === null || _item$contents3 === void 0 ? void 0 : _item$contents3.map(function (items, index) {
|
|
|
var _item$contents4;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
|
|
style: {
|
|
|
display: 'flex'
|
|
|
},
|
|
|
href: items === null || items === void 0 ? void 0 : items.first_category_url,
|
|
|
target: "_blank",
|
|
|
children: [items === null || items === void 0 ? void 0 : items.content, (item === null || item === void 0 || (_item$contents4 = item.contents) === null || _item$contents4 === void 0 ? void 0 : _item$contents4.length) > 1 && ',']
|
|
|
});
|
|
|
}))]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
height: '100%',
|
|
|
width: '61%',
|
|
|
display: 'flex',
|
|
|
flexShrink: 0,
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
flexDirection: 'column'
|
|
|
},
|
|
|
children: [(item === null || item === void 0 || (_item$evaluation_meth = item.evaluation_methods) === null || _item$evaluation_meth === void 0 ? void 0 : _item$evaluation_meth.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
height: '100%',
|
|
|
width: '42%',
|
|
|
display: 'flex',
|
|
|
flexShrink: 0,
|
|
|
borderRight: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '15%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "--"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '75%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "--"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '10%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "--"
|
|
|
})]
|
|
|
}), item === null || item === void 0 || (_item$evaluation_meth2 = item.evaluation_methods) === null || _item$evaluation_meth2 === void 0 ? void 0 : _item$evaluation_meth2.map(function (items, index) {
|
|
|
var _item$evaluation_meth3, _items$subitems, _items$evaluation_met, _items$subitems2, _items$evaluation_met2, _items$subitems3, _items$evaluation_met3;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '100%',
|
|
|
display: 'flex',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '15%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
borderBottom: !(index === (item === null || item === void 0 || (_item$evaluation_meth3 = item.evaluation_methods) === null || _item$evaluation_meth3 === void 0 ? void 0 : _item$evaluation_meth3.length) - 1) && '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: items === null || items === void 0 ? void 0 : items.work_name
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '55%'
|
|
|
},
|
|
|
children: [(items === null || items === void 0 || (_items$subitems = items.subitems) === null || _items$subitems === void 0 ? void 0 : _items$subitems.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 30
|
|
|
},
|
|
|
children: '--'
|
|
|
}), items === null || items === void 0 || (_items$evaluation_met = items.evaluation_method_contents) === null || _items$evaluation_met === void 0 ? void 0 : _items$evaluation_met.map(function (jtems, jndex) {
|
|
|
var _item$evaluation_meth4;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: jtems === null || jtems === void 0 ? void 0 : jtems.name,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textone,
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: !(index === (item === null || item === void 0 || (_item$evaluation_meth4 = item.evaluation_methods) === null || _item$evaluation_meth4 === void 0 ? void 0 : _item$evaluation_meth4.length) - 1 && jndex === (items === null || items === void 0 ? void 0 : items.evaluation_method_contents.length) - 1) && '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
lineHeight: '30px',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 30,
|
|
|
paddingLeft: '5px'
|
|
|
},
|
|
|
children: jtems === null || jtems === void 0 ? void 0 : jtems.name
|
|
|
})
|
|
|
});
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '20%'
|
|
|
},
|
|
|
children: [(items === null || items === void 0 || (_items$subitems2 = items.subitems) === null || _items$subitems2 === void 0 ? void 0 : _items$subitems2.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 30
|
|
|
},
|
|
|
children: '--'
|
|
|
}), items === null || items === void 0 || (_items$evaluation_met2 = items.evaluation_method_contents) === null || _items$evaluation_met2 === void 0 ? void 0 : _items$evaluation_met2.map(function (jtems, jndex) {
|
|
|
var _item$evaluation_meth5;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: jtems === null || jtems === void 0 ? void 0 : jtems.ec_points,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textone,
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: !(index === (item === null || item === void 0 || (_item$evaluation_meth5 = item.evaluation_methods) === null || _item$evaluation_meth5 === void 0 ? void 0 : _item$evaluation_meth5.length) - 1 && jndex === (items === null || items === void 0 ? void 0 : items.evaluation_method_contents.length) - 1) && '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
lineHeight: '30px',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 30,
|
|
|
paddingLeft: '5px'
|
|
|
},
|
|
|
children: (jtems === null || jtems === void 0 ? void 0 : jtems.ec_points) || '- -'
|
|
|
})
|
|
|
});
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '10%'
|
|
|
},
|
|
|
children: [(items === null || items === void 0 || (_items$subitems3 = items.subitems) === null || _items$subitems3 === void 0 ? void 0 : _items$subitems3.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 30
|
|
|
},
|
|
|
children: '--'
|
|
|
}), items === null || items === void 0 || (_items$evaluation_met3 = items.evaluation_method_contents) === null || _items$evaluation_met3 === void 0 ? void 0 : _items$evaluation_met3.map(function (jtems, jndex) {
|
|
|
var _item$evaluation_meth6;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: jtems === null || jtems === void 0 ? void 0 : jtems.score,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textone,
|
|
|
style: {
|
|
|
borderBottom: !(index === (item === null || item === void 0 || (_item$evaluation_meth6 = item.evaluation_methods) === null || _item$evaluation_meth6 === void 0 ? void 0 : _item$evaluation_meth6.length) - 1 && jndex === (items === null || items === void 0 ? void 0 : items.evaluation_method_contents.length) - 1) && '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
lineHeight: '30px',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 30,
|
|
|
paddingLeft: '5px'
|
|
|
},
|
|
|
children: jtems === null || jtems === void 0 ? void 0 : jtems.score
|
|
|
})
|
|
|
});
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '6%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
color: '#07C160'
|
|
|
},
|
|
|
children: item === null || item === void 0 ? void 0 : item.status
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '10%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: item === null || item === void 0 ? void 0 : item.update_at
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '5%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexDirection: 'column'
|
|
|
},
|
|
|
children: [(item === null || item === void 0 ? void 0 : item.status) != '已导入' && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee18() {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee18$(_context18) {
|
|
|
while (1) switch (_context18.prev = _context18.next) {
|
|
|
case 0:
|
|
|
_context18.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(params.id, "/course_evaluations/update_online_data.json"), {
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
id: item.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context18.sent;
|
|
|
if (res) {
|
|
|
message/* default */.ZP.info('同步成功');
|
|
|
getData(params);
|
|
|
}
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context18.stop();
|
|
|
}
|
|
|
}, _callee18);
|
|
|
})),
|
|
|
style: {
|
|
|
color: '#0152d9',
|
|
|
cursor: 'pointer'
|
|
|
},
|
|
|
className: "iconfont icon-tongbushuju"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: function onClick() {
|
|
|
modal/* default */.Z.confirm({
|
|
|
title: '确认是否删除?',
|
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {}),
|
|
|
// content: 'Some descriptions',
|
|
|
okText: '确认',
|
|
|
cancelText: '取消',
|
|
|
onOk: function () {
|
|
|
var _onOk3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee19() {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee19$(_context19) {
|
|
|
while (1) switch (_context19.prev = _context19.next) {
|
|
|
case 0:
|
|
|
_context19.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(params.id, "/course_evaluations/deletes.json"), {
|
|
|
method: 'delete',
|
|
|
body: {
|
|
|
id: item.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context19.sent;
|
|
|
if (res) {
|
|
|
message/* default */.ZP.info('删除成功');
|
|
|
getData(params);
|
|
|
}
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context19.stop();
|
|
|
}
|
|
|
}, _callee19);
|
|
|
}));
|
|
|
function onOk() {
|
|
|
return _onOk3.apply(this, arguments);
|
|
|
}
|
|
|
return onOk;
|
|
|
}(),
|
|
|
onCancel: function onCancel() {}
|
|
|
});
|
|
|
},
|
|
|
style: {
|
|
|
color: '#0152d9',
|
|
|
cursor: 'pointer',
|
|
|
margin: '10px 0px'
|
|
|
},
|
|
|
className: "iconfont icon-shanchu9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: function onClick() {
|
|
|
editCourseId.current = item.id;
|
|
|
if ((item === null || item === void 0 ? void 0 : item.status) != '已导入') {
|
|
|
setitems(item);
|
|
|
setaddshow(true);
|
|
|
} else {
|
|
|
setexport(true);
|
|
|
}
|
|
|
},
|
|
|
style: {
|
|
|
color: '#0152d9',
|
|
|
cursor: 'pointer'
|
|
|
},
|
|
|
className: "iconfont icon-bianji8"
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
height: '20px',
|
|
|
background: '#fafafa'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: CurseSettingmodules.title,
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
justifyContent: 'space-between'
|
|
|
},
|
|
|
children: ["\u8BFE\u7A0B\u76EE\u6807\u8FBE\u6210\u5EA6", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
disabled: isdisabled
|
|
|
// type="primary"
|
|
|
,
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
setSettingmodal(true);
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-kechengshezhi"
|
|
|
}), " \u8BBE\u7F6E\u8003\u6838\u5360\u6BD4"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP
|
|
|
// type="primary"
|
|
|
, {
|
|
|
disabled: isdisabled,
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
get_formulas(params.id);
|
|
|
setCalculation(true);
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-jisuangongshi"
|
|
|
}), " \u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
type: "primary",
|
|
|
disabled: isdisabled,
|
|
|
style: {
|
|
|
marginRight: '20px'
|
|
|
},
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee20() {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee20$(_context20) {
|
|
|
while (1) switch (_context20.prev = _context20.next) {
|
|
|
case 0:
|
|
|
_context20.next = 2;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(params.id, "/evaluations/evaluation_data.json"), {
|
|
|
method: 'post'
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context20.sent;
|
|
|
if (res) {
|
|
|
message/* default */.ZP.info('计算完成');
|
|
|
getevaluations(params);
|
|
|
}
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context20.stop();
|
|
|
}
|
|
|
}, _callee20);
|
|
|
})),
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
marginRight: '8px'
|
|
|
},
|
|
|
className: "iconfont icon-jisuan"
|
|
|
}), " \u8BA1\u7B97"]
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
padding: '0px 20px'
|
|
|
},
|
|
|
className: CurseSettingmodules.teachcount,
|
|
|
children: [!evaluationslist && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), evaluationslist && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
fontSize: '14px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
background: '#F5F5F5',
|
|
|
height: '58px',
|
|
|
border: '1px solid #E0E2EC',
|
|
|
marginTop: '20px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '4%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u5206\u9879"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '15%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u8BFE\u7A0B\u76EE\u6807"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '3%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u6743\u91CD"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '9%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
height: '100%',
|
|
|
width: '40%',
|
|
|
display: 'flex',
|
|
|
flexDirection: 'column',
|
|
|
flexShrink: 0,
|
|
|
borderRight: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '100%',
|
|
|
display: 'flex',
|
|
|
flexShrink: 0,
|
|
|
height: '100%'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '30%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column'
|
|
|
},
|
|
|
children: '考核方式'
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '12.5%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
textAlign: 'center'
|
|
|
},
|
|
|
children: '考核方式占比'
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '45%',
|
|
|
height: '100%'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: '100%'
|
|
|
},
|
|
|
children: '考核内容'
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '12.5%',
|
|
|
height: '100%'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: '100%',
|
|
|
textAlign: 'center'
|
|
|
},
|
|
|
children: '考核内容占比'
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '7%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
textAlignLast: 'center'
|
|
|
},
|
|
|
children: "\u8FBE\u6210\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '7%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
textAlignLast: 'center'
|
|
|
},
|
|
|
children: "\u5B9E\u9645\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '6%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u8BC4\u4EF7\u7ED3\u679C"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '8%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u8BA1\u7B97\u65F6\u95F4"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderLeft: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: evaluationslist === null || evaluationslist === void 0 || (_evaluationslist$ec_c = evaluationslist.ec_course_target) === null || _evaluationslist$ec_c === void 0 ? void 0 : _evaluationslist$ec_c.map(function (item, index) {
|
|
|
var _item$evaluation, _item$evaluation2, _item$evaluation3, _item$graduation_subi, _item$evaluation4, _item$evaluation5;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
height: '100%',
|
|
|
display: 'flex'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '4%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: index + 1
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: CurseSettingmodules.textone,
|
|
|
style: {
|
|
|
width: '15%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
maxHeight: (item === null || item === void 0 || (_item$evaluation = item.evaluation) === null || _item$evaluation === void 0 ? void 0 : _item$evaluation.length) <= 0 && 43,
|
|
|
lineHeight: (item === null || item === void 0 || (_item$evaluation2 = item.evaluation) === null || _item$evaluation2 === void 0 ? void 0 : _item$evaluation2.length) <= 0 && '43px',
|
|
|
display: (item === null || item === void 0 || (_item$evaluation3 = item.evaluation) === null || _item$evaluation3 === void 0 ? void 0 : _item$evaluation3.length) != 0 && 'flex',
|
|
|
paddingLeft: 10
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: item.content,
|
|
|
children: item.content
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '3%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: item.weights
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '9%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: item === null || item === void 0 || (_item$graduation_subi = item.graduation_subitem) === null || _item$graduation_subi === void 0 ? void 0 : _item$graduation_subi.map(function (graduation_subitemitem) {
|
|
|
return graduation_subitemitem.name;
|
|
|
}).toString()
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
height: '100%',
|
|
|
width: '40%',
|
|
|
display: 'flex',
|
|
|
flexDirection: 'column',
|
|
|
flexShrink: 0,
|
|
|
borderRight: '1px solid #E0E2EC'
|
|
|
},
|
|
|
children: [(item === null || item === void 0 || (_item$evaluation4 = item.evaluation) === null || _item$evaluation4 === void 0 ? void 0 : _item$evaluation4.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '100%',
|
|
|
display: 'flex',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '30%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column'
|
|
|
},
|
|
|
children: '--'
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("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'
|
|
|
},
|
|
|
children: '--'
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '45.3%'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 43
|
|
|
},
|
|
|
children: '--'
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '12.5%'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 43
|
|
|
},
|
|
|
children: '--'
|
|
|
})
|
|
|
})]
|
|
|
}), item === null || item === void 0 || (_item$evaluation5 = item.evaluation) === null || _item$evaluation5 === void 0 ? void 0 : _item$evaluation5.map(function (evaluationitem, evaluationindex) {
|
|
|
var _evaluationitem$subit, _evaluationitem$subit2, _evaluationitem$subit3, _evaluationitem$subit4;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '100%',
|
|
|
display: 'flex',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '30%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: (evaluationitem === null || evaluationitem === void 0 ? void 0 : evaluationitem.work_name) || '--'
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '12.5%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: (evaluationitem === null || evaluationitem === void 0 ? void 0 : evaluationitem.weight) || '--'
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '45%'
|
|
|
},
|
|
|
children: [(evaluationitem === null || evaluationitem === void 0 || (_evaluationitem$subit = evaluationitem.subitems) === null || _evaluationitem$subit === void 0 ? void 0 : _evaluationitem$subit.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
height: 43
|
|
|
},
|
|
|
children: '--'
|
|
|
}), evaluationitem === null || evaluationitem === void 0 || (_evaluationitem$subit2 = evaluationitem.subitems) === null || _evaluationitem$subit2 === void 0 ? void 0 : _evaluationitem$subit2.map(function (subitems, subitemsindex) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: subitems === null || subitems === void 0 ? void 0 : subitems.name,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("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'
|
|
|
},
|
|
|
children: subitems === null || subitems === void 0 ? void 0 : subitems.name
|
|
|
})
|
|
|
});
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: '12.5%'
|
|
|
},
|
|
|
children: [(evaluationitem === null || evaluationitem === void 0 || (_evaluationitem$subit3 = evaluationitem.subitems) === null || _evaluationitem$subit3 === void 0 ? void 0 : _evaluationitem$subit3.length) <= 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 43
|
|
|
},
|
|
|
children: '--'
|
|
|
}), evaluationitem === null || evaluationitem === void 0 || (_evaluationitem$subit4 = evaluationitem.subitems) === null || _evaluationitem$subit4 === void 0 ? void 0 : _evaluationitem$subit4.map(function (subitems, subitemsindex) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
flexDirection: 'column',
|
|
|
height: 43
|
|
|
},
|
|
|
children: subitems === null || subitems === void 0 ? void 0 : subitems.weight
|
|
|
});
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '7%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: item === null || item === void 0 ? void 0 : item.standard_grade
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '7%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0
|
|
|
},
|
|
|
children: item === null || item === void 0 ? void 0 : item.actual_grade
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("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 && item !== void 0 && item.status ? '#07C160' : '#E30000'
|
|
|
},
|
|
|
children: item !== null && item !== void 0 && item.status ? '达成' : '未达成'
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: '8%',
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
borderBottom: '1px solid #E0E2EC',
|
|
|
marginTop: -1,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
flexShrink: 0,
|
|
|
textAlign: 'center'
|
|
|
},
|
|
|
children: evaluationslist === null || evaluationslist === void 0 ? void 0 : evaluationslist.evaluation_time
|
|
|
})]
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: '58px',
|
|
|
border: '1px solid #E0E2EC',
|
|
|
marginTop: -1
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '4%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: "\u603B\u5206"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '74%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
borderRight: '1px solid #E0E2EC',
|
|
|
width: '7%',
|
|
|
textAlign: 'center',
|
|
|
flexShrink: 0,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center'
|
|
|
},
|
|
|
children: evaluationslist === null || evaluationslist === void 0 ? void 0 : evaluationslist.total_score
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddCourseModal, {
|
|
|
courseId: editCourseId.current,
|
|
|
isshow: addshow,
|
|
|
setishow: setaddshow,
|
|
|
items: items,
|
|
|
points: points,
|
|
|
modalparams: params,
|
|
|
getevaluations: getevaluations,
|
|
|
getcourse_evaluations: getcourse_evaluations
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(SettingModal, {
|
|
|
isshow: Settingmodal,
|
|
|
setishow: setSettingmodal,
|
|
|
modalparams: params,
|
|
|
getcourse_evaluations: getevaluations
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
title: "\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807",
|
|
|
open: showmodal,
|
|
|
wrapClassName: CurseSettingmodules.modalWrapContainer,
|
|
|
width: 918,
|
|
|
okText: "\u4FDD\u5B58",
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee21() {
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee21$(_context21) {
|
|
|
while (1) switch (_context21.prev = _context21.next) {
|
|
|
case 0:
|
|
|
if (!((coursetargets === null || coursetargets === void 0 ? void 0 : coursetargets.filter(function (item) {
|
|
|
var _item$graduation_subi2, _item$graduation_subi3;
|
|
|
return !item.content || !item.weight || !item.standard_grade || (item === null || item === void 0 || (_item$graduation_subi2 = item.graduation_subitem_ids) === null || _item$graduation_subi2 === void 0 ? void 0 : _item$graduation_subi2.length) <= 0 || (item === null || item === void 0 || (_item$graduation_subi3 = item.graduation_subitem_ids) === null || _item$graduation_subi3 === void 0 ? void 0 : _item$graduation_subi3.filter(function (items) {
|
|
|
return !items;
|
|
|
}).length) > 0;
|
|
|
}).length) > 0)) {
|
|
|
_context21.next = 3;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.info('请填写或删除没有填入数值的数据');
|
|
|
return _context21.abrupt("return");
|
|
|
case 3:
|
|
|
_context21.next = 5;
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(params === null || params === void 0 ? void 0 : params.id, "/course_targets"), {
|
|
|
method: 'POST',
|
|
|
body: {
|
|
|
course_targets: coursetargets
|
|
|
}
|
|
|
});
|
|
|
case 5:
|
|
|
res = _context21.sent;
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
setshowmodal(false);
|
|
|
getcourse_targets(params);
|
|
|
getevaluations(params);
|
|
|
}
|
|
|
// console.log(coursetargets?.filter((item:any)=>!item.content||!item.weight||!item.standard_grade||item?.graduation_subitem_ids?.length<=0||item?.graduation_subitem_ids?.filter((items:any)=>!items)));
|
|
|
case 7:
|
|
|
case "end":
|
|
|
return _context21.stop();
|
|
|
}
|
|
|
}, _callee21);
|
|
|
})),
|
|
|
onCancel: function onCancel() {
|
|
|
setshowmodal(false);
|
|
|
getcourse_targets(params);
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
color: '#464F66',
|
|
|
fontSize: 14,
|
|
|
paddingLeft: 40,
|
|
|
paddingBottom: 12
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: "\u8BF4\u660E\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: ["1.\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u4E4B\u548C\u5E94\u7B49\u4E8E1\uFF1B", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "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__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
background: '#F5F5F5',
|
|
|
height: '38px',
|
|
|
alignItems: 'center',
|
|
|
padding: '0px 10px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
},
|
|
|
children: "\u5206\u9879"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 3
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: '#EE0A24',
|
|
|
marginRight: '5px'
|
|
|
},
|
|
|
children: "*"
|
|
|
}), "\u8BFE\u7A0B\u76EE\u6807"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: '#EE0A24',
|
|
|
marginRight: '5px'
|
|
|
},
|
|
|
children: "*"
|
|
|
}), "\u6743\u91CD"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: '#EE0A24',
|
|
|
marginRight: '5px'
|
|
|
},
|
|
|
children: "*"
|
|
|
}), "\u8FBE\u6210\u5206\u503C\uFF08\u5206\uFF09"]
|
|
|
})]
|
|
|
}), coursetargets === null || coursetargets === void 0 ? void 0 : coursetargets.map(function (item, index) {
|
|
|
var _item$graduation_subi4, _item$graduation_subi5, _ref23;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
background: '#EEF2F8',
|
|
|
height: '62px',
|
|
|
alignItems: 'center',
|
|
|
padding: '0px 10px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
},
|
|
|
children: index + 1
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 3,
|
|
|
padding: '0px 10px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
onChange: function onChange(e) {
|
|
|
item.content = e.target.value;
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
},
|
|
|
value: item === null || item === void 0 ? void 0 : item.content
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
min: 0,
|
|
|
max: 1,
|
|
|
step: 0.1,
|
|
|
onChange: function onChange(e) {
|
|
|
item.weight = e;
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
},
|
|
|
value: item === null || item === void 0 ? void 0 : item.weight
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
|
min: 0,
|
|
|
max: 100,
|
|
|
onChange: function onChange(e) {
|
|
|
item.standard_grade = e;
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
},
|
|
|
value: item === null || item === void 0 ? void 0 : item.standard_grade
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '新增课程目标',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#0152D9',
|
|
|
cursor: 'pointer',
|
|
|
marginLeft: '10px'
|
|
|
},
|
|
|
className: 'iconfont icon-xinzeng',
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee22() {
|
|
|
var aa;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee22$(_context22) {
|
|
|
while (1) switch (_context22.prev = _context22.next) {
|
|
|
case 0:
|
|
|
aa = {
|
|
|
id: 0,
|
|
|
content: '',
|
|
|
weight: '',
|
|
|
standard_grade: '',
|
|
|
graduation_subitem_ids: ['']
|
|
|
};
|
|
|
coursetargets.push(aa);
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
case 3:
|
|
|
case "end":
|
|
|
return _context22.stop();
|
|
|
}
|
|
|
}, _callee22);
|
|
|
}))
|
|
|
})
|
|
|
}), index !== 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: "\u5220\u9664",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee23() {
|
|
|
return regeneratorRuntime_default()().wrap(function _callee23$(_context23) {
|
|
|
while (1) switch (_context23.prev = _context23.next) {
|
|
|
case 0:
|
|
|
coursetargets.splice(index, 1);
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
case 2:
|
|
|
case "end":
|
|
|
return _context23.stop();
|
|
|
}
|
|
|
}, _callee23);
|
|
|
})),
|
|
|
style: {
|
|
|
color: '#0152D9',
|
|
|
cursor: 'pointer',
|
|
|
marginLeft: '10px'
|
|
|
},
|
|
|
className: "iconfont icon-shanchu9"
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
padding: '0px 10px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 3
|
|
|
},
|
|
|
children: [' ', /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: '#EE0A24',
|
|
|
marginRight: '5px'
|
|
|
},
|
|
|
children: "*"
|
|
|
}), ' ', "\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9", ' ']
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
}
|
|
|
})]
|
|
|
}), item === null || item === void 0 || (_item$graduation_subi4 = item.graduation_subitem_ids) === null || _item$graduation_subi4 === void 0 ? void 0 : _item$graduation_subi4.map(function (items, j) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: '40px',
|
|
|
alignItems: 'center',
|
|
|
padding: '0px 10px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 3,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
value: items,
|
|
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
|
return trigger.parentNode;
|
|
|
},
|
|
|
onChange: function onChange(e) {
|
|
|
item.graduation_subitem_ids[j] = e;
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
},
|
|
|
style: {
|
|
|
width: '320px'
|
|
|
},
|
|
|
children: SelectList === null || SelectList === void 0 ? void 0 : SelectList.map(function (jitems, h) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
|
|
|
disabled: item.graduation_subitem_ids.includes(jitems === null || jitems === void 0 ? void 0 : jitems.id),
|
|
|
value: jitems === null || jitems === void 0 ? void 0 : jitems.id,
|
|
|
title: "\u6307\u6807\u70B9" + (jitems === null || jitems === void 0 ? void 0 : jitems.index) + "\uFF1A" + (jitems === null || jitems === void 0 ? void 0 : jitems.content),
|
|
|
children: ["\u6307\u6807\u70B9", jitems === null || jitems === void 0 ? void 0 : jitems.index, "\uFF1A", jitems === null || jitems === void 0 ? void 0 : jitems.content]
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '新增指标点',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#0152D9',
|
|
|
cursor: 'pointer',
|
|
|
marginLeft: '10px'
|
|
|
},
|
|
|
className: 'iconfont icon-xinzeng',
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee24() {
|
|
|
return regeneratorRuntime_default()().wrap(function _callee24$(_context24) {
|
|
|
while (1) switch (_context24.prev = _context24.next) {
|
|
|
case 0:
|
|
|
item === null || item === void 0 || item.graduation_subitem_ids.push('');
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
case 2:
|
|
|
case "end":
|
|
|
return _context24.stop();
|
|
|
}
|
|
|
}, _callee24);
|
|
|
}))
|
|
|
})
|
|
|
}), j !== 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: "\u5220\u9664",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee25() {
|
|
|
return regeneratorRuntime_default()().wrap(function _callee25$(_context25) {
|
|
|
while (1) switch (_context25.prev = _context25.next) {
|
|
|
case 0:
|
|
|
item.graduation_subitem_ids.splice(j, 1);
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
case 2:
|
|
|
case "end":
|
|
|
return _context25.stop();
|
|
|
}
|
|
|
}, _callee25);
|
|
|
})),
|
|
|
style: {
|
|
|
color: '#0152D9',
|
|
|
cursor: 'pointer',
|
|
|
marginLeft: '10px'
|
|
|
},
|
|
|
className: "iconfont icon-shanchu9"
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
}
|
|
|
})]
|
|
|
});
|
|
|
}), (item === null || item === void 0 || (_item$graduation_subi5 = item.graduation_subitem_ids) === null || _item$graduation_subi5 === void 0 ? void 0 : _item$graduation_subi5.length) <= 0 && ((_ref23 = ['']) === null || _ref23 === void 0 ? void 0 : _ref23.map(function (items, j) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: '40px',
|
|
|
alignItems: 'center',
|
|
|
padding: '0px 10px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 3,
|
|
|
display: 'flex',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
value: items,
|
|
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
|
return trigger.parentNode;
|
|
|
},
|
|
|
onChange: function onChange(e) {
|
|
|
item.graduation_subitem_ids[j] = e;
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
},
|
|
|
style: {
|
|
|
width: '320px'
|
|
|
},
|
|
|
children: SelectList === null || SelectList === void 0 ? void 0 : SelectList.map(function (jitems, h) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
|
|
|
disabled: item.graduation_subitem_ids.includes(jitems === null || jitems === void 0 ? void 0 : jitems.id),
|
|
|
value: jitems === null || jitems === void 0 ? void 0 : jitems.id,
|
|
|
title: "\u6307\u6807\u70B9" + (jitems === null || jitems === void 0 ? void 0 : jitems.index) + "\uFF1A" + (jitems === null || jitems === void 0 ? void 0 : jitems.content),
|
|
|
children: ["\u6307\u6807\u70B9", jitems === null || jitems === void 0 ? void 0 : jitems.index, "\uFF1A", jitems === null || jitems === void 0 ? void 0 : jitems.content]
|
|
|
});
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: '新增指标点',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
style: {
|
|
|
color: '#0152D9',
|
|
|
cursor: 'pointer',
|
|
|
marginLeft: '10px'
|
|
|
},
|
|
|
className: 'iconfont icon-xinzeng',
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee26() {
|
|
|
return regeneratorRuntime_default()().wrap(function _callee26$(_context26) {
|
|
|
while (1) switch (_context26.prev = _context26.next) {
|
|
|
case 0:
|
|
|
item === null || item === void 0 || item.graduation_subitem_ids.push('');
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
case 2:
|
|
|
case "end":
|
|
|
return _context26.stop();
|
|
|
}
|
|
|
}, _callee26);
|
|
|
}))
|
|
|
})
|
|
|
}), j !== 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: "\u5220\u9664",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee27() {
|
|
|
return regeneratorRuntime_default()().wrap(function _callee27$(_context27) {
|
|
|
while (1) switch (_context27.prev = _context27.next) {
|
|
|
case 0:
|
|
|
item.graduation_subitem_ids.splice(j, 1);
|
|
|
setcoursetargets(toConsumableArray_default()(coursetargets));
|
|
|
case 2:
|
|
|
case "end":
|
|
|
return _context27.stop();
|
|
|
}
|
|
|
}, _callee27);
|
|
|
})),
|
|
|
style: {
|
|
|
color: '#0152D9',
|
|
|
cursor: 'pointer',
|
|
|
marginLeft: '10px'
|
|
|
},
|
|
|
className: "iconfont icon-shanchu9"
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 2
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
}
|
|
|
})]
|
|
|
});
|
|
|
}))]
|
|
|
});
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
title: "\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F",
|
|
|
open: Calculation,
|
|
|
width: 918,
|
|
|
className: CurseSettingmodules.modalWrapContainer,
|
|
|
onCancel: function onCancel() {
|
|
|
setCalculation(false);
|
|
|
},
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee28() {
|
|
|
var _formulas$ec_course_t, _formulas$ec_course_f;
|
|
|
var res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee28$(_context28) {
|
|
|
while (1) switch (_context28.prev = _context28.next) {
|
|
|
case 0:
|
|
|
_context28.next = 2;
|
|
|
return (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: formulas === null || formulas === void 0 || (_formulas$ec_course_t = formulas.ec_course_target_formulas.filter(function (item) {
|
|
|
return item.checked;
|
|
|
})) === null || _formulas$ec_course_t === void 0 || (_formulas$ec_course_t = _formulas$ec_course_t[0]) === null || _formulas$ec_course_t === void 0 ? void 0 : _formulas$ec_course_t.id,
|
|
|
ec_course_formula_id: formulas === null || formulas === void 0 || (_formulas$ec_course_f = formulas.ec_course_formulas.filter(function (item) {
|
|
|
return item.checked;
|
|
|
})) === null || _formulas$ec_course_f === void 0 || (_formulas$ec_course_f = _formulas$ec_course_f[0]) === null || _formulas$ec_course_f === void 0 ? void 0 : _formulas$ec_course_f.id
|
|
|
}
|
|
|
});
|
|
|
case 2:
|
|
|
res = _context28.sent;
|
|
|
if (res) {
|
|
|
setCalculation(false);
|
|
|
get_formulas(params.id);
|
|
|
}
|
|
|
case 4:
|
|
|
case "end":
|
|
|
return _context28.stop();
|
|
|
}
|
|
|
}, _callee28);
|
|
|
})),
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
padding: '16px 40px'
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z, {
|
|
|
activeKey: currt,
|
|
|
onChange: function onChange(e) {
|
|
|
setcurrt(e);
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C"
|
|
|
}, 1), /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default */.Z.TabPane, {
|
|
|
tab: "\u8BFE\u7A0B\u603B\u5206"
|
|
|
}, 2)]
|
|
|
})
|
|
|
}), currt === '1' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: 38,
|
|
|
background: '#F5F5F5',
|
|
|
lineHeight: '38px',
|
|
|
padding: '0px 40px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1,
|
|
|
marginRight: '30px'
|
|
|
},
|
|
|
children: "\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C\u8BA1\u7B97\u516C\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 185
|
|
|
},
|
|
|
children: "\u64CD\u4F5C"
|
|
|
})]
|
|
|
}), formulas === null || formulas === void 0 || (_formulas$ec_course_t2 = formulas.ec_course_target_formulas) === null || _formulas$ec_course_t2 === void 0 ? void 0 : _formulas$ec_course_t2.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
padding: '20px 40px'
|
|
|
},
|
|
|
children: [(item === null || item === void 0 ? void 0 : item.checked) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: '40px',
|
|
|
borderRadius: '2px',
|
|
|
color: '#0152D9',
|
|
|
border: '1px solid #0152D9',
|
|
|
display: "inline-flex",
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
marginRight: '10px',
|
|
|
height: '22px'
|
|
|
},
|
|
|
children: "\u9ED8\u8BA4"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 1,
|
|
|
marginRight: '30px',
|
|
|
marginLeft: !(item !== null && item !== void 0 && item.checked) && '50px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
children: item === null || item === void 0 ? void 0 : item.content
|
|
|
}), (item === null || item === void 0 ? void 0 : item.explain) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
|
children: ["\u8BF4\u660E\uFF1A", item === null || item === void 0 ? void 0 : item.explain]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 185
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
|
|
|
onClick: function onClick() {
|
|
|
formulas === null || formulas === void 0 || formulas.ec_course_target_formulas.map(function (items) {
|
|
|
if (item.id === items.id) {
|
|
|
items.checked = true;
|
|
|
} else {
|
|
|
items.checked = false;
|
|
|
}
|
|
|
});
|
|
|
setformulas(objectSpread2_default()({}, formulas));
|
|
|
},
|
|
|
checked: item === null || item === void 0 ? void 0 : item.checked,
|
|
|
children: [' ', "\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F"]
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
})]
|
|
|
}), currt === '2' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
height: 38,
|
|
|
background: '#F5F5F5',
|
|
|
lineHeight: '38px',
|
|
|
padding: '0px 40px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
},
|
|
|
children: "\u8BFE\u7A0B\u603B\u5206\u8BA1\u7B97\u516C\u5F0F"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 185
|
|
|
},
|
|
|
children: "\u64CD\u4F5C"
|
|
|
})]
|
|
|
}), formulas === null || formulas === void 0 || (_formulas$ec_course_f2 = formulas.ec_course_formulas) === null || _formulas$ec_course_f2 === void 0 ? void 0 : _formulas$ec_course_f2.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: 'flex',
|
|
|
padding: '20px 40px'
|
|
|
},
|
|
|
children: [(item === null || item === void 0 ? void 0 : item.checked) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: '40px',
|
|
|
borderRadius: '2px',
|
|
|
color: '#0152D9',
|
|
|
border: '1px solid #0152D9',
|
|
|
display: "inline-flex",
|
|
|
alignItems: 'center',
|
|
|
justifyContent: 'center',
|
|
|
marginRight: '10px',
|
|
|
height: '22px'
|
|
|
},
|
|
|
children: "\u9ED8\u8BA4"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
flex: 1,
|
|
|
marginRight: '30px',
|
|
|
marginLeft: !(item !== null && item !== void 0 && item.checked) && '50px'
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
children: item === null || item === void 0 ? void 0 : item.content
|
|
|
}), (item === null || item === void 0 ? void 0 : item.explain) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
|
children: ["\u8BF4\u660E\uFF1A", item === null || item === void 0 ? void 0 : item.explain]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
width: 185
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default */.ZP, {
|
|
|
onClick: function onClick() {
|
|
|
formulas === null || formulas === void 0 || formulas.ec_course_formulas.map(function (items) {
|
|
|
if (item.id === items.id) {
|
|
|
items.checked = true;
|
|
|
} else {
|
|
|
items.checked = false;
|
|
|
}
|
|
|
});
|
|
|
setformulas(objectSpread2_default()({}, formulas));
|
|
|
},
|
|
|
checked: item === null || item === void 0 ? void 0 : item.checked,
|
|
|
children: [' ', "\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F"]
|
|
|
})
|
|
|
})]
|
|
|
});
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
title: "\u6279\u91CF\u5BFC\u5165",
|
|
|
open: exportshow,
|
|
|
centered: true,
|
|
|
onCancel: function onCancel() {
|
|
|
setexport(false);
|
|
|
setFileList([]);
|
|
|
},
|
|
|
okButtonProps: {
|
|
|
loading: loadings
|
|
|
},
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee29() {
|
|
|
var formData, url, res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee29$(_context29) {
|
|
|
while (1) switch (_context29.prev = _context29.next) {
|
|
|
case 0:
|
|
|
formData = new FormData();
|
|
|
if (!(fileList.length > 0)) {
|
|
|
_context29.next = 5;
|
|
|
break;
|
|
|
}
|
|
|
formData.append('file', fileList[0]);
|
|
|
_context29.next = 7;
|
|
|
break;
|
|
|
case 5:
|
|
|
message/* default */.ZP.warning("请选择文件");
|
|
|
return _context29.abrupt("return");
|
|
|
case 7:
|
|
|
if (params.id) {
|
|
|
_context29.next = 10;
|
|
|
break;
|
|
|
}
|
|
|
message/* default */.ZP.info('请先创建课程');
|
|
|
return _context29.abrupt("return");
|
|
|
case 10:
|
|
|
setloading(true);
|
|
|
formData.append('ec_course_id', params.id);
|
|
|
if (editCourseId.current) {
|
|
|
formData.append('id', editCourseId.current);
|
|
|
}
|
|
|
url = editCourseId.current ? "/api/ec_courses/".concat(params.id, "/course_evaluations/update_offline.json") : "/api/ec_courses/".concat(params.id, "/course_evaluations/create_offline.json");
|
|
|
_context29.next = 16;
|
|
|
return (0,fetch/* default */.ZP)(url, {
|
|
|
method: editCourseId.current ? 'put' : 'post',
|
|
|
body: formData
|
|
|
}, true);
|
|
|
case 16:
|
|
|
res = _context29.sent;
|
|
|
setloading(false);
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
message/* default */.ZP.info('添加成功');
|
|
|
setexport(false);
|
|
|
setFileList([]);
|
|
|
getcourse_evaluations(params);
|
|
|
}
|
|
|
case 19:
|
|
|
case "end":
|
|
|
return _context29.stop();
|
|
|
}
|
|
|
}, _callee29);
|
|
|
})),
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
|
children: ["\u6B65\u9AA41\uFF1A\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
href: env/* default */.Z.API_SERVER + "/api/ec_courses/1/course_evaluations/download_template.xlsx",
|
|
|
download: "\u6A21\u7248.xlsx",
|
|
|
children: "\u660E\u7EC6\u6210\u7EE9\u5BFC\u5165\u6A21\u677F"
|
|
|
}), ",\u5BFC\u5165\u7EBF\u4E0B\u6570\u636E\u5185\u5BB9\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: '#D95201'
|
|
|
},
|
|
|
children: "\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: "\u6B65\u9AA42\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, addDraggers), {}, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
type: "primary",
|
|
|
children: "\u9009\u62E9\u6587\u4EF6"
|
|
|
})
|
|
|
}))
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, preview), {}, {
|
|
|
onClose: function onClose() {
|
|
|
setPreview(objectSpread2_default()(objectSpread2_default()({}, preview), {}, {
|
|
|
type: ''
|
|
|
}));
|
|
|
}
|
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
title: pointsid ? '编辑知识点' : "\u65B0\u589E\u77E5\u8BC6\u70B9",
|
|
|
open: isshowmodal,
|
|
|
onOk: function onOk() {
|
|
|
form.submit();
|
|
|
},
|
|
|
okButtonProps: {
|
|
|
loading: isloading
|
|
|
},
|
|
|
onCancel: function onCancel() {
|
|
|
setisshowmodal(false);
|
|
|
form.setFieldsValue({
|
|
|
name: '',
|
|
|
target: '',
|
|
|
content: '',
|
|
|
problem: '',
|
|
|
ec_course_target_ids: []
|
|
|
});
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
|
style: {
|
|
|
color: '#FA6400',
|
|
|
fontSize: '14px'
|
|
|
}
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
|
labelCol: {
|
|
|
span: 7
|
|
|
},
|
|
|
wrapperCol: {
|
|
|
span: 17
|
|
|
},
|
|
|
form: form,
|
|
|
onFinish: ( /*#__PURE__*/function () {
|
|
|
var _ref28 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee30(value) {
|
|
|
var url, res;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee30$(_context30) {
|
|
|
while (1) switch (_context30.prev = _context30.next) {
|
|
|
case 0:
|
|
|
setisloading(true);
|
|
|
url = pointsid ? "/api/ec_courses/".concat(params.id, "/ec_points/").concat(pointsid, ".json") : "/api/ec_courses/".concat(params.id, "/ec_points.json");
|
|
|
_context30.next = 4;
|
|
|
return (0,fetch/* default */.ZP)(url, {
|
|
|
method: pointsid ? 'put' : 'post',
|
|
|
body: objectSpread2_default()({
|
|
|
ec_course_id: params.id,
|
|
|
id: pointsid
|
|
|
}, value)
|
|
|
});
|
|
|
case 4:
|
|
|
res = _context30.sent;
|
|
|
setisloading(false);
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.info('新增成功');
|
|
|
// getDatas()
|
|
|
getec_points(params);
|
|
|
form.setFieldsValue({
|
|
|
name: '',
|
|
|
target: '',
|
|
|
content: '',
|
|
|
problem: '',
|
|
|
ec_course_target_ids: []
|
|
|
});
|
|
|
setisshowmodal(false);
|
|
|
}
|
|
|
case 7:
|
|
|
case "end":
|
|
|
return _context30.stop();
|
|
|
}
|
|
|
}, _callee30);
|
|
|
}));
|
|
|
return function (_x13) {
|
|
|
return _ref28.apply(this, arguments);
|
|
|
};
|
|
|
}()),
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
label: "\u77E5\u8BC6\u70B9",
|
|
|
name: "name",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请输入知识点'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
label: "\u6559\u5B66\u76EE\u7684",
|
|
|
name: "target",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请输入教学目的'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
label: "\u6559\u5B66\u5185\u5BB9",
|
|
|
name: "content",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请输入教学内容'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
label: "\u91CD\u70B9\u96BE\u70B9",
|
|
|
name: "problem",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请输入重点难点'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
label: "\u652F\u6491\u7684\u8BFE\u7A0B\u76EE\u6807",
|
|
|
name: "ec_course_target_ids",
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: '请选择课程目标'
|
|
|
}],
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
mode: "multiple",
|
|
|
disabled: ((_params$kcdatas = params.kcdatas) === null || _params$kcdatas === void 0 ? void 0 : _params$kcdatas.length) <= 0,
|
|
|
placeholder: "\u8BF7\u9009\u62E9\u8BFE\u7A0B\u76EE\u6807",
|
|
|
children: coursetargetslist === null || coursetargetslist === void 0 ? void 0 : coursetargetslist.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
|
|
|
value: item === null || item === void 0 ? void 0 : item.id,
|
|
|
children: item === null || item === void 0 ? void 0 : item.content
|
|
|
}, index);
|
|
|
})
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var CurseSetting = ((0,_umi_production_exports.connect)(function (_ref29) {
|
|
|
var user = _ref29.user;
|
|
|
return {
|
|
|
user: user
|
|
|
};
|
|
|
})(Page));
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |