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,R,t){var u=t(1413),h=t(67294),T=t(509),f=t(91146),D=function(W,P){return h.createElement(f.Z,(0,u.Z)((0,u.Z)({},W),{},{ref:P,icon:T.Z}))},E=h.forwardRef(D);R.Z=E},47989:function(Y,R,t){t.r(R);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),W=t(90930),P=t(67539),L=t(35312),M=t(66309),V=t(86250),U=t(86738),g=t(67294),x=t(58125),j=t(42767),_=t(85893),m=function(){var q=(0,L.useParams)(),G=q.code,N=(0,g.useRef)();(0,g.useEffect)(function(){var b;(b=N.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)(M.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,_.jsx)(M.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(p){return(0,x.P)(p)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(p){return(0,x.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)(V.Z,{gap:"small",wrap:!0,children:(0,_.jsxs)(_.Fragment,{children:[p.status===0&&(0,_.jsx)(U.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=N.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)(U.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=N.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)(W._z,{children:(0,_.jsx)(P.Z,{actionRef:N,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})})};R.default=m},81072:function(Y,R,t){t.d(R,{fn:function(){return V},pb:function(){return L},wv:function(){return W}});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 W(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 L(g,x){return M.apply(this,arguments)}function M(){return M=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)})),M.apply(this,arguments)}function V(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/queryById",f()({method:"GET",params:f()({},x)},j||{})));case 1:case"end":return m.stop()}},g)})),U.apply(this,arguments)}},86250:function(Y,R,t){t.d(R,{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),W=t(45503);const P=["wrap","nowrap","wrap-reverse"],L=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],M=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],V=(n,s)=>{const r=s.wrap===!0?"wrap":s.wrap;return{[`${n}-wrap-${r}`]:r&&P.includes(r)}},U=(n,s)=>{const r={};return M.forEach(o=>{r[`${n}-align-${o}`]=s.align===o}),r[`${n}-align-stretch`]=!s.align&&!!s.vertical,r},g=(n,s)=>{const r={};return L.forEach(o=>{r[`${n}-justify-${o}`]=s.justify===o}),r};function x(n,s){return T()(Object.assign(Object.assign(Object.assign({},V(n,s)),U(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 M.forEach(o=>{r[`${s}-align-${o}`]={alignItems:o}}),r},G=n=>{const{componentCls:s}=n,r={};return L.forEach(o=>{r[`${s}-justify-${o}`]={justifyContent:o}}),r},N=()=>({});var X=(0,I.I$)("Flex",n=>{const{paddingXS:s,padding:r,paddingLG:o}=n,d=(0,W.TS)(n,{flexGapSM:s,flexGap:r,flexGapLG:o});return[_(d),m(d),k(d),q(d),G(d)]},N,{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,$=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:$,style:z},(0,f.Z)(v,["justify","wrap","align"])),a))})},66309:function(Y,R,t){t.d(R,{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),W=t(45353),P=t(53124),L=t(54548),M=t(10274),V=t(14747),U=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,V.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,L.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,U.TS)(e,{tagFontSize:l,tagLineHeight:(0,L.bf)(a(e.lineHeightSM).mul(l).equal()),tagIconSize:a(i).sub(a(c).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},_=e=>({defaultBg:new M.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(K),z=T()(K,`${K}-checkable`,{[`${K}-checkable-checked`]:S},y==null?void 0:y.className,l,Q,$);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})))}),N=t(98719);const X=e=>(0,N.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:$}=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},$==null?void 0:$.style),S),B=J("tag",i),[de,_e,me]=m(B),fe=T()(B,$==null?void 0:$.className,{[`${B}-${A}`]:te,[`${B}-has-color`]:A&&!te,[`${B}-hidden`]:!z,[`${B}-rtl`]:Q==="rtl",[`${B}-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)($),{closable:!1,closeIconRender:H=>{const Ce=u.createElement("span",{className:`${B}-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,`${B}-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:B}),ae&&u.createElement(n,{key:"status",prefixCls:B}));return de(pe?u.createElement(W.Z,{component:"Tag"},le):le)});o.CheckableTag=G;var d=o}}]);
|
|
|