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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{40110:function(Y,B,t){var u=t(1413),h=t(67294),T=t(509),f=t(91146),D=function(R,P){return h.createElement(f.Z,(0,u.Z)((0,u.Z)({},R),{},{ref:P,icon:T.Z}))},E=h.forwardRef(D);B.Z=E},47989:function(Y,B,t){t.r(B);var u=t(97857),h=t.n(u),T=t(15009),f=t.n(T),D=t(99289),E=t.n(D),I=t(81072),R=t(58125),P=t(90930),W=t(67539),U=t(35312),N=t(66309),L=t(86250),g=t(86738),x=t(67294),j=t(42767),_=t(85893),m=function(){var q=(0,U.useParams)(),G=q.code,V=(0,x.useRef)();(0,x.useEffect)(function(){var b;(b=V.current)===null||b===void 0||b.reload()},[G]);var X=[{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(p,O){return(0,_.jsx)(j.Z,{data:O})}},{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(p){return p?(0,_.jsx)(N.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,_.jsx)(N.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(p){return(0,R.P)(p)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(p){return(0,R.D)(p)}},{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(p){return(0,_.jsx)(L.Z,{gap:"small",wrap:!0,children:(0,_.jsxs)(_.Fragment,{children:[p.status===0&&(0,_.jsx)(g.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:E()(f()().mark(function O(){var n;return f()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,I.wv)({userId:p.id||0,status:-1});case 2:(n=V.current)===null||n===void 0||n.reload();case 3:case"end":return r.stop()}},O)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,_.jsx)("a",{children:"\u5C01\u7981"})}),p.status===-1&&(0,_.jsx)(g.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:E()(f()().mark(function O(){var n;return f()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,I.wv)({userId:p.id||0,status:0});case 2:(n=V.current)===null||n===void 0||n.reload();case 3:case"end":return r.stop()}},O)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,_.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,_.jsx)(P._z,{children:(0,_.jsx)(W.Z,{actionRef:V,request:function(){var b=E()(f()().mark(function p(O){var n,s,r;return f()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,I.pb)(h()(h()({},O),{},{appCode:G}));case 2:return r=d.sent,d.abrupt("return",{data:(n=r.data)===null||n===void 0?void 0:n.data,total:(s=r.data)===null||s===void 0?void 0:s.total,success:!0});case 4:case"end":return d.stop()}},p)}));return function(p){return b.apply(this,arguments)}}(),columns:X})})};B.default=m},81072:function(Y,B,t){t.d(B,{fn:function(){return N},pb:function(){return W},wv:function(){return R}});var u=t(15009),h=t.n(u),T=t(97857),f=t.n(T),D=t(99289),E=t.n(D),I=t(35312);function R(g,x){return P.apply(this,arguments)}function P(){return P=E()(h()().mark(function g(x,j){return h()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,I.request)("/api/admin/user/changeStatus",f()({method:"POST",params:f()({},x)},j||{})));case 1:case"end":return m.stop()}},g)})),P.apply(this,arguments)}function W(g,x){return U.apply(this,arguments)}function U(){r