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.
 
 
 

1 lines
8.1 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{18174:function(re,O,r){r.r(O),r.d(O,{default:function(){return X}});var l=r(15009),m=r.n(l),b=r(97857),d=r.n(b),Z=r(99289),j=r.n(Z),Q=r(90930),J=r(67539),N=r(35312),V=r(7134),W=r(66309),L=r(67294);function K(z,R){return T.apply(this,arguments)}function T(){return T=j()(m()().mark(function z(R,P){return m()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,N.request)("/api/admin/user/list",d()({method:"POST",headers:{"Content-Type":"application/json"},data:R},P||{})));case 1:case"end":return C.stop()}},z)})),T.apply(this,arguments)}var U=r(58125),g=r(85893),B=function(){var R=(0,N.useParams)(),P=R.code,F=(0,L.useRef)();(0,L.useEffect)(function(){var i;(i=F.current)===null||i===void 0||i.reload()},[P]);var C=[{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u6635\u79F0",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(s,p){return s||p.mobile}},{title:"\u5934\u50CF",hideInSearch:!0,dataIndex:"avatar",valueType:"textarea",renderText:function(s){return(0,g.jsx)(V.C,{src:s})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name"},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount"},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",renderText:function(s){return s?(0,g.jsx)(W.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,g.jsx)(W.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",dataIndex:"income",renderText:function(s){return(0,U.P)(s)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",dataIndex:"money",renderText:function(s){return(0,U.D)(s)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}];return(0,g.jsx)(Q._z,{children:(0,g.jsx)(J.Z,{search:!1,actionRef:F,request:function(){var i=j()(m()().mark(function s(p){var H,A,G;return m()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,K(d()(d()({},p),{},{appCode:P}));case 2:return G=h.sent,h.abrupt("return",{data:(H=G.data)===null||H===void 0?void 0:H.data,total:(A=G.data)===null||A===void 0?void 0:A.total,success:!0});case 4:case"end":return h.stop()}},s)}));return function(s){return i.apply(this,arguments)}}(),columns:C})})},X=B},58125:function(re,O,r){r.d(O,{D:function(){return m},P:function(){return l}});var l=function(d){return d?parseFloat((d/1e5).toFixed(2)):0},m=function(d){return d?parseFloat((d/100).toFixed(2)):0}},66309:function(re,O,r){r.d(O,{Z:function(){return h}});var l=r(67294),m=r(93967),b=r.n(m),d=r(98423),Z=r(98787),j=r(69760),Q=r(96159),J=r(45353),N=r(53124),V=r(54548),W=r(10274),L=r(14747),K=r(45503),T=r(91945);const U=e=>{const{paddingXXS:a,lineWidth:o,tagPaddingHorizontal:t,componentCls:n,calc:f}=e,c=f(t).sub(o).equal(),S=f(a).sub(o).equal();return{[n]:Object.assign(Object.assign({},(0,L.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,V.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:S,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},g=e=>{const{lineWidth:a,fontSizeIcon:o,calc:t}=e,n=e.fontSizeSM;return(0,K.TS)(e,{tagFontSize:n,tagLineHeight:(0,V.bf)(t(e.lineHeightSM).mul(n).equal()),tagIconSize:t(o).sub(t(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},B=e=>({defaultBg:new W.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var X=(0,T.I$)("Tag",e=>{const a=g(e);return U(a)},B),z=function(e,a){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)a.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]]);return o},P=l.forwardRef((e,a)=>{const{prefixCls:o,style:t,className:n,checked:f,onChange:c,onClick:S}=e,y=z(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:M,tag:x}=l.useContext(N.E_),D=Y=>{c==null||c(!f),S==null||S(Y)},$=M("tag",o),[k,q,v]=X($),_=b()($,`${$}-checkable`,{[`${$}-checkable-checked`]:f},x==null?void 0:x.className,n,q,v);return k(l.createElement("span",Object.assign({},y,{ref:a,style:Object.assign(Object.assign({},t),x==null?void 0:x.style),className:_,onClick:D})))}),F=r(98719);const C=e=>(0,F.Z)(e,(a,o)=>{let{textColor:t,lightBorderColor:n,lightColor:f,darkColor:c}=o;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:t,background:f,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:c,borderColor:c},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var i=(0,T.bk)(["Tag","preset"],e=>{const a=g(e);return C(a)},B);function s(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const p=(e,a,o)=>{const t=s(o);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${o}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var H=(0,T.bk)(["Tag","status"],e=>{const a=g(e);return[p(a,"success","Success"),p(a,"processing","Info"),p(a,"error","Error"),p(a,"warning","Warning")]},B),A=function(e,a){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)a.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]]);return o};const w=l.forwardRef((e,a)=>{const{prefixCls:o,className:t,rootClassName:n,style:f,children:c,icon:S,color:y,onClose:M,bordered:x=!0,visible:D}=e,$=A(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:q,tag:v}=l.useContext(N.E_),[_,Y]=l.useState(!0),ie=(0,d.Z)($,["closeIcon","closable"]);l.useEffect(()=>{D!==void 0&&Y(D)},[D]);const ne=(0,Z.o2)(y),ae=(0,Z.yT)(y),ee=ne||ae,de=Object.assign(Object.assign({backgroundColor:y&&!ee?y:void 0},v==null?void 0:v.style),f),u=k("tag",o),[ue,fe,ge]=X(u),ve=b()(u,v==null?void 0:v.className,{[`${u}-${y}`]:ee,[`${u}-has-color`]:y&&!ee,[`${u}-hidden`]:!_,[`${u}-rtl`]:q==="rtl",[`${u}-borderless`]:!x},t,n,fe,ge),oe=E=>{E.stopPropagation(),M==null||M(E),!E.defaultPrevented&&Y(!1)},[,me]=(0,j.Z)((0,j.w)(e),(0,j.w)(v),{closable:!1,closeIconRender:E=>{const he=l.createElement("span",{className:`${u}-close-icon`,onClick:oe},E);return(0,Q.wm)(E,he,I=>({onClick:ce=>{var te;(te=I==null?void 0:I.onClick)===null||te===void 0||te.call(I,ce),oe(ce)},className:b()(I==null?void 0:I.className,`${u}-close-icon`)}))}}),Ce=typeof $.onClick=="function"||c&&c.type==="a",le=S||null,pe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",null,c)):c,se=l.createElement("span",Object.assign({},ie,{ref:a,className:ve,style:de}),pe,me,ne&&l.createElement(i,{key:"preset",prefixCls:u}),ae&&l.createElement(H,{key:"status",prefixCls:u}));return ue(Ce?l.createElement(J.Z,{component:"Tag"},se):se)});w.CheckableTag=P;var h=w}}]);