|
|
|
|
@ -443,11 +443,13 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var PublishShixun = function PublishShixun(_ref) {
|
|
|
|
|
var _actionTabs$selectArr, _actionTabs$selectArr2;
|
|
|
|
|
var classroomList = _ref.classroomList,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
dispatch = _ref.dispatch;
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
user = _ref.user;
|
|
|
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
|
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
|
|
|
var actionTabs = classroomList.actionTabs;
|
|
|
|
|
@ -458,13 +460,15 @@ var PublishShixun = function PublishShixun(_ref) {
|
|
|
|
|
return current && current < dayjs_min_default()().startOf('day');
|
|
|
|
|
};
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'classroomList/getCourseGroups',
|
|
|
|
|
payload: {
|
|
|
|
|
id: params.id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}, [classroomList.name]);
|
|
|
|
|
if ((0,authority/* isAdminOrTeacher */.G5)()) {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'classroomList/getCourseGroups',
|
|
|
|
|
payload: {
|
|
|
|
|
id: params.id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, [user === null || user === void 0 ? void 0 : user.userInfo]);
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
|
|
centered: true,
|
|
|
|
|
title: "\u65B0\u5EFA\u5B50\u76EE\u5F55",
|
|
|
|
|
@ -546,10 +550,12 @@ var PublishShixun = function PublishShixun(_ref) {
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var AddCategory = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
|
|
|
var classroomList = _ref4.classroomList,
|
|
|
|
|
loading = _ref4.loading;
|
|
|
|
|
loading = _ref4.loading,
|
|
|
|
|
user = _ref4.user;
|
|
|
|
|
return {
|
|
|
|
|
classroomList: classroomList,
|
|
|
|
|
loading: loading
|
|
|
|
|
loading: loading,
|
|
|
|
|
user: user
|
|
|
|
|
};
|
|
|
|
|
})(PublishShixun));
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Attachment/components/CategoryRename.tsx
|