Auto Submit

dev_local_v9_test5
autosubmit 2 years ago
parent 310e5a8619
commit c5c1daad91

@ -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();
}

@ -528,6 +528,7 @@ var AddModal = function AddModal(_ref) {
children: "\u6587\u4EF6\u5939\u540D\u79F0"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
showCount: true,
className: "mt10",
placeholder: "\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",
value: name,

@ -17742,7 +17742,7 @@ var CoreCurriculumModel = {
var payload = _ref.payload;
var call = _ref2.call,
put = _ref2.put;
return /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(_KnowledgePoints$data) {
var KnowledgePoints;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
@ -17755,7 +17755,8 @@ var CoreCurriculumModel = {
return put({
type: 'save',
payload: {
KnowledgePoints: KnowledgePoints === null || KnowledgePoints === void 0 ? void 0 : KnowledgePoints.data
KnowledgePoints: KnowledgePoints === null || KnowledgePoints === void 0 ? void 0 : KnowledgePoints.data,
KnowledgePointInfo: KnowledgePoints === null || KnowledgePoints === void 0 || (_KnowledgePoints$data = KnowledgePoints.data) === null || _KnowledgePoints$data === void 0 || (_KnowledgePoints$data = _KnowledgePoints$data.chart_knowledge_point_info) === null || _KnowledgePoints$data === void 0 ? void 0 : _KnowledgePoints$data[0]
}
});
case 5:
@ -51057,7 +51058,7 @@ var GlobalConfig = {
SSH_SERVER: "wss://webssh.educoder.net",
SSH_Slice: 'https://fu.educoder.net',
OFFICE_SERVER: "https://officeserver.educoder.net",
ONLYOFFICE: "https://testoffice.educoder.net",
ONLYOFFICE: "",
OFFICE_IP: 'https://officedata.educoder.net',
QQLoginCB: encodeURIComponent("https://www.educoder.net"),
TERMINAL_URL: '.jupyter.educoder.net'

Loading…
Cancel
Save