|
|
|
|
@ -978,7 +978,7 @@ var html2pdf_default = /*#__PURE__*/__webpack_require__.n(html2pdf);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Comment_excluded = ["shixunHomeworks", "globalSetting", "loading", "classroomList", "dispatch"];
|
|
|
|
|
var Comment_excluded = ["shixunHomeworks", "globalSetting", "loading", "classroomList", "dispatch", "user"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -998,12 +998,13 @@ var Comment_excluded = ["shixunHomeworks", "globalSetting", "loading", "classroo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
var _shixunWorkReport$cat, _shixunWorkReport$cat2, _shixunWorkReport$cat3, _shixunWorkReport$cat4, _shixunWorkReport$cat5, _shixunWorkReport$dat, _shixunWorkReport$cat6, _shixunWorkReport$dat2, _shixunWorkReport$dat3, _shixunWorkReport$dat4, _shixunWorkReport$dat5, _shixunWorkReport$dat6, _shixunWorkReport$dat7, _shixunWorkReport$dat8, _shixunWorkReport$dat9, _shixunWorkReport$dat10, _shixunWorkReport$dat11, _shixunWorkReport$dat12, _shixunWorkReport$dat13, _shixunWorkReport$dat14, _shixunWorkReport$dat15, _shixunWorkReport$dat16, _shixunWorkReport$dat17, _shixunWorkReport$dat18, _shixunWorkReport$dat19, _shixunWorkReport$dat21, _shixunWorkReport$dat22, _shixunWorkReport$dat23, _shixunWorkReport$dat24, _shixunWorkReport$dat25, _shixunWorkReport$dat26;
|
|
|
|
|
var _user$userInfo, _shixunWorkReport$cat, _shixunWorkReport$cat2, _shixunWorkReport$cat3, _shixunWorkReport$cat4, _shixunWorkReport$cat5, _shixunWorkReport$dat, _shixunWorkReport$cat6, _shixunWorkReport$dat2, _shixunWorkReport$dat3, _shixunWorkReport$dat4, _shixunWorkReport$dat5, _shixunWorkReport$dat6, _shixunWorkReport$dat7, _shixunWorkReport$dat8, _shixunWorkReport$dat9, _shixunWorkReport$dat10, _shixunWorkReport$dat11, _shixunWorkReport$dat12, _shixunWorkReport$dat13, _shixunWorkReport$dat14, _shixunWorkReport$dat15, _shixunWorkReport$dat16, _shixunWorkReport$dat17, _shixunWorkReport$dat18, _shixunWorkReport$dat19, _shixunWorkReport$dat21, _shixunWorkReport$dat22, _shixunWorkReport$dat23, _shixunWorkReport$dat24, _shixunWorkReport$dat25, _shixunWorkReport$dat26;
|
|
|
|
|
var shixunHomeworks = _ref.shixunHomeworks,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
classroomList = _ref.classroomList,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
user = _ref.user,
|
|
|
|
|
props = objectWithoutProperties_default()(_ref, Comment_excluded);
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()({}, (0,_umi_production_exports.useParams)())),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
@ -1062,12 +1063,6 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
type: 'globalSetting/footerToggle',
|
|
|
|
|
payload: false
|
|
|
|
|
});
|
|
|
|
|
if ((0,authority/* isStudent */.dE)()) dispatch({
|
|
|
|
|
type: 'classroomList/getAssistantPermissions',
|
|
|
|
|
payload: {
|
|
|
|
|
course_id: params.coursesId
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return function () {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'globalSetting/footerToggle',
|
|
|
|
|
@ -1075,6 +1070,16 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if ((0,authority/* isAssistant */.Rm)()) {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: 'classroomList/getAssistantPermissions',
|
|
|
|
|
payload: {
|
|
|
|
|
course_id: params.coursesId
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, [user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login]);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (shixunHomeworks.actionTabs.key === '导出实训报告' && allStudentWorks.length > 0) {
|
|
|
|
|
exportReport('all');
|
|
|
|
|
@ -2106,12 +2111,14 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
var shixunHomeworks = _ref9.shixunHomeworks,
|
|
|
|
|
loading = _ref9.loading,
|
|
|
|
|
globalSetting = _ref9.globalSetting,
|
|
|
|
|
classroomList = _ref9.classroomList;
|
|
|
|
|
classroomList = _ref9.classroomList,
|
|
|
|
|
user = _ref9.user;
|
|
|
|
|
return {
|
|
|
|
|
shixunHomeworks: shixunHomeworks,
|
|
|
|
|
globalSetting: globalSetting,
|
|
|
|
|
loading: loading.effects,
|
|
|
|
|
classroomList: classroomList
|
|
|
|
|
classroomList: classroomList,
|
|
|
|
|
user: user
|
|
|
|
|
};
|
|
|
|
|
})(Comment_ShixunsListPage));
|
|
|
|
|
|