"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2722],{15643:function(G,m,_){_.r(m);var D=_(26068),p=_.n(D),f=_(67825),P=_.n(f),O=_(90228),i=_.n(O),b=_(87999),v=_.n(b),x=_(48305),j=_.n(x),A=_(19869),h=_(50959),M=_(98984),I=_(16030),T=_(35384),y=_(52495),t=_(11527),R=["type","defaultRender","formItemProps","fieldProps"],L=function(){var B=(0,h.useRef)(),C=(0,h.useState)([]),c=j()(C,2),W=c[0],K=c[1],U=function(){var u=v()(i()().mark(function d(e){var l,o,s;return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,y.rb)({userName:e});case 2:l=r.sent,o=l.success,s=l.data,s.records.map(function(n){n.userName=n.userName+" "+n.phone}),K(s.records);case 7:case"end":return r.stop()}},d)}));return function(e){return u.apply(this,arguments)}}(),g=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",render:function(d,e){return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{children:["\u7528\u6237ID:",e==null?void 0:e.userId]}),(0,t.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",e==null?void 0:e.userName]}),(0,t.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]}),(0,t.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",e==null?void 0:e.level]})]})},renderFormItem:function(d,e,l){var o=e.type,s=e.defaultRender,a=e.formItemProps,r=e.fieldProps,n=P()(e,R);return(0,t.jsx)(M.Z,p()(p()({},r),{},{allowClear:!0,showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",style:{width:"100%"},filterOption:!1,onSearch:function(E){E&&U(E)},fieldNames:{label:"userName",value:"id"},options:W}))}},{title:"\u7528\u6237\u540D",dataIndex:"userName",valueType:"text",search:!0,hidden:!0},{title:"\u624B\u673A\u53F7",dataIndex:"phone",valueType:"text",search:!0,hidden:!0},{title:"\u589E\u503C\u6536\u76CA",dataIndex:"points2",valueType:"text",search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateTime",valueType:"text",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"text",search:!1}];return(0,t.jsx)(I._z,{children:(0,t.jsx)("div",{style:{width:"100%",float:"right"},children:(0,t.jsx)(T.Z,{actionRef:B,rowKey:"id",search:{labelWidth:120},request:function(){var u=v()(i()().mark(function d(e,l,o){var s,a;return i()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,A.xY)(e);case 2:return s=n.sent,a=s.data,n.abrupt("return",{data:(a==null?void 0:a.records)||[],total:a==null?void 0:a.total});case 5:case"end":return n.stop()}},d)}));return function(d,e,l){return u.apply(this,arguments)}}(),columns:g},"logList")})})};m.default=L}}]);
