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
2 lines
12 KiB
5 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{18174:function(ee,B,n){n.r(B),n.d(B,{default:function(){return K}});var d=n(97857),x=n.n(d),T=n(15009),f=n.n(T),D=n(99289),y=n.n(D),X=n(90930),J=n(67539),O=n(35312),z=n(7134),A=n(66309),Y=n(86250),H=n(86738),F=n(67294);function W(j,S){return E.apply(this,arguments)}function E(){return E=y()(f()().mark(function j(S,P){return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,O.request)("/api/admin/user/changeStatus",x()({method:"POST",params:x()({},S)},P||{})));case 1:case"end":return t.stop()}},j)})),E.apply(this,arguments)}function R(j,S){return w.apply(this,arguments)}function w(){return w=y()(f()().mark(function j(S,P){return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,O.request)("/api/admin/user/list",x()({method:"POST",headers:{"Content-Type":"application/json"},data:S},P||{})));case 1:case"end":return t.stop()}},j)})),w.apply(this,arguments)}var L=n(58125),m=n(85893),Q=function(){var S=(0,O.useParams)(),P=S.code,C=(0,F.useRef)();(0,F.useEffect)(function(){var o;(o=C.current)===null||o===void 0||o.reload()},[P]);var t=[{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u6635\u79F0",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(r,s){return r||s.mobile}},{title:"\u5934\u50CF",hideInSearch:!0,dataIndex:"avatar",valueType:"textarea",renderText:function(r){return(0,m.jsx)(z.C,{src:r})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name"},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount"},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",renderText:function(r){return r?(0,m.jsx)(A.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,m.jsx)(A.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",dataIndex:"income",renderText:function(r){return(0,L.P)(r)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",dataIndex:"realMoney",renderText:function(r){return(0,L.D)(r)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(r){return(0,m.jsx)(Y.Z,{gap:"small",wrap:!0,children:(0,m.jsxs)(m.Fragment,{children:[r.status===0&&(0,m.jsx)(H.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:y()(f()().mark(function s(){var i;return f()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,W({userId:r.id||0,status:-1});case 2:(i=C.current)===null||i===void 0||i.reload();case 3:case"end":return l.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,m.jsx)("a",{children:"\u5C01\u7981"})}),r.status===-1&&(0,m.jsx)(H.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:y()(f()().mark(function s(){var i;return f()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,W({userId:r.id||0,status:0});case 2:(i=C.current)===null||i===void 0||i.reload();case 3:case"end":return l.stop()}},s)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,m.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,m.jsx)(X._z,{children:(0,m.jsx)(J.Z,{search:!1,actionRef:C,request:function(){var o=y()(f()().mark(function r(s){var i,e,l;return f()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,R(x()(x()({},s),{},{appCode:P}));case 2:return l=a.sent,a.abrupt("return",{data:(i=l.data)===null||i===void 0?void 0:i.data,total:(e=l.data)===null||e===void 0?void 0:e.total,success:!0});case 4:case"end":return a.stop()}},r)}));return function(r){return o.apply(this,arguments)}}(),columns:t})})},K=Q},58125:function(ee,B,n){n.d(B,{D:function(){return x},P:function(){return d}});var d=function(f){return f?
|