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([[903],{18174:function(ee,B,n){n.r(B),n.d(B,{default:function(){return K}});var d=n(97857),x=n.n(d),T=n(15009),f=n.n(T),D=n(99289),y=n.n(D),X=n(90930),J=n(67539),O=n(35312),z=n(7134),A=n(66309),Y=n(86250),H=n(86738),F=n(67294);function W(j,S){return E.apply(this,arguments)}function E(){return E=y()(f()().mark(function j(S,P){return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,O.request)("/api/admin/user/changeStatus",x()({method:"POST",params:x()({},S)},P||{})));case 1:case"end":return t.stop()}},j)})),E.apply(this,arguments)}function R(j,S){return w.apply(this,arguments)}function w(){return w=y()(f()().mark(function j(S,P){return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,O.request)("/api/admin/user/list",x()({method:"POST",headers:{"Content-Type":"application/json"},data:S},P||{})));case 1:case"end":return t.stop()}},j)})),w.apply(this,arguments)}var L=n(58125),m=n(85893),Q=function(){var S=(0,O.useParams)(),P=S.code,C=(0,F.useRef)();(0,F.useEffect)(function(){var o;(o=C.current)===null||o===void 0||o.reload()},[P]);var t=[{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u6635\u79F0",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(r,s){return r||s.mobile}},{title:"\u5934\u50CF",hideInSearch:!0,dataIndex:"avatar",valueType:"textarea",renderText:function(r){return(0,m.jsx)(z.C,{src:r})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name"},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount"},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",renderText:function(r){return r?(0,m.jsx)(A.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,m.jsx)(A.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",dataIndex:"income",renderText:function(r){return(0,L.P)(r)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",dataIndex:"realMoney",renderText:function(r){return(0,L.D)(r)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(r){return(0,m.jsx)(Y.Z,{gap:"small",wrap:!0,children:(0,m.jsxs)(m.Fragment,{children:[r.status===0&&(0,m.jsx)(H.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:y()(f()().mark(function s(){var i;return f()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,W({userId:r.id||0,status:-1});case 2:(i=C.current)===null||i===void 0||i.reload();case 3:case"end":return l.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,m.jsx)("a",{children:"\u5C01\u7981"})}),r.status===-1&&(0,m.jsx)(H.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:y()(f()().mark(function s(){var i;return f()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,W({userId:r.id||0,status:0});case 2:(i=C.current)===null||i===void 0||i.reload();case 3:case"end":return l.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,m.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,m.jsx)(X._z,{children:(0,m.jsx)(J.Z,{search:!1,actionRef:C,request:function(){var o=y()(f()().mark(function r(s){var i,e,l;return f()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,R(x()(x()({},s),{},{appCode:P}));case 2:return l=a.sent,a.abrupt("return",{data:(i=l.data)===null||i===void 0?void 0:i.data,total:(e=l.data)===null||e===void 0?void 0:e.total,success:!0});case 4:case"end":return a.stop()}},r)}));return function(r){return o.apply(this,arguments)}}(),columns:t})})},K=Q},58125:function(ee,B,n){n.d(B,{D:function(){return x},P:function(){return d}});var d=function(f){return f?parseFloat((f/1e5).toFixed(2)):0},x=function(f){return f?parseFloat((f/100).toFixed(2)):0}},86250:function(ee,B,n){n.d(B,{Z:function(){return C}});var d=n(67294),x=n(93967),T=n.n(x),f=n(98423),D=n(98065),y=n(53124),X=n(91945),J=n(45503);const O=["wrap","nowrap","wrap-reverse"],z=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],A=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Y=(t,o)=>{const r=o.wrap===!0?"wrap":o.wrap;return{[`${t}-wrap-${r}`]:r&&O.includes(r)}},H=(t,o)=>{const r={};return A.forEach(s=>{r[`${t}-align-${s}`]=o.align===s}),r[`${t}-align-stretch`]=!o.align&&!!o.vertical,r},F=(t,o)=>{const r={};return z.forEach(s=>{r[`${t}-justify-${s}`]=o.justify===s}),r};function W(t,o){return T()(Object.assign(Object.assign(Object.assign({},Y(t,o)),H(t,o)),F(t,o)))}var E=W;const R=t=>{const{componentCls:o}=t;return{[o]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},w=t=>{const{componentCls:o}=t;return{[o]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},L=t=>{const{componentCls:o}=t,r={};return O.forEach(s=>{r[`${o}-wrap-${s}`]={flexWrap:s}}),r},m=t=>{const{componentCls:o}=t,r={};return A.forEach(s=>{r[`${o}-align-${s}`]={alignItems:s}}),r},Q=t=>{const{componentCls:o}=t,r={};return z.forEach(s=>{r[`${o}-justify-${s}`]={justifyContent:s}}),r},K=()=>({});var j=(0,X.I$)("Flex",t=>{const{paddingXS:o,padding:r,paddingLG:s}=t,i=(0,J.TS)(t,{flexGapSM:o,flexGap:r,flexGapLG:s});return[R(i),w(i),L(i),m(i),Q(i)]},K,{resetStyle:!1}),S=function(t,o){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&o.indexOf(s)<0&&(r[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)o.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(r[s[i]]=t[s[i]]);return r},C=d.forwardRef((t,o)=>{const{prefixCls:r,rootClassName:s,className:i,style:e,flex:l,gap:u,children:a,vertical:c=!1,component:h="div"}=t,g=S(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:I,getPrefixCls:Z}=d.useContext(y.E_),v=Z("flex",r),[G,N,k]=j(v),q=c!=null?c:p==null?void 0:p.vertical,b=T()(i,s,p==null?void 0:p.className,v,N,k,E(v,t),{[`${v}-rtl`]:I==="rtl",[`${v}-gap-${u}`]:(0,D.n)(u),[`${v}-vertical`]:q}),M=Object.assign(Object.assign({},p==null?void 0:p.style),e);return l&&(M.flex=l),u&&!(0,D.n)(u)&&(M.gap=u),G(d.createElement(h,Object.assign({ref:o,className:b,style:M},(0,f.Z)(g,["justify","wrap","align"])),a))})},66309:function(ee,B,n){n.d(B,{Z:function(){return i}});var d=n(67294),x=n(93967),T=n.n(x),f=n(98423),D=n(98787),y=n(69760),X=n(96159),J=n(45353),O=n(53124),z=n(54548),A=n(10274),Y=n(14747),H=n(45503),F=n(91945);const W=e=>{const{paddingXXS:l,lineWidth:u,tagPaddingHorizontal:a,componentCls:c,calc:h}=e,g=h(a).sub(u).equal(),p=h(l).sub(u).equal();return{[c]:Object.assign(Object.assign({},(0,Y.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:g,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,z.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:p,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:g}}),[`${c}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},E=e=>{const{lineWidth:l,fontSizeIcon:u,calc:a}=e,c=e.fontSizeSM;return(0,H.TS)(e,{tagFontSize:c,tagLineHeight:(0,z.bf)(a(e.lineHeightSM).mul(c).equal()),tagIconSize:a(u).sub(a(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},R=e=>({defaultBg:new A.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var w=(0,F.I$)("Tag",e=>{const l=E(e);return W(l)},R),L=function(e,l){var u={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(u[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(e);c<a.length;c++)l.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(u[a[c]]=e[a[c]]);return u},Q=d.forwardRef((e,l)=>{const{prefixCls:u,style:a,className:c,checked:h,onChange:g,onClick:p}=e,I=L(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Z,tag:v}=d.useContext(O.E_),G=_=>{g==null||g(!h),p==null||p(_)},N=Z("tag",u),[k,q,b]=w(N),M=T()(N,`${N}-checkable`,{[`${N}-checkable-checked`]:h},v==null?void 0:v.className,c,q,b);return k(d.createElement("span",Object.assign({},I,{ref:l,style:Object.assign(Object.assign({},a),v==null?void 0:v.style),className:M,onClick:G})))}),K=n(98719);const j=e=>(0,K.Z)(e,(l,u)=>{let{textColor:a,lightBorderColor:c,lightColor:h,darkColor:g}=u;return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:a,background:h,borderColor:c,"&-inverse":{color:e.colorTextLightSolid,background:g,borderColor:g},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var S=(0,F.bk)(["Tag","preset"],e=>{const l=E(e);return j(l)},R);function P(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const C=(e,l,u)=>{const a=P(u);return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:e[`color${u}`],background:e[`color${a}Bg`],borderColor:e[`color${a}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var t=(0,F.bk)(["Tag","status"],e=>{const l=E(e);return[C(l,"success","Success"),C(l,"processing","Info"),C(l,"error","Error"),C(l,"warning","Warning")]},R),o=function(e,l){var u={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(u[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(e);c<a.length;c++)l.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(u[a[c]]=e[a[c]]);return u};const s=d.forwardRef((e,l)=>{const{prefixCls:u,className:a,rootClassName:c,style:h,children:g,icon:p,color:I,onClose:Z,bordered:v=!0,visible:G}=e,N=o(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:q,tag:b}=d.useContext(O.E_),[M,_]=d.useState(!0),ie=(0,f.Z)(N,["closeIcon","closable"]);d.useEffect(()=>{G!==void 0&&_(G)},[G]);const re=(0,D.o2)(I),ae=(0,D.yT)(I),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:I&&!te?I:void 0},b==null?void 0:b.style),h),$=k("tag",u),[de,fe,ge]=w($),pe=T()($,b==null?void 0:b.className,{[`${$}-${I}`]:te,[`${$}-has-color`]:I&&!te,[`${$}-hidden`]:!M,[`${$}-rtl`]:q==="rtl",[`${$}-borderless`]:!v},a,c,fe,ge),le=U=>{U.stopPropagation(),Z==null||Z(U),!U.defaultPrevented&&_(!1)},[,me]=(0,y.Z)((0,y.w)(e),(0,y.w)(b),{closable:!1,closeIconRender:U=>{const he=d.createElement("span",{className:`${$}-close-icon`,onClick:le},U);return(0,X.wm)(U,he,V=>({onClick:ce=>{var ne;(ne=V==null?void 0:V.onClick)===null||ne===void 0||ne.call(V,ce),le(ce)},className:T()(V==null?void 0:V.className,`${$}-close-icon`)}))}}),ve=typeof N.onClick=="function"||g&&g.type==="a",oe=p||null,Ce=oe?d.createElement(d.Fragment,null,oe,g&&d.createElement("span",null,g)):g,se=d.createElement("span",Object.assign({},ie,{ref:l,className:pe,style:ue}),Ce,me,re&&d.createElement(S,{key:"preset",prefixCls:$}),ae&&d.createElement(t,{key:"status",prefixCls:$}));return de(ve?d.createElement(J.Z,{component:"Tag"},se):se)});s.CheckableTag=Q;var i=s}}]);