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
2 lines
15 KiB
5 months ago
|
"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\u53E
|