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([[526],{58371:function(K,E,r){r.r(E);var s=r(15009),_=r.n(s),C=r(97857),c=r.n(C),j=r(99289),b=r.n(j),f=r(81072),n=r(58125),a=r(90930),p=r(67539),d=r(35312),v=r(66309),P=r(67294),m=r(38171),g=r(85893),x=function(){var u=(0,d.useParams)(),H=u.code,X=(0,P.useRef)();(0,P.useEffect)(function(){var O;(O=X.current)===null||O===void 0||O.reload()},[H]);var Y=[{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(y,F){return(0,g.jsx)(m.Z,{data:F})}},{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(y){return y?(0,g.jsx)(v.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,g.jsx)(v.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(y){return(0,n.P)(y)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(y){return(0,n.D)(y)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0}];return(0,g.jsx)(a._z,{children:(0,g.jsx)(p.Z,{actionRef:X,request:function(){var O=b()(_()().mark(function y(F){var N,D,V;return _()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,(0,f.pb)(c()(c()({},F),{},{appCode:H}));case 2:return V=R.sent,R.abrupt("return",{data:(N=V.data)===null||N===void 0?void 0:N.data,total:(D=V.data)===null||D===void 0?void 0:D.total,success:!0});case 4:case"end":return R.stop()}},y)}));return function(y){return O.apply(this,arguments)}}(),columns:Y})})};E.default=x},38171:function(K,E,r){var s=r(55241),_=r(2487),C=r(71230),c=r(7134),j=r(67294),b=r(52043),f=r(58125),n=r(85893),a=function(d){var v=(0,b.E7)(d.data.env);return(0,n.jsx)(s.Z,{content:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,f.P)(d.data.income),"\u5143"]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,f.D)(d.data.realMoney),"\u5143"]}),v.length>0&&(0,n.jsx)(_.Z,{size:"small",header:(0,n.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:v,renderItem:function(m){return(0,n.jsx)(_.Z.Item,{children:m})}})]}),children:(0,n.jsxs)(C.Z,{children:[(0,n.jsx)(c.C,{src:d.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,n.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:v.length>0?"red":""},children:["id:",d.data.id,(0,n.jsx)("br",{}),d.data.nickname||d.data.mobile]})]})})};E.Z=a},81072:function(K,E,r){r.d(E,{fn:function(){return v},pb:function(){return p},wv:function(){return n}});var s=r(15009),_=r.n(s),C=r(97857),c=r.n(C),j=r(99289),b=r.n(j),f=r(35312);function n(m,g){return a.apply(this,arguments)}function a(){return a=b()(_()().mark(function m(g,x){return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,f.request)("/api/admin/user/changeStatus",c()({method:"POST",params:c()({},g)},x||{})));case 1:case"end":return u.stop()}},m)})),a.apply(this,arguments)}function p(m,g){return d.apply(this,arguments)}function d(){return d=b()(_()().mark(function m(g,x){return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,f.request)("/api/admin/user/list",c()({method:"POST",headers:{"Content-Type":"application/json"},data:g},x||{})));case 1:case"end":return u.stop()}},m)})),d.apply(this,arguments)}function v(m,g){return P.apply(this,arguments)}function P(){return P=b()(_()().mark(function m(g,x){return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,f.request)("/api/admin/user/queryById",c()({method:"GET",params:c()({},g)},x||{})));case 1:case"end":return u.stop()}},m)})),P.apply(this,arguments)}},52043:function(K,E,r){r.d(E,{E7:function(){return _},FG:function(){return s},RQ:function(){return j},XY:function(){return C},aV:function(){return b},m0:function(){return c}});var s=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},_=function(n){var a=[];if(!n)return a;for(var p=n>>1,d=["\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,P=d;v<P.length;v++){var m=P[v];p&1&&a.push(m),p>>=1}return a},C=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"}]},c=function(n){var a=new Date(n),p=a.getFullYear().toString().padStart(4,"0"),d=(a.getMonth()+1).toString().padStart(2,"0"),v=a.getDate().toString().padStart(2,"0");return p+d+v},j=function(n,a){var p=n.toString();return p.padStart(a,"0")},b=function(n){var a=n;return a<1024?a+" B":(a=parseFloat((a/1024).toFixed(2)),a<1024?a+" KB":(a=parseFloat((a/1024).toFixed(2)),a+" MB"))}},58125:function(K,E,r){r.d(E,{D:function(){return _},P:function(){return s}});var s=function(c){return c?parseFloat((c/1e5).toFixed(2)):0},_=function(c){return c?parseFloat((c/100).toFixed(2)):0}},66309:function(K,E,r){r.d(E,{Z:function(){return ie}});var s=r(67294),_=r(93967),C=r.n(_),c=r(98423),j=r(98787),b=r(69760),f=r(96159),n=r(45353),a=r(53124),p=r(54548),d=r(10274),v=r(14747),P=r(45503),m=r(91945);const g=e=>{const{paddingXXS:l,lineWidth:i,tagPaddingHorizontal:t,componentCls:o,calc:T}=e,h=T(t).sub(i).equal(),$=T(l).sub(i).equal();return{[o]:Object.assign(Object.assign({},(0,v.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,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:$,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},x=e=>{const{lineWidth:l,fontSizeIcon:i,calc:t}=e,o=e.fontSizeSM;return(0,P.TS)(e,{tagFontSize:o,tagLineHeight:(0,p.bf)(t(e.lineHeightSM).mul(o).equal()),tagIconSize:t(i).sub(t(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},U=e=>({defaultBg:new d.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var u=(0,m.I$)("Tag",e=>{const l=x(e);return g(l)},U),H=function(e,l){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)l.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(i[t[o]]=e[t[o]]);return i},Y=s.forwardRef((e,l)=>{const{prefixCls:i,style:t,className:o,checked:T,onChange:h,onClick:$}=e,S=H(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:z,tag:B}=s.useContext(a.E_),Z=G=>{h==null||h(!T),$==null||$(G)},A=z("tag",i),[Q,J,M]=u(A),w=C()(A,`${A}-checkable`,{[`${A}-checkable-checked`]:T},B==null?void 0:B.className,o,J,M);return Q(s.createElement("span",Object.assign({},S,{ref:l,style:Object.assign(Object.assign({},t),B==null?void 0:B.style),className:w,onClick:Z})))}),O=r(98719);const y=e=>(0,O.Z)(e,(l,i)=>{let{textColor:t,lightBorderColor:o,lightColor:T,darkColor:h}=i;return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:t,background:T,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:h,borderColor:h},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var F=(0,m.bk)(["Tag","preset"],e=>{const l=x(e);return y(l)},U);function N(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const D=(e,l,i)=>{const t=N(i);return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:e[`color${i}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var V=(0,m.bk)(["Tag","status"],e=>{const l=x(e);return[D(l,"success","Success"),D(l,"processing","Info"),D(l,"error","Error"),D(l,"warning","Warning")]},U),ee=function(e,l){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)l.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(i[t[o]]=e[t[o]]);return i};const re=s.forwardRef((e,l)=>{const{prefixCls:i,className:t,rootClassName:o,style:T,children:h,icon:$,color:S,onClose:z,bordered:B=!0,visible:Z}=e,A=ee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Q,direction:J,tag:M}=s.useContext(a.E_),[w,G]=s.useState(!0),ce=(0,c.Z)(A,["closeIcon","closable"]);s.useEffect(()=>{Z!==void 0&&G(Z)},[Z]);const te=(0,j.o2)(S),ne=(0,j.yT)(S),k=te||ne,de=Object.assign(Object.assign({backgroundColor:S&&!k?S:void 0},M==null?void 0:M.style),T),I=Q("tag",i),[ue,_e,me]=u(I),fe=C()(I,M==null?void 0:M.className,{[`${I}-${S}`]:k,[`${I}-has-color`]:S&&!k,[`${I}-hidden`]:!w,[`${I}-rtl`]:J==="rtl",[`${I}-borderless`]:!B},t,o,_e,me),ae=W=>{W.stopPropagation(),z==null||z(W),!W.defaultPrevented&&G(!1)},[,ve]=(0,b.Z)((0,b.w)(e),(0,b.w)(M),{closable:!1,closeIconRender:W=>{const pe=s.createElement("span",{className:`${I}-close-icon`,onClick:ae},W);return(0,f.wm)(W,pe,L=>({onClick:se=>{var q;(q=L==null?void 0:L.onClick)===null||q===void 0||q.call(L,se),ae(se)},className:C()(L==null?void 0:L.className,`${I}-close-icon`)}))}}),ge=typeof A.onClick=="function"||h&&h.type==="a",oe=$||null,he=oe?s.createElement(s.Fragment,null,oe,h&&s.createElement("span",null,h)):h,le=s.createElement("span",Object.assign({},ce,{ref:l,className:fe,style:de}),he,ve,te&&s.createElement(F,{key:"preset",prefixCls:I}),ne&&s.createElement(V,{key:"status",prefixCls:I}));return ue(ge?s.createElement(n.Z,{component:"Tag"},le):le)});re.CheckableTag=Y;var ie=re}}]);