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
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