dev_local_v5_hhsly
parent
42a7a8d3c1
commit
343613285a
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[120],{EtUn:function(K,y,l){"use strict";l.r(y);var U=l("k16G"),S=l("SIvP"),J=l("lUTK"),p=l("BvKs"),f=l("q1tI"),t=l.n(f),I=l("xJ1k"),u=l.n(I),x=l("9kvl"),C=l("uYtH"),A=p.a.SubMenu,j=function(r){var s,m,h,g,c=r.user,z=r.globalSetting,B=r.exam,n=Object(S.a)(r,["user","globalSetting","exam"]),L=t.a.useState([]),b=Object(U.a)(L,2),P=b[0],v=b[1],N=t.a.useState([]),k=Object(U.a)(N,2),T=k[0],W=k[1],w=B.showMenu;Object(f.useEffect)(function(){var a;if((n==null||((a=n.location)===null||a===void 0)?void 0:a.pathname)==="/exam"){var e;if((c==null||((e=c.userInfo)===null||e===void 0)?void 0:e.identity)==="student"){x.c.replace("/exam/studentClient");return}x.c.replace("/exam/studentManagement")}},[c==null||((s=c.userInfo)===null||s===void 0)?void 0:s.identity,n==null||((m=n.location)===null||m===void 0)?void 0:m.pathname]),Object(f.useEffect)(function(){var a=D(),e=a.filterOpenKeys,i=a.filterSelectedKeys;console.log(D()),v(e),W(i)},[n==null||((h=n.location)===null||h===void 0)?void 0:h.pathname]);var o=[{title:"\u7528\u6237\u7BA1\u7406",key:"1",icon:t.a.createElement("i",{className:"iconfont icon-yonghuguanli"}),children:[{title:"\u5B66\u751F\u7BA1\u7406",key:"/exam/studentManagement"},{title:"\u6559\u5E08\u7BA1\u7406",key:"/exam/teacherManagement"}]},{title:"\u79D1\u76EE\u7BA1\u7406",key:"2",icon:t.a.createElement("i",{className:"iconfont icon-kemuguanli"}),children:[{title:"\u79D1\u76EE\u7BA1\u7406",key:"/exam/subjectManagement"},{title:"\u77E5\u8BC6\u70B9\u7BA1\u7406",key:"/exam/knowledgeManagement"}]},{title:"\u8BD5\u9898\u7BA1\u7406",key:"3",icon:t.a.createElement("i",{className:"iconfont icon-shitiguanli"}),children:[{title:"\u8BD5\u9898\u7BA1\u7406",key:"/exam/questionManagement"},{title:"\u8BD5\u9898\u7EDF\u8BA1",key:"/exam/questionStatistics"}]},{title:"\u8BD5\u5377\u7BA1\u7406",key:"4",icon:t.a.createElement("i",{className:"iconfont icon-shijuanguanli"}),children:[{title:"\u8BD5\u5377\u7BA1\u7406",key:"/exam/exerciseManagement"}]},{title:"\u8003\u8BD5\u7BA1\u7406",key:"5",icon:t.a.createElement("i",{className:"iconfont icon-kaoshiguanli"}),children:[{title:"\u8003\u8BD5\u53D1\u5E03\u7BA1\u7406",key:"/exam/examinationManagement"},{title:"\u8003\u8BD5\u76D1\u63A7",key:"/exam/monitoring"},{title:"\u8003\u8BD5\u8BC4\u9605",key:"/exam/exerciserevivw"}]},{title:"\u7EDF\u8BA1\u5206\u6790",key:"6",icon:t.a.createElement("i",{className:"iconfont icon-tongji4"}),children:[{title:"\u6210\u7EE9\u5206\u6790",key:"/exam/gradeAnalyzing"},{title:"\u9898\u578B\u5206\u6790",key:"/exam/questionAnalyzing"}]}],D=function(){for(var e,i=n==null||((e=n.location)===null||e===void 0)?void 0:e.pathname,O=[],M=[],_=0;_<o.length;_++){var R;if((R=o[_].children)!==null&&R!==void 0&&R.length){for(var E=0;E<o[_].children.length;E++)if(i.includes(o[_].children[E].key))return O=[o[_].key],M=[o[_].children[E].key],{filterOpenKeys:O,filterSelectedKeys:M}}}return{filterOpenKeys:O,filterSelectedKeys:M}},$=function(e){if(console.log(P,e,44),P[0]===e[0]){if(e.length===2){v([e[1]]);return}v([]);return}v(e)};return t.a.createElement("div",{className:u.a.wrap},w&&(n==null||((g=n.location)===null||g===void 0)?void 0:g.pathname)!=="/exam"&&t.a.createElement("div",{className:u.a.left},t.a.createElement(p.a,{mode:"inline",selectedKeys:T,openKeys:P,onOpenChange:$,inlineIndent:34,className:u.a.menu,expandIcon:function(e){return e.isOpen?t.a.createElement("span",{className:"icon-shouqi custom-icon"}):t.a.createElement("span",{className:"icon-xiala2 custom-icon"})}},o.map(function(a){var e;return t.a.createElement(A,{key:a.key,icon:a.icon,title:a.title},a.children&&((e=a.children)===null||e===void 0?void 0:e.map(function(i){return t.a.createElement(p.a.Item,{key:i.key},t.a.createElement(C.Link,{to:i.key},i.title))})))}))),t.a.createElement("div",{className:u.a.right},n.children))};y.default=Object(x.a)(function(d){var r=d.globalSetting,s=d.user,m=d.exam;return{user:s,globalSetting:r,exam:m}})(j)},xJ1k:function(K,y,l){K.exports={flex_box_center:"flex_box_center___ymkLj",flex_space_between:"flex_space_between___3uBu8",flex_box_vertical_center:"flex_box_vertical_center___m2El3",flex_box_center_end:"flex_box_center_end___2RCrk",flex_box_column:"flex_box_column___2VvBq",wrap:"wrap___25-2X",left:"left___F9fEn",menu:"menu___1E1Fo",right:"right___1cCpq"}}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[120],{EtUn:function(K,y,l){"use strict";l.r(y);var U=l("k16G"),S=l("SIvP"),J=l("lUTK"),p=l("BvKs"),f=l("q1tI"),t=l.n(f),I=l("xJ1k"),u=l.n(I),x=l("9kvl"),C=l("uYtH"),A=p.a.SubMenu,j=function(r){var s,m,h,g,c=r.user,z=r.globalSetting,B=r.exam,n=Object(S.a)(r,["user","globalSetting","exam"]),L=t.a.useState([]),b=Object(U.a)(L,2),P=b[0],v=b[1],N=t.a.useState([]),k=Object(U.a)(N,2),T=k[0],W=k[1],w=B.showMenu;Object(f.useEffect)(function(){var a;if((n==null||((a=n.location)===null||a===void 0)?void 0:a.pathname)==="/exam"){var e;if((c==null||((e=c.userInfo)===null||e===void 0)?void 0:e.identity)==="student"){x.c.replace("/exam/studentClient");return}x.c.replace("/exam/studentManagement")}},[c==null||((s=c.userInfo)===null||s===void 0)?void 0:s.identity,n==null||((m=n.location)===null||m===void 0)?void 0:m.pathname]),Object(f.useEffect)(function(){var a=D(),e=a.filterOpenKeys,i=a.filterSelectedKeys;console.log(D()),v(e),W(i)},[n==null||((h=n.location)===null||h===void 0)?void 0:h.pathname]);var o=[{title:"\u7528\u6237\u7BA1\u7406",key:"1",icon:t.a.createElement("i",{className:"iconfont icon-yonghuguanli"}),children:[{title:"\u5B66\u751F\u7BA1\u7406",key:"/exam/studentManagement"},{title:"\u6559\u5E08\u7BA1\u7406",key:"/exam/teacherManagement"}]},{title:"\u79D1\u76EE\u7BA1\u7406",key:"2",icon:t.a.createElement("i",{className:"iconfont icon-kemuguanli"}),children:[{title:"\u79D1\u76EE\u7BA1\u7406",key:"/exam/subjectManagement"},{title:"\u77E5\u8BC6\u70B9\u7BA1\u7406",key:"/exam/knowledgeManagement"}]},{title:"\u8BD5\u9898\u7BA1\u7406",key:"3",icon:t.a.createElement("i",{className:"iconfont icon-shitiguanli"}),children:[{title:"\u8BD5\u9898\u7BA1\u7406",key:"/exam/questionManagement"},{title:"\u8BD5\u9898\u7EDF\u8BA1",key:"/exam/questionStatistics"}]},{title:"\u8BD5\u5377\u7BA1\u7406",key:"4",icon:t.a.createElement("i",{className:"iconfont icon-shijuanguanli"}),children:[{title:"\u8BD5\u5377\u7BA1\u7406",key:"/exam/exerciseManagement"}]},{title:"\u8003\u8BD5\u7BA1\u7406",key:"5",icon:t.a.createElement("i",{className:"iconfont icon-kaoshiguanli"}),children:[{title:"\u8003\u8BD5\u53D1\u5E03\u7BA1\u7406",key:"/exam/examinationManagement"},{title:"\u8003\u8BD5\u76D1\u63A7",key:"/exam/monitoring"},{title:"\u8003\u8BD5\u8BC4\u9605",key:"/exam/exerciserevivw"}]},{title:"\u7EDF\u8BA1\u5206\u6790",key:"6",icon:t.a.createElement("i",{className:"iconfont icon-tongji4"}),children:[{title:"\u6210\u7EE9\u5206\u6790",key:"/exam/gradeAnalyzing"},{title:"\u9898\u578B\u5206\u6790",key:"/exam/questionAnalyzing"},{title:"\u8BD5\u9898\u5206\u6790",key:"/exam/subjectAnalyzing"}]}],D=function(){for(var e,i=n==null||((e=n.location)===null||e===void 0)?void 0:e.pathname,O=[],M=[],_=0;_<o.length;_++){var R;if((R=o[_].children)!==null&&R!==void 0&&R.length){for(var E=0;E<o[_].children.length;E++)if(i.includes(o[_].children[E].key))return O=[o[_].key],M=[o[_].children[E].key],{filterOpenKeys:O,filterSelectedKeys:M}}}return{filterOpenKeys:O,filterSelectedKeys:M}},$=function(e){if(console.log(P,e,44),P[0]===e[0]){if(e.length===2){v([e[1]]);return}v([]);return}v(e)};return t.a.createElement("div",{className:u.a.wrap},w&&(n==null||((g=n.location)===null||g===void 0)?void 0:g.pathname)!=="/exam"&&t.a.createElement("div",{className:u.a.left},t.a.createElement(p.a,{mode:"inline",selectedKeys:T,openKeys:P,onOpenChange:$,inlineIndent:34,className:u.a.menu,expandIcon:function(e){return e.isOpen?t.a.createElement("span",{className:"icon-shouqi custom-icon"}):t.a.createElement("span",{className:"icon-xiala2 custom-icon"})}},o.map(function(a){var e;return t.a.createElement(A,{key:a.key,icon:a.icon,title:a.title},a.children&&((e=a.children)===null||e===void 0?void 0:e.map(function(i){return t.a.createElement(p.a.Item,{key:i.key},t.a.createElement(C.Link,{to:i.key},i.title))})))}))),t.a.createElement("div",{className:u.a.right},n.children))};y.default=Object(x.a)(function(d){var r=d.globalSetting,s=d.user,m=d.exam;return{user:s,globalSetting:r,exam:m}})(j)},xJ1k:function(K,y,l){K.exports={flex_box_center:"flex_box_center___ymkLj",flex_space_between:"flex_space_between___3uBu8",flex_box_vertical_center:"flex_box_vertical_center___m2El3",flex_box_center_end:"flex_box_center_end___2RCrk",flex_box_column:"flex_box_column___2VvBq",wrap:"wrap___25-2X",left:"left___F9fEn",menu:"menu___1E1Fo",right:"right___1cCpq"}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue