|
|
|
|
@ -5264,9 +5264,9 @@ function updateMoopCase(id, params) {
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 63636:
|
|
|
|
|
/***/ 26628:
|
|
|
|
|
/*!******************************************************!*\
|
|
|
|
|
!*** ./src/pages/Paths/Detail/[id].tsx + 57 modules ***!
|
|
|
|
|
!*** ./src/pages/Paths/Detail/[id].tsx + 61 modules ***!
|
|
|
|
|
\******************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
@ -20005,6 +20005,513 @@ var knowledge_Atlas = function Atlas(_ref) {
|
|
|
|
|
pathsDetail: pathsDetail
|
|
|
|
|
};
|
|
|
|
|
})(knowledge_Atlas));
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var LearnPathmodules = ({"pathWrap":"pathWrap___jfkaP","errorStatus":"errorStatus___Isj1L","successStatus":"successStatus___zwDAO","nameSty":"nameSty___ilLoy","iconSty":"iconSty___xRU86"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
|
|
|
|
|
var breadcrumb = __webpack_require__(66104);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/AddLearnPath/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var AddLearnPathmodules = ({"bg":"bg___Ztswj","title":"title___EKsBk","fieldWrap":"fieldWrap___heRkc","footer_style":"footer_style___ZjLRN","submit_button":"submit_button___EqHE6","close_button":"close_button___NLCMc","stageWrap":"stageWrap___ppiKv","treeTitle":"treeTitle___Js9NW","treeBox":"treeBox___wXg6k","header":"header___nTNPI"});
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/AddLearnPath/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var NewLearnPathPage = function NewLearnPathPage(_ref) {
|
|
|
|
|
var _formValue$name;
|
|
|
|
|
var visable = _ref.visable,
|
|
|
|
|
onCancel = _ref.onCancel;
|
|
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
|
|
|
form = _Form$useForm2[0];
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
formValue = _useState2[0],
|
|
|
|
|
setFormValue = _useState2[1];
|
|
|
|
|
var courseId = (0,_react_17_0_2_react.useRef)();
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
items = _useState4[0],
|
|
|
|
|
setitems = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
stageVis = _useState6[0],
|
|
|
|
|
setStageVis = _useState6[1];
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
stageDate = _useState8[0],
|
|
|
|
|
setStageData = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
checkedKeys = _useState10[0],
|
|
|
|
|
setCheckedKeys = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
checkedKeys2 = _useState12[0],
|
|
|
|
|
setCheckedKeys2 = _useState12[1];
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
checkedNodes = _useState14[0],
|
|
|
|
|
setCheckedNodes = _useState14[1];
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
|
|
checkedNodes2 = _useState16[0],
|
|
|
|
|
setCheckedNodes2 = _useState16[1]; // 临时存储选中的节点
|
|
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
|
|
checkAll = _useState18[0],
|
|
|
|
|
setCheckAll = _useState18[1];
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
|
|
treeLoading = _useState20[0],
|
|
|
|
|
setTreeLoading = _useState20[1];
|
|
|
|
|
var onCheck = function onCheck(checkedKeysValue, e) {
|
|
|
|
|
console.log("checkedKeysValue--", checkedKeysValue);
|
|
|
|
|
console.log("e--", e);
|
|
|
|
|
setCheckedKeys2(checkedKeysValue);
|
|
|
|
|
setCheckedNodes2(toConsumableArray_default()(e.checkedNodes));
|
|
|
|
|
};
|
|
|
|
|
function transformData(stages) {
|
|
|
|
|
return stages.map(function (stage) {
|
|
|
|
|
return {
|
|
|
|
|
title: stage === null || stage === void 0 ? void 0 : stage.text,
|
|
|
|
|
key: (stage === null || stage === void 0 ? void 0 : stage.stage_id) || (stage === null || stage === void 0 ? void 0 : stage.stage_shixun_id),
|
|
|
|
|
children: stage !== null && stage !== void 0 && stage.children ? transformData(stage === null || stage === void 0 ? void 0 : stage.children) : [],
|
|
|
|
|
selectable: false,
|
|
|
|
|
// 如果不想选择父节点,可以设为 false
|
|
|
|
|
checkable: true,
|
|
|
|
|
// 可以选择
|
|
|
|
|
// 这里可以根据 checked 属性设置选中状态
|
|
|
|
|
checked: stage === null || stage === void 0 ? void 0 : stage.checked
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
var getSubjectList = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, _res$data, treeData;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
setTreeLoading(true);
|
|
|
|
|
_context.next = 3;
|
|
|
|
|
return (0,paths/* getSubjects */.T0)({
|
|
|
|
|
identifier: params.pathId
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
treeData = transformData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.stages);
|
|
|
|
|
setStageData(toConsumableArray_default()(treeData));
|
|
|
|
|
}
|
|
|
|
|
setTreeLoading(false);
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
return function getSubjectList() {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getSubjectList();
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
// useEffect(() => {
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// document.body.scrollIntoView();
|
|
|
|
|
// }, 300);
|
|
|
|
|
// const { coursesId, categoryId } = params as any;
|
|
|
|
|
// dispatch({
|
|
|
|
|
// type: 'shixunHomeworks/addCommonHomeWorkDefaultData',
|
|
|
|
|
// payload: { category: categoryId, coursesId, type: 3 },
|
|
|
|
|
// });
|
|
|
|
|
// }, []);
|
|
|
|
|
|
|
|
|
|
// useEffect(() => {
|
|
|
|
|
// form.resetFields();
|
|
|
|
|
// }, [classroomList.actionTabs.key])
|
|
|
|
|
|
|
|
|
|
var handleFinish = function handleFinish() {
|
|
|
|
|
form.validateFields().then( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var bodyData, _bodyData$attachment_, _bodyData$reference_a;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(formValue.min_num > formValue.max_num)) {
|
|
|
|
|
_context2.next = 3;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.info('最大人数不能小于最小人数');
|
|
|
|
|
return _context2.abrupt("return");
|
|
|
|
|
case 3:
|
|
|
|
|
bodyData = objectSpread2_default()({}, formValue);
|
|
|
|
|
if (bodyData.attachment_ids) {
|
|
|
|
|
bodyData.attachment_ids = bodyData === null || bodyData === void 0 || (_bodyData$attachment_ = bodyData.attachment_ids) === null || _bodyData$attachment_ === void 0 ? void 0 : _bodyData$attachment_.map(function (v) {
|
|
|
|
|
return v.response.id;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (bodyData.reference_attachment_ids) {
|
|
|
|
|
bodyData.reference_attachment_ids = bodyData === null || bodyData === void 0 || (_bodyData$reference_a = bodyData.reference_attachment_ids) === null || _bodyData$reference_a === void 0 ? void 0 : _bodyData$reference_a.map(function (v) {
|
|
|
|
|
return v.response.id;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (!bodyData.base_on_project) {
|
|
|
|
|
bodyData.base_on_project = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// const res = await addHomeworkToStage({
|
|
|
|
|
// id: classroomList.actionTabs.id,
|
|
|
|
|
// subject_id: classroomList.actionTabs.subject_id,
|
|
|
|
|
// ...bodyData,
|
|
|
|
|
// homework_type: 3,
|
|
|
|
|
// });
|
|
|
|
|
// if (res.status === 0) {
|
|
|
|
|
// set_work_points(res.homework_id)
|
|
|
|
|
// trackEvent(['教学课堂', '分组作业', '新建分组作业']);
|
|
|
|
|
// message.success('新建成功')
|
|
|
|
|
// dispatch({
|
|
|
|
|
// type: 'classroomList/setActionTabs',
|
|
|
|
|
// payload: {
|
|
|
|
|
// key: 'closePathsTabs'
|
|
|
|
|
// },
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
case 7:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
})));
|
|
|
|
|
};
|
|
|
|
|
function set_work_points(_x) {
|
|
|
|
|
return _set_work_points.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _set_work_points() {
|
|
|
|
|
_set_work_points = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(id) {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (items !== null && items !== void 0 && items.ec_point_ids) {
|
|
|
|
|
_context3.next = 2;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context3.abrupt("return");
|
|
|
|
|
case 2:
|
|
|
|
|
_context3.next = 4;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(items === null || items === void 0 ? void 0 : items.ec_course_id, "/ec_points/set_work_points.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: objectSpread2_default()({
|
|
|
|
|
homework_common_id: id
|
|
|
|
|
}, items)
|
|
|
|
|
});
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context3.sent;
|
|
|
|
|
case 5:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee3);
|
|
|
|
|
}));
|
|
|
|
|
return _set_work_points.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(drawer/* default */.Z, {
|
|
|
|
|
placement: "bottom",
|
|
|
|
|
height: "100%",
|
|
|
|
|
closable: false
|
|
|
|
|
// onClose={this.onClose}
|
|
|
|
|
,
|
|
|
|
|
open: visable,
|
|
|
|
|
className: AddLearnPathmodules.drawer,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
|
|
|
className: AddLearnPathmodules.bg,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
className: "animated fadeIn mb25",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
|
|
|
|
|
separator: ">",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
href: "/paths/".concat(params.pathId),
|
|
|
|
|
children: "\u5B9E\u8DF5\u8BFE\u7A0B"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
href: "/paths/".concat(params.pathId),
|
|
|
|
|
children: "\u5B9E\u8DF5\u8BFE\u7A0B\u8BE6\u60C5"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
children: "\u65B0\u5EFA\u5B66\u4E60\u8DEF\u5F84"
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
className: AddLearnPathmodules.title,
|
|
|
|
|
children: "\u65B0\u5EFA\u5B66\u4E60\u8DEF\u5F84"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
|
|
|
form: form,
|
|
|
|
|
scrollToFirstError: true
|
|
|
|
|
// layout="vertical"
|
|
|
|
|
,
|
|
|
|
|
initialValues: {
|
|
|
|
|
method: '1',
|
|
|
|
|
status: '1'
|
|
|
|
|
},
|
|
|
|
|
onValuesChange: function onValuesChange() {
|
|
|
|
|
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "name",
|
|
|
|
|
label: "\u8DEF\u5F84\u540D\u79F0",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入路径名称'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
|
|
maxLength: 60,
|
|
|
|
|
suffix: "".concat(((_formValue$name = formValue.name) === null || _formValue$name === void 0 ? void 0 : _formValue$name.length) || 0, "/60"),
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u8DEF\u5F84\u540D\u79F0"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "method"
|
|
|
|
|
// style={{ marginTop: '-10px' }}
|
|
|
|
|
,
|
|
|
|
|
label: "\u7EC4\u7EC7\u65B9\u5F0F",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择组织方式'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
|
|
|
value: "1",
|
|
|
|
|
children: "\u6309\u9636\u6BB5\u7EC4\u7EC7"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
|
|
|
value: "2",
|
|
|
|
|
children: "\u6309\u6A21\u5757\u7EC4\u7EC7"
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
shape: "default",
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '80px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setStageVis(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u6DFB\u52A0\u9636\u6BB5"
|
|
|
|
|
}), checkedNodes.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100%',
|
|
|
|
|
maxHeight: '310px',
|
|
|
|
|
overflowY: 'auto',
|
|
|
|
|
background: '#F6F7F9',
|
|
|
|
|
padding: '16px 20px',
|
|
|
|
|
borderRadius: '4px'
|
|
|
|
|
},
|
|
|
|
|
children: checkedNodes.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [item.children && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
fontSize: '16px',
|
|
|
|
|
color: '#232B40',
|
|
|
|
|
fontWeight: 500
|
|
|
|
|
},
|
|
|
|
|
children: ["\u7B2C", index + 1, "\u9636\u6BB5"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "relateClass",
|
|
|
|
|
label: "\u5173\u8054\u73ED\u7EA7",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择关联班级'
|
|
|
|
|
}]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
name: "status",
|
|
|
|
|
label: "\u53D1\u5E03\u72B6\u6001",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择关联班级'
|
|
|
|
|
}],
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
|
|
|
value: "1",
|
|
|
|
|
children: "\u7ACB\u5373\u53D1\u5E03"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
|
|
|
|
value: "2",
|
|
|
|
|
children: "\u6682\u4E0D\u53D1\u5E03"
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.footer_style,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: AddLearnPathmodules.close_button,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
form.resetFields();
|
|
|
|
|
onCancel();
|
|
|
|
|
},
|
|
|
|
|
children: "\u53D6\u6D88"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
onClick: handleFinish,
|
|
|
|
|
className: AddLearnPathmodules.submit_button,
|
|
|
|
|
children: "\u63D0\u4EA4"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
centered: true,
|
|
|
|
|
width: 948,
|
|
|
|
|
keyboard: false,
|
|
|
|
|
maskClosable: false,
|
|
|
|
|
destroyOnClose: true,
|
|
|
|
|
title: "\u6DFB\u52A0\u5B66\u4E60\u9636\u6BB5",
|
|
|
|
|
open: stageVis,
|
|
|
|
|
onOk: function onOk() {
|
|
|
|
|
checkedNodes.push(checkedNodes2);
|
|
|
|
|
//
|
|
|
|
|
checkedKeys.push(checkedKeys2);
|
|
|
|
|
console.log("checkedNodes--", checkedNodes);
|
|
|
|
|
console.log("checkedKeys--", checkedKeys);
|
|
|
|
|
setCheckedKeys(toConsumableArray_default()(checkedKeys));
|
|
|
|
|
setCheckedNodes(toConsumableArray_default()(checkedNodes));
|
|
|
|
|
setCheckedKeys2([]);
|
|
|
|
|
setCheckedNodes2([]);
|
|
|
|
|
},
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
setStageVis(false);
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.stageWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: AddLearnPathmodules.treeTitle,
|
|
|
|
|
children: "\u8BF7\u9009\u62E9\u5B66\u4E60\u9636\u6BB5\u4E0B\u7684\u7AE0\u8282"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AddLearnPathmodules.treeBox,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: AddLearnPathmodules.header,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
|
|
|
checked: checkAll,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
setCheckAll(e.target.checked);
|
|
|
|
|
if (e.target.checked) {} else {}
|
|
|
|
|
},
|
|
|
|
|
children: "\u5168\u90E8"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tree/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
paddingLeft: '20px',
|
|
|
|
|
background: '#FDFDFE'
|
|
|
|
|
},
|
|
|
|
|
checkable: true,
|
|
|
|
|
defaultExpandAll: true,
|
|
|
|
|
onCheck: onCheck,
|
|
|
|
|
checkedKeys: checkedKeys2,
|
|
|
|
|
treeData: stageDate,
|
|
|
|
|
blockNode: true
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}, "bottom");
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var AddLearnPath = (NewLearnPathPage);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var LearnPath_excluded = ["pathsDetail", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var LearnPath = function LearnPath(_ref) {
|
|
|
|
|
var pathsDetail = _ref.pathsDetail,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
props = objectWithoutProperties_default()(_ref, LearnPath_excluded);
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
createPathVis = _useState2[0],
|
|
|
|
|
setCreatePathVis = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
pathData = _useState4[0],
|
|
|
|
|
setPathData = _useState4[1];
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [pathData.length > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt10",
|
|
|
|
|
children: pathData.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: LearnPathmodules.pathWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: LearnPathmodules.errorStatus,
|
|
|
|
|
children: item.status
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: LearnPathmodules.nameSty,
|
|
|
|
|
children: item.name
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-bianji14 font14 mr20 ".concat(LearnPathmodules.iconSty)
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-shanchutimu font14 ".concat(LearnPathmodules.iconSty)
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'center'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
|
|
|
|
styles: {
|
|
|
|
|
marginBottom: '25px'
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
style: {
|
|
|
|
|
margin: '0 auto'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setCreatePathVis(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddLearnPath, {
|
|
|
|
|
visable: createPathVis,
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
setCreatePathVis(false);
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var components_LearnPath = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
|
|
|
var pathsDetail = _ref2.pathsDetail,
|
|
|
|
|
loading = _ref2.loading,
|
|
|
|
|
globalSetting = _ref2.globalSetting;
|
|
|
|
|
return {
|
|
|
|
|
pathsDetail: pathsDetail,
|
|
|
|
|
globalSetting: globalSetting,
|
|
|
|
|
loading: loading
|
|
|
|
|
};
|
|
|
|
|
})(LearnPath));
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___hEKvu","flex_space_between":"flex_space_between___gtzO_","flex_box_vertical_center":"flex_box_vertical_center___QQWbT","flex_box_center_end":"flex_box_center_end___AyfXQ","flex_box_column":"flex_box_column___q0hJc","bg":"bg___sN_Hy","wrap":"wrap___IaIuZ","content":"content___q5lPL","wrapTabs":"wrapTabs___FivJx","intro":"intro___lW9Kf","introTitle":"introTitle___y5V_M"});
|
|
|
|
|
@ -20036,6 +20543,7 @@ var _id_excluded = ["pathsDetail", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _id_TabPane = tabs/* default */.Z.TabPane;
|
|
|
|
|
function _id_onPreviewImage(e) {
|
|
|
|
|
var parentIndexOf = function parentIndexOf(node, parent) {
|
|
|
|
|
@ -20099,6 +20607,9 @@ var PathsDetailPage = function PathsDetailPage(_ref) {
|
|
|
|
|
}, {
|
|
|
|
|
name: '知识图谱',
|
|
|
|
|
key: 'knowledge'
|
|
|
|
|
}, {
|
|
|
|
|
name: '学习路径',
|
|
|
|
|
key: 'learnPath'
|
|
|
|
|
}].filter(function (item) {
|
|
|
|
|
var _pathsDetail$detail, _pathsDetail$detail2;
|
|
|
|
|
if ((_pathsDetail$detail = pathsDetail.detail) !== null && _pathsDetail$detail !== void 0 && _pathsDetail$detail.excellent || ((_pathsDetail$detail2 = pathsDetail.detail) === null || _pathsDetail$detail2 === void 0 ? void 0 : _pathsDetail$detail2.is_free) === false) {
|
|
|
|
|
@ -20235,7 +20746,7 @@ var PathsDetailPage = function PathsDetailPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}), activeKey === 'stage' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Stage, {
|
|
|
|
|
keywords: keywords
|
|
|
|
|
}), activeKey === 'ranking' && /*#__PURE__*/(0,jsx_runtime.jsx)(StudentItems, {}), activeKey === 'certificate' && /*#__PURE__*/(0,jsx_runtime.jsx)(Stage_Certificate, {}), activeKey === 'atlas' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Atlas, {}), activeKey === 'knowledge' && /*#__PURE__*/(0,jsx_runtime.jsx)(knowledge, {})]
|
|
|
|
|
}), activeKey === 'ranking' && /*#__PURE__*/(0,jsx_runtime.jsx)(StudentItems, {}), activeKey === 'certificate' && /*#__PURE__*/(0,jsx_runtime.jsx)(Stage_Certificate, {}), activeKey === 'atlas' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Atlas, {}), activeKey === 'knowledge' && /*#__PURE__*/(0,jsx_runtime.jsx)(knowledge, {}), activeKey === 'learnPath' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_LearnPath, {})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_Right, {})]
|
|
|
|
|
})]
|
|
|
|
|
})
|