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
12 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{40110:function(ee,$,n){var d=n(1413),T=n(67294),b=n(509),_=n(91146),S=function(R,P){return T.createElement(_.Z,(0,d.Z)((0,d.Z)({},R),{},{ref:P,icon:b.Z}))},E=T.forwardRef(S);$.Z=E},47989:function(ee,$,n){n.r($);var d=n(97857),T=n.n(d),b=n(15009),_=n.n(b),S=n(99289),E=n.n(S),D=n(81072),R=n(90930),P=n(67539),A=n(35312),U=n(66309),H=n(86250),F=n(86738),M=n(67294),V=n(58125),W=n(42767),f=n(85893),z=function(){var k=(0,A.useParams)(),w=k.code,B=(0,M.useRef)();(0,M.useEffect)(function(){var p;(p=B.current)===null||p===void 0||p.reload()},[w]);var X=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(m,h){return(0,f.jsx)(W.Z,{data:h})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount",hideInSearch:!0},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(m){return m?(0,f.jsx)(U.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,f.jsx)(U.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(m){return(0,V.P)(m)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(m){return(0,V.D)(m)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(m){return(0,f.jsx)(H.Z,{gap:"small",wrap:!0,children:(0,f.jsxs)(f.Fragment,{children:[m.status===0&&(0,f.jsx)(F.Z,{title:"\u5C01\u7981\u7528\u6237",description:"\u5C01\u7981\u540E\u7528\u6237\u5C06\u65E0\u6CD5\u767B\u5F55\u3001\u65E0\u6CD5\u83B7\u53D6\u6536\u76CA",onConfirm:E()(_()().mark(function h(){var t;return _()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,D.wv)({userId:m.id||0,status:-1});case 2:(t=B.current)===null||t===void 0||t.reload();case 3:case"end":return r.stop()}},h)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,f.jsx)("a",{children:"\u5C01\u7981"})}),m.status===-1&&(0,f.jsx)(F.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:E()(_()().mark(function h(){var t;return _()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,D.wv)({userId:m.id||0,status:0});case 2:(t=B.current)===null||t===void 0||t.reload();case 3:case"end":return r.stop()}},h)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,f.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,f.jsx)(R._z,{children:(0,f.jsx)(P.Z,{actionRef:B,request:function(){var p=E()(_()().mark(function m(h){var t,l,r;return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,D.pb)(T()(T()({},h),{},{appCode:w}));case 2:return r=u.sent,u.abrupt("return",{data:(t=r.data)===null||t===void 0?void 0:t.data,total:(l=r.data)===null||l===void 0?void 0:l.total,success:!0});case 4:case"end":return u.stop()}},m)}));return function(m){return p.apply(this,arguments)}}(),columns:X})})};$.default=z},86250:function(ee,$,n){n.d($,{Z:function(){return h}});var d=n(67294),T=n(93967),b=n.n(T),_=n(98423),S=n(98065),E=n(53124),D=n(91945),R=n(45503);const P=["wrap","nowrap","wrap-reverse"],A=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],U=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],H=(t,l)=>{const r=l.wrap===!0?"wrap":l.wrap;return{[`${t}-wrap-${r}`]:r&&P.includes(r)}},F=(t,l)=>{const r={};return U.forEach(o=>{r[`${t}-align-${o}`]=l.align===o}),r[`${t}-align-stretch`]=!l.align&&!!l.vertical,r},M=(t,l)=>{const r={};return A.forEach(o=>{r[`${t}-justify-${o}`]=l.justify===o}),r};function V(t,l){return b()(Object.assign(Object.assign(Object.assign({},H(t,l)),F(t,l)),M(t,l)))}var W=V;const f=t=>{const{componentCls:l}=t;return{[l]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},z=t=>{const{componentCls:l}=t;return{[l]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},Y=t=>{const{componentCls:l}=t,r={};return P.forEach(o=>{r[`${l}-wrap-${o}`]={flexWrap:o}}),r},k=t=>{const{componentCls:l}=t,r={};return U.forEach(o=>{r[`${l}-align-${o}`]={alignItems:o}}),r},w=t=>{const{componentCls:l}=t,r={};return A.forEach(o=>{r[`${l}-justify-${o}`]={justifyContent:o}}),r},B=()=>({});var X=(0,D.I$)("Flex",t=>{const{paddingXS:l,padding:r,paddingLG:o}=t,u=(0,R.TS)(t,{flexGapSM:l,flexGap:r,flexGapLG:o});return[f(u),z(u),Y(u),k(u),w(u)]},B,{resetStyle:!1}),p=function(t,l){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&l.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(t);u<o.length;u++)l.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(t,o[u])&&(r[o[u]]=t[o[u]]);return r},h=d.forwardRef((t,l)=>{const{prefixCls:r,rootClassName:o,className:u,style:e,flex:c,gap:i,children:a,vertical:s=!1,component:x="div"}=t,g=p(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:I,getPrefixCls:L}=d.useContext(E.E_),C=L("flex",r),[N,j,J]=X(C),Q=s!=null?s:v==null?void 0:v.vertical,y=b()(u,o,v==null?void 0:v.className,C,j,J,W(C,t),{[`${C}-rtl`]:I==="rtl",[`${C}-gap-${i}`]:(0,S.n)(i),[`${C}-vertical`]:Q}),K=Object.assign(Object.assign({},v==null?void 0:v.style),e);return c&&(K.flex=c),i&&!(0,S.n)(i)&&(K.gap=i),N(d.createElement(x,Object.assign({ref:l,className:y,style:K},(0,_.Z)(g,["justify","wrap","align"])),a))})},66309:function(ee,$,n){n.d($,{Z:function(){return u}});var d=n(67294),T=n(93967),b=n.n(T),_=n(98423),S=n(98787),E=n(69760),D=n(96159),R=n(45353),P=n(53124),A=n(54548),U=n(10274),H=n(14747),F=n(45503),M=n(91945);const V=e=>{const{paddingXXS:c,lineWidth:i,tagPaddingHorizontal:a,componentCls:s,calc:x}=e,g=x(a).sub(i).equal(),v=x(c).sub(i).equal();return{[s]:Object.assign(Object.assign({},(0,H.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:g,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,A.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${s}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${s}-close-icon`]:{marginInlineStart:v,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${s}-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(${s}-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:g}}),[`${s}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},W=e=>{const{lineWidth:c,fontSizeIcon:i,calc:a}=e,s=e.fontSizeSM;return(0,F.TS)(e,{tagFontSize:s,tagLineHeight:(0,A.bf)(a(e.lineHeightSM).mul(s).equal()),tagIconSize:a(i).sub(a(c).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},f=e=>({defaultBg:new U.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var z=(0,M.I$)("Tag",e=>{const c=W(e);return V(c)},f),Y=function(e,c){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)c.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(i[a[s]]=e[a[s]]);return i},w=d.forwardRef((e,c)=>{const{prefixCls:i,style:a,className:s,checked:x,onChange:g,onClick:v}=e,I=Y(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:L,tag:C}=d.useContext(P.E_),N=q=>{g==null||g(!x),v==null||v(q)},j=L("tag",i),[J,Q,y]=z(j),K=b()(j,`${j}-checkable`,{[`${j}-checkable-checked`]:x},C==null?void 0:C.className,s,Q,y);return J(d.createElement("span",Object.assign({},I,{ref:c,style:Object.assign(Object.assign({},a),C==null?void 0:C.style),className:K,onClick:N})))}),B=n(98719);const X=e=>(0,B.Z)(e,(c,i)=>{let{textColor:a,lightBorderColor:s,lightColor:x,darkColor:g}=i;return{[`${e.componentCls}${e.componentCls}-${c}`]:{color:a,background:x,borderColor:s,"&-inverse":{color:e.colorTextLightSolid,background:g,borderColor:g},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var p=(0,M.bk)(["Tag","preset"],e=>{const c=W(e);return X(c)},f);function m(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const h=(e,c,i)=>{const a=m(i);return{[`${e.componentCls}${e.componentCls}-${c}`]:{color:e[`color${i}`],background:e[`color${a}Bg`],borderColor:e[`color${a}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var t=(0,M.bk)(["Tag","status"],e=>{const c=W(e);return[h(c,"success","Success"),h(c,"processing","Info"),h(c,"error","Error"),h(c,"warning","Warning")]},f),l=function(e,c){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)c.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(i[a[s]]=e[a[s]]);return i};const o=d.forwardRef((e,c)=>{const{prefixCls:i,className:a,rootClassName:s,style:x,children:g,icon:v,color:I,onClose:L,bordered:C=!0,visible:N}=e,j=l(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:J,direction:Q,tag:y}=d.useContext(P.E_),[K,q]=d.useState(!0),ie=(0,_.Z)(j,["closeIcon","closable"]);d.useEffect(()=>{N!==void 0&&q(N)},[N]);const re=(0,S.o2)(I),ae=(0,S.yT)(I),te=re||ae,de=Object.assign(Object.assign({backgroundColor:I&&!te?I:void 0},y==null?void 0:y.style),x),O=J("tag",i),[ue,fe,me]=z(O),ge=b()(O,y==null?void 0:y.className,{[`${O}-${I}`]:te,[`${O}-has-color`]:I&&!te,[`${O}-hidden`]:!K,[`${O}-rtl`]:Q==="rtl",[`${O}-borderless`]:!C},a,s,fe,me),le=G=>{G.stopPropagation(),L==null||L(G),!G.defaultPrevented&&q(!1)},[,ve]=(0,E.Z)((0,E.w)(e),(0,E.w)(y),{closable:!1,closeIconRender:G=>{const he=d.createElement("span",{className:`${O}-close-icon`,onClick:le},G);return(0,D.wm)(G,he,Z=>({onClick:ce=>{var ne;(ne=Z==null?void 0:Z.onClick)===null||ne===void 0||ne.call(Z,ce),le(ce)},className:b()(Z==null?void 0:Z.className,`${O}-close-icon`)}))}}),Ce=typeof j.onClick=="function"||g&&g.type==="a",oe=v||null,pe=oe?d.createElement(d.Fragment,null,oe,g&&d.createElement("span",null,g)):g,se=d.createElement("span",Object.assign({},ie,{ref:c,className:ge,style:de}),pe,ve,re&&d.createElement(p,{key:"preset",prefixCls:O}),ae&&d.createElement(t,{key:"status",prefixCls:O}));return ue(Ce?d.createElement(R.Z,{component:"Tag"},se):se)});o.CheckableTag=w;var u=o}}]);