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 f=t(55241),x=t(2487),I=t(71230),g=t(7134),F=t(67294),m=t(52043),y=t(58125),i=t(85893),p=function(v){var T=(0,m.E7)(v.data.env);return(0,i.jsx)(f.Z,{content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,y.P)(v.data.income),"\u5143"]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,y.D)(v.data.realMoney),"\u5143"]}),T.length>0&&(0,i.jsx)(x.Z,{size:"small",header:(0,i.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:T,renderItem:function(M){return(0,i.jsx)(x.Z.Item,{children:M})}})]}),children:(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(g.C,{src:v.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,i.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:T.length>0?"red":""},children:["id:",v.data.id,(0,i.jsx)("br",{}),v.data.nickname||v.data.mobile]})]})})};$.Z=p},18174:function(Y,$,t){t.r($),t.d($,{default:function(){return k}});var f=t(97857),x=t.n(f),I=t(15009),g=t.n(I),F=t(99289),m=t.n(F),y=t(90930),i=t(67539),p=t(35312),E=t(66309),v=t(86250),T=t(86738),R=t(67294);function M(N,P){return Z.apply(this,arguments)}function Z(){return Z=m()(g()().mark(function N(P,L){return g()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,p.request)("/api/admin/user/changeStatus",x()({method:"POST",params:x()({},P)},L||{})));case 1:case"end":return n.stop()}},N)})),Z.apply(this,arguments)}function W(N,P){return z.apply(this,arguments)}function z(){return z=m()(g()().mark(function N(P,L){return g()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,p.request)("/api/admin/user/list",x()({method:"POST",headers:{"Content-Type":"application/json"},data:P},L||{})));case 1:case"end":return n.stop()}},N)})),z.apply(this,arguments)}var w=t(58125),J=t(38171),S=t(85893),Q=function(){var P=(0,p.useParams)(),L=P.code,j=(0,R.useRef)();(0,R.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,S.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,S.jsx)(E.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,S.jsx)(E.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,S.jsx)(v.Z,{gap:"small",wrap:!0,children:(0,S.jsxs)(S.Fragment,{children:[l.status===0&&(0,S.jsx)(T.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:m()(g()().mark(function s(){var u;return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,M({userId:l.id||0,status:-1});case 2:(u=j.current)===null||u===void 0||u.reload();case 3:case"end":return a.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,S.jsx)("a",{children:"\u5C01\u7981"})}),l.status===-1&&(0,S.jsx)(T.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:m()(g()().mark(function s(){var u;return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,M({userId:l.id||0,status:0});case 2:(u=j.current)===null||u===void 0||u.reload();case 3:case"end":return a.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,S.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,S.jsx)(y._z,{children:(0,S.jsx)(i.Z,{actionRef:j,request:function(){var o=m()(g()().mark(function l(s){var u,e,a;return g()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,W(x()(x()({},s),{},{appCode:L}));case 2:return a=r.sent,r.abrupt("return",{data:(u=a.data)===null||u===void 0?void 0:u.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 x},FG:function(){return f},RQ:function(){return F},XY:function(){return I},m0:function(){return g}});var f=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},x=function(y){var i=[];if(!y)return i;for(var p=y>>1,E=["\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"],v=0,T=E;v<T.length;v++){var R=T[v];p&1&&i.push(R),p>>=1}return i},I=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"}]},g=function(y){var i=new Date(y),p=i.getFullYear().toString().padStart(4,"0"),E=(i.getMonth()+1).toString().padStart(2,"0"),v=i.getDate().toString().padStart(2,"0");return p+E+v},F=function(y,i){var p=y.toString();return p.padStart(i,"0")}},58125:function(Y,$,t){t.d($,{D:function(){return x},P:function(){return f}});var f=function(g){return g?parseFloat((g/1e5).toFixed(2)):0},x=function(g){return g?parseFloat((g/100).toFixed(2)):0}},86250:function(Y,$,t){t.d($,{Z:function(){return j}});var f=t(67294),x=t(93967),I=t.n(x),g=t(98423),F=t(98065),m=t(53124),y=t(91945),i=t(45503);const p=["wrap","nowrap","wrap-reverse"],E=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],v=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],T=(n,o)=>{const l=o.wrap===!0?"wrap":o.wrap;return{[`${n}-wrap-${l}`]:l&&p.includes(l)}},R=(n,o)=>{const l={};return v.forEach(s=>{l[`${n}-align-${s}`]=o.align===s}),l[`${n}-align-stretch`]=!o.align&&!!o.vertical,l},M=(n,o)=>{const l={};return E.forEach(s=>{l[`${n}-justify-${s}`]=o.justify===s}),l};function Z(n,o){return I()(Object.assign(Object.assign(Object.assign({},T(n,o)),R(n,o)),M(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 p.forEach(s=>{l[`${o}-wrap-${s}`]={flexWrap:s}}),l},S=n=>{const{componentCls:o}=n,l={};return v.forEach(s=>{l[`${o}-align-${s}`]={alignItems:s}}),l},Q=n=>{const{componentCls:o}=n,l={};return E.forEach(s=>{l[`${o}-justify-${s}`]={justifyContent:s}}),l},k=()=>({});var N=(0,y.I$)("Flex",n=>{const{paddingXS:o,padding:l,paddingLG:s}=n,u=(0,i.TS)(n,{flexGapSM:o,flexGap:l,flexGapLG:s});return[z(u),w(u),J(u),S(u),Q(u)]},k,{resetStyle:!1}),P=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 u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)o.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(l[s[u]]=n[s[u]]);return l},j=f.forwardRef((n,o)=>{const{prefixCls:l,rootClassName:s,className:u,style:e,flex:a,gap:d,children:r,vertical:c=!1,component:O="div"}=n,h=P(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:C,direction:A,getPrefixCls:G}=f.useContext(m.E_),b=G("flex",l),[V,U,q]=N(b),_=c!=null?c:C==null?void 0:C.vertical,D=I()(u,s,C==null?void 0:C.className,b,U,q,W(b,n),{[`${b}-rtl`]:A==="rtl",[`${b}-gap-${d}`]:(0,F.n)(d),[`${b}-vertical`]:_}),H=Object.assign(Object.assign({},C==null?void 0:C.style),e);return a&&(H.flex=a),d&&!(0,F.n)(d)&&(H.gap=d),V(f.createElement(O,Object.assign({ref:o,className:D,style:H},(0,g.Z)(h,["justify","wrap","align"])),r))})},66309:function(Y,$,t){t.d($,{Z:function(){return u}});var f=t(67294),x=t(93967),I=t.n(x),g=t(98423),F=t(98787),m=t(69760),y=t(96159),i=t(45353),p=t(53124),E=t(54548),v=t(10274),T=t(14747),R=t(45503),M=t(91945);const Z=e=>{const{paddingXXS:a,lineWidth:d,tagPaddingHorizontal:r,componentCls:c,calc:O}=e,h=O(r).sub(d).equal(),C=O(a).sub(d).equal();return{[c]:Object.assign(Object.assign({},(0,T.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:h,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,E.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:C,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:h}}),[`${c}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},W=e=>{const{lineWidth:a,fontSizeIcon:d,calc:r}=e,c=e.fontSizeSM;return(0,R.TS)(e,{tagFontSize:c,tagLineHeight:(0,E.bf)(r(e.lineHeightSM).mul(c).equal()),tagIconSize:r(d).sub(r(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},z=e=>({defaultBg:new v.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var w=(0,M.I$)("Tag",e=>{const a=W(e);return Z(a)},z),J=function(e,a){var d={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(d[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])&&(d[r[c]]=e[r[c]]);return d},Q=f.forwardRef((e,a)=>{const{prefixCls:d,style:r,className:c,checked:O,onChange:h,onClick:C}=e,A=J(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:G,tag:b}=f.useContext(p.E_),V=ee=>{h==null||h(!O),C==null||C(ee)},U=G("tag",d),[q,_,D]=w(U),H=I()(U,`${U}-checkable`,{[`${U}-checkable-checked`]:O},b==null?void 0:b.className,c,_,D);return q(f.createElement("span",Object.assign({},A,{ref:a,style:Object.assign(Object.assign({},r),b==null?void 0:b.style),className:H,onClick:V})))}),k=t(98719);const N=e=>(0,k.Z)(e,(a,d)=>{let{textColor:r,lightBorderColor:c,lightColor:O,darkColor:h}=d;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:r,background:O,borderColor:c,"&-inverse":{color:e.colorTextLightSolid,background:h,borderColor:h},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var P=(0,M.bk)(["Tag","preset"],e=>{const a=W(e);return N(a)},z);function L(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const j=(e,a,d)=>{const r=L(d);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${d}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var n=(0,M.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 d={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(d[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])&&(d[r[c]]=e[r[c]]);return d};const s=f.forwardRef((e,a)=>{const{prefixCls:d,className:r,rootClassName:c,style:O,children:h,icon:C,color:A,onClose:G,bordered:b=!0,visible:V}=e,U=o(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:q,direction:_,tag:D}=f.useContext(p.E_),[H,ee]=f.useState(!0),ie=(0,g.Z)(U,["closeIcon","closable"]);f.useEffect(()=>{V!==void 0&&ee(V)},[V]);const re=(0,F.o2)(A),ae=(0,F.yT)(A),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:A&&!te?A:void 0},D==null?void 0:D.style),O),B=q("tag",d),[de,fe,ge]=w(B),ve=I()(B,D==null?void 0:D.className,{[`${B}-${A}`]:te,[`${B}-has-color`]:A&&!te,[`${B}-hidden`]:!H,[`${B}-rtl`]:_==="rtl",[`${B}-borderless`]:!b},r,c,fe,ge),le=X=>{X.stopPropagation(),G==null||G(X),!X.defaultPrevented&&ee(!1)},[,me]=(0,m.Z)((0,m.w)(e),(0,m.w)(D),{closable:!1,closeIconRender:X=>{const Ce=f.createElement("span",{className:`${B}-close-icon`,onClick:le},X);return(0,y.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:I()(K==null?void 0:K.className,`${B}-close-icon`)}))}}),pe=typeof U.onClick=="function"||h&&h.type==="a",oe=C||null,he=oe?f.createElement(f.Fragment,null,oe,h&&f.createElement("span",null,h)):h,se=f.createElement("span",Object.assign({},ie,{ref:a,className:ve,style:ue}),he,me,re&&f.createElement(P,{key:"preset",prefixCls:B}),ae&&f.createElement(n,{key:"status",prefixCls:B}));return de(pe?f.createElement(i.Z,{component:"Tag"},se):se)});s.CheckableTag=Q;var u=s}}]);