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.

2 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\u53E