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.
2 lines
2.2 KiB
2 lines
2.2 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[122],{"64fP":function(h,m,e){"use strict";e.r(m);var b=e("DjyN"),f=e("NUBc"),x=e("g9YV"),O=e("wCAj"),y=e("9og8"),d=e("tJVT"),D=e("WmNS"),E=e.n(D),o=e("q1tI"),_=e.n(o),U=e("9ivq"),j=e.n(U),v=e("ErOA"),g=e("9kvl");function R(l){var c=l.user,W=l.dispatch,M=Object(o.useState)(1),p=Object(d.a)(M,2),u=p[0],A=p[1],I=Object(o.useState)([]),P=Object(d.a)(I,2),a=P[0],C=P[1];Object(o.useEffect)(function(){u&&T()},[u]);function T(){return i.apply(this,arguments)}function i(){return i=Object(y.a)(E.a.mark(function n(){var t;return E.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(v.a)("/api/schools/get_department_users.json",{method:"get",params:{page:u,limit:20}});case 2:t=s.sent,t&&C(t);case 4:case"end":return s.stop()}},n)})),i.apply(this,arguments)}var B=[{title:"\u90E8\u95E8\u540D\u79F0",dataIndex:"department_name",key:"department_name",render:function(t,r){return _.a.createElement("span",null,t||"--")}},{title:"\u90AE\u7BB1",dataIndex:"mail",key:"mail",render:function(t,r){return _.a.createElement("span",null,t||"--")}},{title:"\u7535\u8BDD\u53F7\u7801",dataIndex:"phone",key:"phone",render:function(t,r){return _.a.createElement("span",null,t||"--")}},{title:"\u516C\u53F8\u540D\u79F0",dataIndex:"school_name",key:"school_name",render:function(t,r){return _.a.createElement("span",null,t||"--")}},{title:"\u7528\u6237\u540D",dataIndex:"username",key:"username",render:function(t,r){return _.a.createElement("span",null,t||"--")}}];return _.a.createElement("div",{style:{marginBottom:"40px"}},_.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px"}},_.a.createElement("div",{style:{width:"100%",height:"50px",textAlign:"center",fontSize:"30px",lineHeight:"50px",background:"#fff",marginTop:"50px"}},"\u672C\u90E8\u95E8\u4EBA\u5458"),_.a.createElement(O.a,{style:{width:"1200px"},dataSource:a==null?void 0:a.users,columns:B,pagination:!1}),_.a.createElement(f.a,{style:{textAlign:"center",marginTop:"30px"},current:u,defaultPageSize:20,hideOnSinglePage:!0,pageSize:20,showSizeChanger:!1,onChange:function(t){A(t)},total:a==null?void 0:a.user_count})))}m.default=Object(g.a)(function(l){var c=l.user;return{user:c}})(R)},"9ivq":function(h,m,e){}}]);
|