(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{CRnD:function(F,d,t){"use strict";t.r(d);var B=t("DjyN"),R=t("NUBc"),P=t("WmNS"),p=t.n(P),A=t("9og8"),E=t("tJVT"),l=t("q1tI"),e=t.n(l);function D(i){var n=i.item,_=i.type,r=i.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"}},r===1?_+1:_+1+(r-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 v=D,O=t("Ty5D"),j=t("ErOA");function h(i){var n=Object(O.m)(),_=Object(l.useState)(1),r=Object(E.a)(_,2),c=r[0],T=r[1],b=Object(l.useState)(20),f=Object(E.a)(b,2),L=f[0],I=f[1],S=Object(l.useState)(),g=Object(E.a)(S,2),y=g[0],N=g[1],C=Object(l.useState)(),U=Object(E.a)(C,2),a=U[0],M=U[1];return Object(l.useEffect)(function(){function o(){return s.apply(this,arguments)}function s(){return s=Object(A.a)(p.a.mark(function x(){var m;return p.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Object(j.a)("/api/user_agents.json",{method:"get",params:{page:c,per_page:L}});case 2:m=u.sent,m.status===0&&(N(m.data.user_agents),M(m.data));case 4:case"end":return u.stop()}},x)})),s.apply(this,arguments)}o()},[c]),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"}},y&&y.map(function(o,s){return e.a.createElement(v,{page:c,item:o,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,x){return T(s)},total:a&&a.agents_count})):""))}var X=d.default=h}}]);
