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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{38171:function(X,$,t){var d=t(55241),h=t(2487),M=t(71230),v=t(7134),R=t(67294),b=t(52043),u=t(85893),E=function(f){var p=(0,b.E7)(f.data.env);return(0,u.jsx)(d.Z,{content:(0,u.jsx)(u.Fragment,{children:p.length>0&&(0,u.jsx)(h.Z,{size:"small",header:(0,u.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:p,renderItem:function(P){return(0,u.jsx)(h.Z.Item,{children:P})}})}),children:(0,u.jsxs)(M.Z,{children:[(0,u.jsx)(v.C,{src:f.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,u.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:p.length>0?"red":""},children:["id:",f.data.id,(0,u.jsx)("br",{}),f.data.nickname||f.data.mobile]})]})})};$.Z=E},47989:function(X,$,t){t.r($);var d=t(97857),h=t.n(d),M=t(15009),v=t.n(M),R=t(99289),b=t.n(R),u=t(81072),E=t(90930),s=t(67539),f=t(35312),p=t(66309),T=t(86250),P=t(86738),C=t(67294),I=t(38171),_=t(85893),W=function(){var J=(0,f.useParams)(),Q=J.code,V=(0,C.useRef)();(0,C.useEffect)(function(){var B;(B=V.current)===null||B===void 0||B.reload()},[Q]);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(D,K){return(0,_.jsx)(I.Z,{data:K})}},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(D){return D?(0,_.jsx)(p.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,_.jsx)(p.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{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(D){return(0,_.jsx)(T.Z,{gap:"small",wrap:!0,children:(0,_.jsxs)(_.Fragment,{children:[D.status===0&&(0,_.jsx)(P.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:b()(v()().mark(function K(){var x;return v()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,u.wv)({userId:D.id||0,status:-1});case 2:(x=V.current)===null||x===void 0||x.reload();case 3:case"end":return r.stop()}},K)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,_.jsx)("a",{children:"\u5C01\u7981"})}),D.status===-1&&(0,_.jsx)(P.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:b()(v()().mark(function K(){var x;return v()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,u.wv)({userId:D.id||0,status:0});case 2:(x=V.current)===null||x===void 0||x.reload();case 3:case"end":return r.stop()}},K)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,_.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,_.jsx)(E._z,{children:(0,_.jsx)(s.Z,{actionRef:V,request:function(){var B=b()(v()().mark(function D(K){var x,n,r;return v()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,u.pb)(h()(h()({},K),{},{appCode:Q}));case 2:return r=a.sent,a.abrupt("return",{data:(x=r.data)===null||x===void 0?void 0:x.data,total:(n=r.data)===null||n===void 0?void 0:n.total,success:!0});case 4:case"end":return a.stop()}},D)}));return function(D){return B.apply(this,arguments)}}(),columns:Y})})};$.default=W},81072:function(X,$,t){t.d($,{fn:function(){return T},pb:function(){return f},wv:function(){return E}});var d=t(15009),h=t.n(d),M=t(97857),v=t.n(M),R=t(99289),b=t.n(R),u=t(35312);function E(C,I){return s.apply(this,arguments)}function s(){return s=b()(h()().mark(function C(I,_){return h()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,u.request)("/api/admin/user/changeStatus",v()({method:"POST",params:v()({},I)},_||{})));case 1