(window.webpackJsonp=window.webpackJsonp||[]).push([[120],{CRnD:function(M,f,t){"use strict";t.r(f);var B=t("Rbwl"),R=t("hTF7"),P=t("VBJJ"),m=t.n(P),A=t("z3+T"),_=t("GZha"),r=t("ZZRV"),e=t.n(r);function v(E){var n=E.item,i=E.type,l=E.page;return e.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"}},e.a.createElement("span",{style:{flex:"1"}},l===1?i+1:i+1+(l-1)*20),e.a.createElement("span",{style:{flex:"1"}},n.login||"--"),e.a.createElement("span",{style:{flex:"2"}},n.name||"--"),e.a.createElement("span",{style:{flex:"2"}},n.register_info||"--"),e.a.createElement("span",{style:{flex:"1"}},n.competition_info||"--"),e.a.createElement("span",{style:{flex:"2"}},n.ip||"--"),e.a.createElement("span",{style:{flex:"2"}},n.username||"--"))}var D=v,O=t("q5+0"),h=t("ErOA");function T(E){var n=Object(O.m)(),i=Object(r.useState)(1),l=Object(_.a)(i,2),d=l[0],b=l[1],j=Object(r.useState)(20),p=Object(_.a)(j,2),L=p[0],G=p[1],S=Object(r.useState)(),g=Object(_.a)(S,2),U=g[0],N=g[1],C=Object(r.useState)(),x=Object(_.a)(C,2),a=x[0],F=x[1];return Object(r.useEffect)(function(){function c(){return s.apply(this,arguments)}function s(){return s=Object(A.a)(m.a.mark(function y(){var o;return m.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Object(h.a)("/api/user_agents.json",{method:"get",params:{page:d,per_page:L}});case 2:o=u.sent,o.status===0&&(N(o.data.user_agents),F(o.data));case 4:case"end":return u.stop()}},y)})),s.apply(this,arguments)}c()},[d]),e.a.createElement("div",{className:"edu-container minH500"},e.a.createElement("div",{className:"educontent  mb20 persmstyle",style:{width:"1200px",marginTop:"26px"}},e.a.createElement("div",{style:{display:"flex",background:"#ffffff",height:"60px",alignItems:"center",padding:"0px 15px"}},e.a.createElement("span",null,"\u5F15\u6D41\u603B\u4EBA\u6570\uFF1A",a&&a.agents_count||"0"),e.a.createElement("span",{style:{marginLeft:"20px"}},"\u7ADE\u8D5B\u6210\u529F\u62A5\u540D\uFF1A",a&&a.action_count||"0")),e.a.createElement("div",{style:{marginTop:"1px",background:"#ffffff"}},e.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"}},e.a.createElement("span",{style:{flex:"1"}},"\u5E8F\u53F7"),e.a.createElement("span",{style:{flex:"1"}},"\u4EE3\u7406\u4EBA\u767B\u5F55\u540D"),e.a.createElement("span",{style:{flex:"2"}},"\u4EE3\u7406\u4EBA\u59D3\u540D"),e.a.createElement("span",{style:{flex:"2"}},"\u6CE8\u518C\u60C5\u51B5"),e.a.createElement("span",{style:{flex:"1"}},"\u7ADE\u8D5B\u62A5\u540D"),e.a.createElement("span",{style:{flex:"2"}},"IP"),e.a.createElement("span",{style:{flex:"2"}},"\u5F15\u6D41\u4EBA\u59D3\u540D")),e.a.createElement("div",{style:{border:"1px solid #fafafa",minHeight:"400px"}},U&&U.map(function(c,s){return e.a.createElement(D,{page:d,item:c,type:s})}))),a&&a.agents_count>20?e.a.createElement("div",{style:{justifyContent:"center",display:"flex",marginTop:"20px"}},e.a.createElement(R.a,{defaultCurrent:1,defaultPageSize:20,onChange:function(s,y){return b(s)},total:a&&a.agents_count})):""))}var X=f.default=T}}]);
