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