"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4766],{97083:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});var i=t(79800),a=t.n(i),l=t(59301),o=t(49389),s=t(39647),r=t.n(s),c="menuWrap___dJHW2",u="nav___nxA0m",d="active___e5byT",g=t(37712),f=["userDetail","user","globalSetting","loading","dispatch"],_=function(e){return e.College="college",e.Student="student",e}(_||{}),h=(0,o.connect)((function(e){var n=e.user,t=e.userDetail,i=e.loading;return{user:n,userDetail:t,globalSetting:e.globalSetting,loading:i.models.index}}))((function(e){e.userDetail,e.user,e.globalSetting,e.loading,e.dispatch,r()(e,f);var n=(0,o.useLocation)(),t=(0,l.useState)(),i=a()(t,2),s=i[0],h=i[1];return(0,l.useEffect)((function(){var e,t=null===(e=n.pathname.split("/"))||void 0===e?void 0:e[2];h(t||_.College)}),[n.pathname]),(0,g.jsx)("div",{className:c,children:(0,g.jsxs)("div",{className:u,children:[(0,g.jsxs)(o.Link,{to:"/administration/college",onClick:function(){return h(_.College)},className:s===_.College?d:"",children:[(0,g.jsx)("i",{className:"iconfont icon-xueyuanguanli"}),"学院管理"]}),(0,g.jsxs)(o.Link,{to:"/administration/student",onClick:function(){return h(_.Student)},className:s===_.Student?d:"",children:[(0,g.jsx)("i",{className:"iconfont icon-xueshengguanli"}),"学生管理"]})]})})})),m="content___QG_E5",v="leftBox___aL8K5",x="leftWrap___ga_2r",p="rightBox___i71jY",j="rightWrap___ov0Lw",S="hiddenBar___iIalG",b=(0,o.connect)((function(e){var n=e.userDetail,t=e.loading;return{userDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){e.userDetail,e.globalSetting,e.loading;var n,t=e.dispatch,i=(0,o.useParams)(),s=(0,l.useRef)(),r=(0,l.useState)(!1),c=a()(r,2),u=c[0],d=c[1];(0,l.useEffect)((function(){var e;"/administration"===(null===(e=location)||void 0===e?void 0:e.pathname)&&o.history.replace("/administration/college"),document.title="高校管理"}),[null===(n=location)||void 0===n?void 0:n.pathname]),(0,l.useEffect)((function(){return s.current=i.username,t({type:"globalSetting/footerToggle",payload:!1}),function(){t({type:"globalSetting/footerToggle",payload:!0})}}),[i]);return(0,g.jsxs)("div",{className:m,children:[(0,g.jsx)("div",{className:v,children:(0,g.jsx)("div",{className:"".concat(x," ").concat(u?"":S),onMouseEnter:function(e){var n=e.currentTarget;n.scrollHeight>n.clientHeight&&d(!0)},onMouseLeave:function(){return d(!1)},children:(0,g.jsx)(h,{})})}),(0,g.jsx)("div",{className:p,children:(0,g.jsx)("div",{className:j,children:(0,g.jsx)(o.Outlet,{})})})]})}))}}]);