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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{38171:function(Y,$,t){var g=t(55241),C=t(2487),E=t(71230),v=t(7134),M=t(67294),S=t(52043),T=t(58125),u=t(85893),i=function(m){var y=(0,S.E7)(m.data.env);return(0,u.jsx)(g.Z,{content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("p",{children:[(0,u.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,T.P)(m.data.income),"\u5143"]}),(0,u.jsxs)("p",{children:[(0,u.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,T.D)(m.data.realMoney),"\u5143"]}),y.length>0&&(0,u.jsx)(C.Z,{size:"small",header:(0,u.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:y,renderItem:function(O){return(0,u.jsx)(C.Z.Item,{children:O})}})]}),children:(0,u.jsxs)(E.Z,{children:[(0,u.jsx)(v.C,{src:m.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,u.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:y.length>0?"red":""},children:["id:",m.data.id,(0,u.jsx)("br",{}),m.data.nickname||m.data.mobile]})]})})};$.Z=i},18174:function(Y,$,t){t.r($),t.d($,{default:function(){return k}});var g=t(97857),C=t.n(g),E=t(15009),v=t.n(E),M=t(99289),S=t.n(M),T=t(90930),u=t(67539),i=t(35312),x=t(66309),m=t(86250),y=t(86738),N=t(67294);function O(A,B){return Z.apply(this,arguments)}function Z(){return Z=S()(v()().mark(function A(B,L){return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/admin/user/changeStatus",C()({method:"POST",params:C()({},B)},L||{})));case 1:case"end":return n.stop()}},A)})),Z.apply(this,arguments)}function W(A,B){return z.apply(this,arguments)}function z(){return z=S()(v()().mark(function A(B,L){return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/admin/user/list",C()({method:"POST",headers:{"Content-Type":"application/json"},data:B},L||{})));case 1:case"end":return n.stop()}},A)})),z.apply(this,arguments)}var w=t(58125),J=t(38171),b=t(85893),Q=function(){var B=(0,i.useParams)(),L=B.code,j=(0,N.useRef)();(0,N.useEffect)(function(){var o;(o=j.current)===null||o===void 0||o.reload()},[L]);var n=[{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(l,s){return(0,b.jsx)(J.Z,{data:s})}},{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(l){return l?(0,b.jsx)(x.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,b.jsx)(x.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(l){return(0,w.P)(l)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(l){return(0,w.D)(l)}},{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(l){return(0,b.jsx)(m.Z,{gap:"small",wrap:!0,children:(0,b.jsxs)(b.Fragment,{children:[l.status===0&&(0,b.jsx)(y.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:S()(v()().mark(function s(){var d;return v()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,O({userId:l.id||0,status:-1});case 2:(d=j.current)===null||d===void 0||d.reload();case 3:case"end":return a.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,b.jsx)("a",{children:"\u5C01\u7981"})}),l.status===-1&&(0,b.jsx)(y.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:S()(v()().mark(function s(){var d;return v()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,O({userId:l.id||0,status:0});case 2:(d=j.current)===null||d===void 0||d.reload();case 3:case"end":return a.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,b.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,b.jsx)(T._z,{children:(0,b.jsx)(u.Z,{actionRef:j,request:function(){var o=S()(v()().mark(function l(s){var d,e,a;return v()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,W(C()(C()({},s),{},{appCode:L}));case 2:return a=r.sent,r.abrupt("return",{data:(d=a.data)===null||d===void 0?void 0:d.data,total:(e=a.data)===null||e===void 0?void 0:e.total,success:!0});case 4:case"end":return r.stop()}},l)}));return function(l){return o.apply(this,arguments)}}(),columns:n})})},k=Q},52043:function(Y,$,t){t.d($,{E7:function(){return C},FG:function(){return g},RQ:function(){return M},XY:function(){return E},aV:function(){return S},m0:function(){return v}});var g=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},C=function(u){var i=[];if(!u)return i;for(var x=u>>1,m=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],y=0,N=m;y<N.length;y++){var O=N[y];x&1&&i.push(O),x>>=1}return i},E=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},v=function(u){var i=new Date(u),x=i.getFullYear().toString().padStart(4,"0"),m=(i.getMonth()+1).toString().padStart(2,"0"),y=i.getDate().toString().padStart(2,"0");return x+m+y},M=function(u,i){var x=u.toString();return x.padStart(i,"0")},S=function(u){var i=u;return i<1024?i+" B":(i=parseFloat((i/1024).toFixed(2)),i<1024?i+" KB":(i=parseFloat((i/1024).toFixed(2)),i+" MB"))}},58125:function(Y,$,t){t.d($,{D:function(){return C},P:function(){return g}});var g=function(v){return v?parseFloat((v/1e5).toFixed(2)):0},C=function(v){return v?parseFloat((v/100).toFixed(2)):0}},86250:function(Y,$,t){t.d($,{Z:function(){return j}});var g=t(67294),C=t(93967),E=t.n(C),v=t(98423),M=t(98065),S=t(53124),T=t(91945),u=t(45503);const i=["wrap","nowrap","wrap-reverse"],x=["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"],y=(n,o)=>{const l=o.wrap===!0?"wrap":o.wrap;return{[`${n}-wrap-${l}`]:l&&i.includes(l)}},N=(n,o)=>{const l={};return m.forEach(s=>{l[`${n}-align-${s}`]=o.align===s}),l[`${n}-align-stretch`]=!o.align&&!!o.vertical,l},O=(n,o)=>{const l={};return x.forEach(s=>{l[`${n}-justify-${s}`]=o.justify===s}),l};function Z(n,o){return E()(Object.assign(Object.assign(Object.assign({},y(n,o)),N(n,o)),O(n,o)))}var W=Z;const z=n=>{const{componentCls:o}=n;return{[o]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},w=n=>{const{componentCls:o}=n;return{[o]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},J=n=>{const{componentCls:o}=n,l={};return i.forEach(s=>{l[`${o}-wrap-${s}`]={flexWrap:s}}),l},b=n=>{const{componentCls:o}=n,l={};return m.forEach(s=>{l[`${o}-align-${s}`]={alignItems:s}}),l},Q=n=>{const{componentCls:o}=n,l={};return x.forEach(s=>{l[`${o}-justify-${s}`]={justifyContent:s}}),l},k=()=>({});var A=(0,T.I$)("Flex",n=>{const{paddingXS:o,padding:l,paddingLG:s}=n,d=(0,u.TS)(n,{flexGapSM:o,flexGap:l,flexGapLG:s});return[z(d),w(d),J(d),b(d),Q(d)]},k,{resetStyle:!1}),B=function(n,o){var l={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&o.indexOf(s)<0&&(l[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,s=Object.getOwnPropertySymbols(n);d<s.length;d++)o.indexOf(s[d])<0&&Object.prototype.propertyIsEnumerable.call(n,s[d])&&(l[s[d]]=n[s[d]]);return l},j=g.forwardRef((n,o)=>{const{prefixCls:l,rootClassName:s,className:d,style:e,flex:a,gap:f,children:r,vertical:c=!1,component:P="div"}=n,p=B(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:h,direction:R,getPrefixCls:V}=g.useContext(S.E_),I=V("flex",l),[G,U,q]=A(I),_=c!=null?c:h==null?void 0:h.vertical,D=E()(d,s,h==null?void 0:h.className,I,U,q,W(I,n),{[`${I}-rtl`]:R==="rtl",[`${I}-gap-${f}`]:(0,M.n)(f),[`${I}-vertical`]:_}),H=Object.assign(Object.assign({},h==null?void 0:h.style),e);return a&&(H.flex=a),f&&!(0,M.n)(f)&&(H.gap=f),G(g.createElement(P,Object.assign({ref:o,className:D,style:H},(0,v.Z)(p,["justify","wrap","align"])),r))})},66309:function(Y,$,t){t.d($,{Z:function(){return d}});var g=t(67294),C=t(93967),E=t.n(C),v=t(98423),M=t(98787),S=t(69760),T=t(96159),u=t(45353),i=t(53124),x=t(54548),m=t(10274),y=t(14747),N=t(45503),O=t(91945);const Z=e=>{const{paddingXXS:a,lineWidth:f,tagPaddingHorizontal:r,componentCls:c,calc:P}=e,p=P(r).sub(f).equal(),h=P(a).sub(f).equal();return{[c]:Object.assign(Object.assign({},(0,y.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:p,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,x.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${c}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${c}-close-icon`]:{marginInlineStart:h,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${c}-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(${c}-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:p}}),[`${c}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},W=e=>{const{lineWidth:a,fontSizeIcon:f,calc:r}=e,c=e.fontSizeSM;return(0,N.TS)(e,{tagFontSize:c,tagLineHeight:(0,x.bf)(r(e.lineHeightSM).mul(c).equal()),tagIconSize:r(f).sub(r(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},z=e=>({defaultBg:new m.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var w=(0,O.I$)("Tag",e=>{const a=W(e);return Z(a)},z),J=function(e,a){var f={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(f[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)a.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(f[r[c]]=e[r[c]]);return f},Q=g.forwardRef((e,a)=>{const{prefixCls:f,style:r,className:c,checked:P,onChange:p,onClick:h}=e,R=J(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:V,tag:I}=g.useContext(i.E_),G=ee=>{p==null||p(!P),h==null||h(ee)},U=V("tag",f),[q,_,D]=w(U),H=E()(U,`${U}-checkable`,{[`${U}-checkable-checked`]:P},I==null?void 0:I.className,c,_,D);return q(g.createElement("span",Object.assign({},R,{ref:a,style:Object.assign(Object.assign({},r),I==null?void 0:I.style),className:H,onClick:G})))}),k=t(98719);const A=e=>(0,k.Z)(e,(a,f)=>{let{textColor:r,lightBorderColor:c,lightColor:P,darkColor:p}=f;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:r,background:P,borderColor:c,"&-inverse":{color:e.colorTextLightSolid,background:p,borderColor:p},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var B=(0,O.bk)(["Tag","preset"],e=>{const a=W(e);return A(a)},z);function L(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const j=(e,a,f)=>{const r=L(f);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${f}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var n=(0,O.bk)(["Tag","status"],e=>{const a=W(e);return[j(a,"success","Success"),j(a,"processing","Info"),j(a,"error","Error"),j(a,"warning","Warning")]},z),o=function(e,a){var f={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(f[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)a.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(f[r[c]]=e[r[c]]);return f};const s=g.forwardRef((e,a)=>{const{prefixCls:f,className:r,rootClassName:c,style:P,children:p,icon:h,color:R,onClose:V,bordered:I=!0,visible:G}=e,U=o(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:q,direction:_,tag:D}=g.useContext(i.E_),[H,ee]=g.useState(!0),ie=(0,v.Z)(U,["closeIcon","closable"]);g.useEffect(()=>{G!==void 0&&ee(G)},[G]);const re=(0,M.o2)(R),ae=(0,M.yT)(R),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:R&&!te?R:void 0},D==null?void 0:D.style),P),F=q("tag",f),[de,fe,ge]=w(F),ve=E()(F,D==null?void 0:D.className,{[`${F}-${R}`]:te,[`${F}-has-color`]:R&&!te,[`${F}-hidden`]:!H,[`${F}-rtl`]:_==="rtl",[`${F}-borderless`]:!I},r,c,fe,ge),le=X=>{X.stopPropagation(),V==null||V(X),!X.defaultPrevented&&ee(!1)},[,me]=(0,S.Z)((0,S.w)(e),(0,S.w)(D),{closable:!1,closeIconRender:X=>{const Ce=g.createElement("span",{className:`${F}-close-icon`,onClick:le},X);return(0,T.wm)(X,Ce,K=>({onClick:ce=>{var ne;(ne=K==null?void 0:K.onClick)===null||ne===void 0||ne.call(K,ce),le(ce)},className:E()(K==null?void 0:K.className,`${F}-close-icon`)}))}}),pe=typeof U.onClick=="function"||p&&p.type==="a",oe=h||null,he=oe?g.createElement(g.Fragment,null,oe,p&&g.createElement("span",null,p)):p,se=g.createElement("span",Object.assign({},ie,{ref:a,className:ve,style:ue}),he,me,re&&g.createElement(B,{key:"preset",prefixCls:F}),ae&&g.createElement(n,{key:"status",prefixCls:F}));return de(pe?g.createElement(u.Z,{component:"Tag"},se):se)});s.CheckableTag=Q;var d=s}}]);