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
2 lines
13 KiB
4 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{40110:function(Y,R,t){var u=t(1413),h=t(67294),T=t(509),f=t(91146),D=function(W,P){return h.createElement(f.Z,(0,u.Z)((0,u.Z)({},W),{},{ref:P,icon:T.Z}))},E=h.forwardRef(D);R.Z=E},47989:function(Y,R,t){t.r(R);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),W=t(90930),P=t(67539),L=t(35312),M=t(66309),V=t(86250),U=t(86738),g=t(67294),x=t(58125),j=t(42767),_=t(85893),m=function(){var q=(0,L.useParams)(),G=q.code,N=(0,g.useRef)();(0,g.useEffect)(function(){var b;(b=N.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)(M.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,_.jsx)(M.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(p){return(0,x.P)(p)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(p){return(0,x.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)(V.Z,{gap:"small",wrap:!0,children:(0,_.jsxs)(_.Fragment,{children:[p.status===0&&(0,_.jsx)(U.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=N.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)(U.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=N.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)(W._z,{children:(0,_.jsx)(P.Z,{actionRef:N,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})})};R.default=m},81072:function(Y,R,t){t.d(R,{fn:function(){return V},pb:function(){return L},wv:function(){return W}});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 W(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 L(g,x){return M.apply(this,arguments)}function M(){r
|