|
|
|
|
@ -581,13 +581,7 @@ var Page = function Page(_ref) {
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'coreCurriculum/save',
|
|
|
|
|
payload: {
|
|
|
|
|
KnowledgePoints: res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.module_names) === null || _res$data === void 0 ? void 0 : _res$data[0],
|
|
|
|
|
KnowledgePointInfo: null
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
getKnowledgeChartsPoint(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.module_names) === null || _res$data === void 0 ? void 0 : _res$data[0].id);
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
@ -685,6 +679,7 @@ var Page = function Page(_ref) {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(collapse/* default */.Z, {
|
|
|
|
|
className: Knowledgemodules.KnowledgeCenter,
|
|
|
|
|
ghost: true,
|
|
|
|
|
activeKey: (KnowledgePoints === null || KnowledgePoints === void 0 ? void 0 : KnowledgePoints.position) + 1,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(collapse/* default */.Z.Panel, {
|
|
|
|
|
showArrow: false,
|
|
|
|
|
header: "\u6A21\u5757".concat((KnowledgePoints === null || KnowledgePoints === void 0 ? void 0 : KnowledgePoints.position) + 1, "\uFF1A").concat(KnowledgePoints === null || KnowledgePoints === void 0 ? void 0 : KnowledgePoints.module_name),
|
|
|
|
|
@ -866,7 +861,7 @@ var Page = function Page(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
}, 12)
|
|
|
|
|
}, (KnowledgePoints === null || KnowledgePoints === void 0 ? void 0 : KnowledgePoints.position) + 1)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
@ -939,7 +934,7 @@ var Page = function Page(_ref) {
|
|
|
|
|
return closeOrOpenModal();
|
|
|
|
|
},
|
|
|
|
|
confirmLoading: !!loading['coreCurriculum/postKnowledgeCharts'],
|
|
|
|
|
okText: "确定新增",
|
|
|
|
|
okText: isEdit ? "确认修改" : "确定新增",
|
|
|
|
|
onOk: function onOk() {
|
|
|
|
|
form.submit();
|
|
|
|
|
},
|
|
|
|
|
@ -973,7 +968,7 @@ var Page = function Page(_ref) {
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context4.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success("新增成功");
|
|
|
|
|
message/* default */.ZP.success(isEdit ? "修改成功" : "新增成功");
|
|
|
|
|
closeOrOpenModal();
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
@ -1087,7 +1082,7 @@ var Page = function Page(_ref) {
|
|
|
|
|
return closeOrOpenModal();
|
|
|
|
|
},
|
|
|
|
|
confirmLoading: !!loading["coreCurriculum/postKnowledgeChartsPoint"],
|
|
|
|
|
okText: "确定新增",
|
|
|
|
|
okText: isEdit ? "确认修改" : "确定新增",
|
|
|
|
|
onOk: function onOk() {
|
|
|
|
|
form2.submit();
|
|
|
|
|
},
|
|
|
|
|
@ -1124,7 +1119,7 @@ var Page = function Page(_ref) {
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context5.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success("新增成功");
|
|
|
|
|
message/* default */.ZP.success(isEdit ? "修改成功" : "新增成功");
|
|
|
|
|
closeOrOpenModal();
|
|
|
|
|
getKnowledgeChartsPoint();
|
|
|
|
|
}
|
|
|
|
|
|