You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
190 lines
8.7 KiB
190 lines
8.7 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[4766],{
|
|
|
|
/***/ 88285:
|
|
/*!********************************************************!*\
|
|
!*** ./src/pages/Administration/index.tsx + 3 modules ***!
|
|
\********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"default": function() { return /* binding */ Administration; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(25789);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
;// CONCATENATED MODULE: ./src/pages/Administration/Menus/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Menusmodules = ({"flex_box_center":"flex_box_center___TmpWE","flex_space_between":"flex_space_between___Bjf8w","flex_box_vertical_center":"flex_box_vertical_center___nuFqj","flex_box_center_end":"flex_box_center_end___RYxm7","flex_box_column":"flex_box_column___syP9g","flex-col":"flex-col___iY_09","flex-row":"flex-row___CdoVB","justify-start":"justify-start___enu4A","justify-center":"justify-center____AKf9","justify-end":"justify-end___vLn_p","justify-evenly":"justify-evenly___fNLn6","justify-around":"justify-around___evZMd","justify-between":"justify-between___uwmIg","align-start":"align-start___gRKQE","align-center":"align-center___iGqrA","align-end":"align-end___pov73","menuWrap":"menuWrap___dJHW2","crumbs":"crumbs____3ctW","info":"info___Hujtz","avatar":"avatar___dZUkn","name":"name___P95aR","approve":"approve___s79Kr","number":"number___hl4qV","attendance":"attendance___o1MZq","btn":"btn___I4UFW","nav":"nav___nxA0m","active":"active___e5byT"});
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Administration/Menus/index.tsx
|
|
|
|
|
|
var _excluded = ["userDetail", "user", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
var NavType = /*#__PURE__*/function (NavType) {
|
|
NavType["College"] = "college";
|
|
NavType["Student"] = "student";
|
|
return NavType;
|
|
}(NavType || {});
|
|
var Banner = function Banner(_ref) {
|
|
var userDetail = _ref.userDetail,
|
|
user = _ref.user,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
var _useState = (0,_react_17_0_2_react.useState)(),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
activeKey = _useState2[0],
|
|
setActiveKey = _useState2[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _location$pathname$sp;
|
|
var active = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
|
|
setActiveKey(active || NavType.College);
|
|
}, [location.pathname]);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Menusmodules.menuWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Menusmodules.nav,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
to: "/administration/college",
|
|
onClick: function onClick() {
|
|
return setActiveKey(NavType.College);
|
|
},
|
|
className: activeKey === NavType.College ? Menusmodules.active : '',
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xueyuanguanli"
|
|
}), "\u5B66\u9662\u7BA1\u7406"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
to: "/administration/student",
|
|
onClick: function onClick() {
|
|
return setActiveKey(NavType.Student);
|
|
},
|
|
className: activeKey === NavType.Student ? Menusmodules.active : '',
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xueshengguanli"
|
|
}), "\u5B66\u5458\u7BA1\u7406"]
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var Menus = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var user = _ref2.user,
|
|
userDetail = _ref2.userDetail,
|
|
loading = _ref2.loading,
|
|
globalSetting = _ref2.globalSetting;
|
|
return {
|
|
user: user,
|
|
userDetail: userDetail,
|
|
globalSetting: globalSetting,
|
|
loading: loading.models.index
|
|
};
|
|
})(Banner));
|
|
;// CONCATENATED MODULE: ./src/pages/Administration/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Administrationmodules = ({"flex_box_center":"flex_box_center___trUXH","flex_space_between":"flex_space_between___rHQmt","flex_box_vertical_center":"flex_box_vertical_center___sEm8i","flex_box_center_end":"flex_box_center_end___S8dYj","flex_box_column":"flex_box_column___HtszC","flex-col":"flex-col___tQv1V","flex-row":"flex-row___EanyA","justify-start":"justify-start___qraoO","justify-center":"justify-center___jYpVB","justify-end":"justify-end___fQmrC","justify-evenly":"justify-evenly___YyLTo","justify-around":"justify-around___DzgzG","justify-between":"justify-between___FpAA_","align-start":"align-start___OmrKb","align-center":"align-center____AVyq","align-end":"align-end___DUyqp","content":"content___QG_E5","leftBox":"leftBox___aL8K5","leftWrap":"leftWrap___ga_2r","rightBox":"rightBox___i71jY","rightWrap":"rightWrap___ov0Lw","hiddenBar":"hiddenBar___iIalG"});
|
|
;// CONCATENATED MODULE: ./src/pages/Administration/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var UserDetailPage = function UserDetailPage(_ref) {
|
|
var _location2;
|
|
var userDetail = _ref.userDetail,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var username = (0,_react_17_0_2_react.useRef)();
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
overflow = _useState2[0],
|
|
setOverflow = _useState2[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _location;
|
|
//重定向页面
|
|
if (((_location = location) === null || _location === void 0 ? void 0 : _location.pathname) === '/administration') {
|
|
_umi_production_exports.history.replace('/administration/college');
|
|
}
|
|
document.title = '高校管理';
|
|
}, [(_location2 = location) === null || _location2 === void 0 ? void 0 : _location2.pathname]);
|
|
// useEffect(() => {
|
|
// document.title = '高校管理';
|
|
// });
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
username.current = params.username;
|
|
dispatch({
|
|
type: 'globalSetting/footerToggle',
|
|
payload: false
|
|
});
|
|
return function () {
|
|
dispatch({
|
|
type: 'globalSetting/footerToggle',
|
|
payload: true
|
|
});
|
|
};
|
|
}, [params]);
|
|
var handleMouseEnter = function handleMouseEnter(event) {
|
|
var element = event.currentTarget;
|
|
if (element.scrollHeight > element.clientHeight) {
|
|
setOverflow(true);
|
|
}
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Administrationmodules.content,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Administrationmodules.leftBox,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "".concat(Administrationmodules.leftWrap, " ").concat(overflow ? '' : Administrationmodules.hiddenBar),
|
|
onMouseEnter: handleMouseEnter,
|
|
onMouseLeave: function onMouseLeave() {
|
|
return setOverflow(false);
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Menus, {})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Administrationmodules.rightBox,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Administrationmodules.rightWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
})
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Administration = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var userDetail = _ref2.userDetail,
|
|
loading = _ref2.loading,
|
|
globalSetting = _ref2.globalSetting;
|
|
return {
|
|
userDetail: userDetail,
|
|
globalSetting: globalSetting,
|
|
loading: loading.models.index
|
|
};
|
|
})(UserDetailPage));
|
|
|
|
/***/ })
|
|
|
|
}]); |