"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4147],{83504:function(J,P,n){n.r(P);var O=n(26068),o=n.n(O),x=n(67825),p=n.n(x),M=n(90228),m=n.n(M),j=n(87999),v=n.n(j),A=n(48305),h=n.n(A),E=n(19869),R=n(92694),f=n(50959),c=n(98984),b=n(50159),B=n(16030),C=n(35384),y=n(49523),L=n(52495),s=n(11527),W=["type","defaultRender","formItemProps","fieldProps"],K=["type","defaultRender","formItemProps","fieldProps"],U=["type","defaultRender","formItemProps","fieldProps"],F=function(){var g=(0,f.useRef)(),S=(0,f.useState)([]),D=h()(S,2),G=D[0],N=D[1],$=(0,f.useState)(null),I=h()($,2),Z=I[0],z=I[1],w=function(){var _=v()(m()().mark(function t(e){var r,a,u;return m()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,L.rb)({userId:e});case 2:r=l.sent,a=r.success,u=r.data,u.records.map(function(d){d.userName=d.userName+" "+d.phone}),N(u.records);case 7:case"end":return l.stop()}},t)}));return function(e){return _.apply(this,arguments)}}(),H=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",render:function(t,e){return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{children:["\u7528\u6237ID:",e==null?void 0:e.userId]}),(0,s.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",e==null?void 0:e.userName]}),(0,s.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]}),(0,s.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",e==null?void 0:e.level]})]})},renderFormItem:function(t,e,r){var a=e.type,u=e.defaultRender,i=e.formItemProps,l=e.fieldProps,d=p()(e,W);return(0,s.jsx)(c.Z,o()(o()({},l),{},{allowClear:!0,showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u6216\u624B\u673A\u53F7",style:{width:"100%"},filterOption:!1,onSearch:function(T){T&&w(T)},fieldNames:{label:"userName",value:"id"},options:G}))}},{title:"\u8BB0\u5F55\u540D\u79F0",dataIndex:"recordName",valueType:"text",search:!1},{title:"\u5F53\u524D\u4F59\u989D",dataIndex:"curPoints",valueType:"text",search:!1},{title:"\u4F59\u989D\u53D8\u52A8",dataIndex:"points",valueType:"text",search:!1},{title:"\u7C7B\u578B",dataIndex:"pointType",valueType:"text",search:!1,render:function(t,e){return t==1?"\u6536\u76CA":"\u4F59\u989D"}},{title:"\u6765\u6E90",dataIndex:"sourceType",valueType:"text",search:!0,render:function(t,e){return(e==null?void 0:e.sourceType)==1?"\u8BA2\u5355":(e==null?void 0:e.sourceType)==2?"\u5145\u7535\u6869\u670D\u52A1\u8D39":(e==null?void 0:e.sourceType)==3?"\u5145\u503C":(e==null?void 0:e.sourceType)==4?"\u63D0\u73B0":"-"},renderFormItem:function(t,e,r){var a=e.type,u=e.defaultRender,i=e.formItemProps,l=e.fieldProps,d=p()(e,K);return(0,s.jsx)(c.Z,o()(o()({},l),{},{allowClear:!0,style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:[{name:"\u8BA2\u5355",id:1},{name:"\u5145\u7535\u6869\u670D\u52A1\u8D39",id:2},{name:"\u5145\u503C",id:3},{name:"\u63D0\u73B0",id:4}]}))}},{title:"\u8BB0\u5F55\u7C7B\u578B",dataIndex:"type",valueType:"text",search:!0,render:function(t,e){var r,a=y;return(r=a.find(function(u){return u.id==e.type}))===null||r===void 0?void 0:r.name},renderFormItem:function(t,e,r){var a=e.type,u=e.defaultRender,i=e.formItemProps,l=e.fieldProps,d=p()(e,U);return(0,s.jsx)(c.Z,o()(o()({},l),{},{allowClear:!0,style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:y}))}},{title:"\u5907\u6CE8",dataIndex:"remarks",valueType:"text",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"dateRange",search:{transform:function(t){return{createTimeBegin:t[0],createTimeEnd:t[1]}}},render:function(t,e){return e==null?void 0:e.createTime}}];return(0,s.jsx)(B._z,{children:(0,s.jsx)("div",{style:{width:"100%",float:"right"},children:(0,s.jsx)(C.Z,{actionRef:g,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[(0,s.jsx)(b.ZP,{type:"primary",onClick:v()(m()().mark(function t(){var e;return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,E.G6)(Z);case 2:e=a.sent,(0,R.u1)(e,"\u79EF\u5206\u8BB0\u5F55");case 4:case"end":return a.stop()}},t)})),children:"\u5BFC\u51FA"})]},request:function(){var _=v()(m()().mark(function t(e,r,a){var u,i;return m()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return z(e),d.next=3,(0,E.I7)(e);case 3:return u=d.sent,i=u.data,d.abrupt("return",{data:(i==null?void 0:i.records)||[],total:i==null?void 0:i.total});case 6:case"end":return d.stop()}},t)}));return function(t,e,r){return _.apply(this,arguments)}}(),columns:H},"logList")})})};P.default=F}}]);
