|
|
|
|
@ -154,7 +154,7 @@ var PublishShixun = function PublishShixun(_ref) {
|
|
|
|
|
;
|
|
|
|
|
}, [classroomList.actionTabs.key]);
|
|
|
|
|
if (classroomList.actionTabs.key !== '添加目录') return null;
|
|
|
|
|
console.log('---', classroomList.actionTabs.selectArrs);
|
|
|
|
|
console.log('---xxxx', classroomList.actionTabs.selectArrs);
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
centered: true,
|
|
|
|
|
title: "\u65B0\u5EFA\u5B50\u76EE\u5F55",
|
|
|
|
|
@ -3360,7 +3360,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context4.t0 = key;
|
|
|
|
|
_context4.next = _context4.t0 === 1 ? 3 : _context4.t0 === 2 ? 6 : _context4.t0 === 3 ? 8 : _context4.t0 === 4 ? 10 : _context4.t0 === 5 ? 15 : _context4.t0 === 6 ? 17 : 19;
|
|
|
|
|
_context4.next = _context4.t0 === 1 ? 3 : _context4.t0 === 2 ? 7 : _context4.t0 === 3 ? 9 : _context4.t0 === 4 ? 11 : _context4.t0 === 5 ? 16 : _context4.t0 === 6 ? 18 : 20;
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
_payload = {
|
|
|
|
|
@ -3372,6 +3372,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
// _payload.category_id = detailLeftMenus?.course_modules?.filter((v: any) => v.type === "attachment")?.[0]?.["id"]
|
|
|
|
|
// }
|
|
|
|
|
// setAppointId(e);
|
|
|
|
|
console.log('---_payload', _payload);
|
|
|
|
|
dispatch({
|
|
|
|
|
type: "classroomList/setActionTabs",
|
|
|
|
|
payload: {
|
|
|
|
|
@ -3382,8 +3383,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context4.abrupt("break", 19);
|
|
|
|
|
case 6:
|
|
|
|
|
return _context4.abrupt("break", 20);
|
|
|
|
|
case 7:
|
|
|
|
|
// setAppointId(e);
|
|
|
|
|
dispatch({
|
|
|
|
|
type: "classroomList/setActionTabs",
|
|
|
|
|
@ -3400,8 +3401,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context4.abrupt("break", 19);
|
|
|
|
|
case 8:
|
|
|
|
|
return _context4.abrupt("break", 20);
|
|
|
|
|
case 9:
|
|
|
|
|
confirm( /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
|
|
|
children: ["\u9690\u85CF\u540E\u5C06\u4E0D\u518D\u663E\u793A\u6B64\u6A21\u5757,", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u540E\u7EED\u53EF\u5728\u8BFE\u5802\u8BBE\u7F6E\u4E2D\u91CD\u65B0\u52FE\u9009\u6A21\u5757\u6062\u590D\u663E\u793A"]
|
|
|
|
|
}), /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
@ -3429,13 +3430,13 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
})));
|
|
|
|
|
return _context4.abrupt("break", 19);
|
|
|
|
|
case 10:
|
|
|
|
|
_context4.next = 12;
|
|
|
|
|
return _context4.abrupt("break", 20);
|
|
|
|
|
case 11:
|
|
|
|
|
_context4.next = 13;
|
|
|
|
|
return (0,classrooms/* stickyModule */.yd)({
|
|
|
|
|
id: val.id
|
|
|
|
|
});
|
|
|
|
|
case 12:
|
|
|
|
|
case 13:
|
|
|
|
|
res = _context4.sent;
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
message/* default */.ZP.success("操作成功");
|
|
|
|
|
@ -3446,8 +3447,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return _context4.abrupt("break", 19);
|
|
|
|
|
case 15:
|
|
|
|
|
return _context4.abrupt("break", 20);
|
|
|
|
|
case 16:
|
|
|
|
|
confirm( /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
|
|
|
children: ["\u8BE5\u76EE\u5F55\u4E0B\u7684\u5185\u5BB9\u5C06\u88AB\u79FB\u52A8\u5230", (_ref5 = ['exercise', 'board', 'attachment']) !== null && _ref5 !== void 0 && _ref5.includes(val.category_type) ? '父' : '未分配', "\u76EE\u5F55,", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u5220\u9664?"]
|
|
|
|
|
}), /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
|
|
@ -3498,8 +3499,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}, _callee3);
|
|
|
|
|
})));
|
|
|
|
|
return _context4.abrupt("break", 19);
|
|
|
|
|
case 17:
|
|
|
|
|
return _context4.abrupt("break", 20);
|
|
|
|
|
case 18:
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'classroomList/setActionTabs',
|
|
|
|
|
payload: {
|
|
|
|
|
@ -3507,8 +3508,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
params: query
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return _context4.abrupt("break", 19);
|
|
|
|
|
case 19:
|
|
|
|
|
return _context4.abrupt("break", 20);
|
|
|
|
|
case 20:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context4.stop();
|
|
|
|
|
}
|
|
|
|
|
|