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
11 KiB
2 lines
11 KiB
4 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[526],{58371:function(Z,P,r){r.r(P);var l=r(15009),_=r.n(l),O=r(97857),g=r.n(O),I=r(99289),p=r.n(I),s=r(81072),m=r(90930),n=r(67539),u=r(35312),f=r(66309),h=r(67294),C=r(38171),c=r(85893),b=function(){var M=(0,u.useParams)(),d=M.code,H=(0,h.useRef)();(0,h.useEffect)(function(){var j;(j=H.current)===null||j===void 0||j.reload()},[d]);var k=[{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(R,K){return(0,c.jsx)(C.Z,{data:K})}},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(R){return R?(0,c.jsx)(f.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,c.jsx)(f.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}];return(0,c.jsx)(m._z,{children:(0,c.jsx)(n.Z,{actionRef:H,request:function(){var j=p()(_()().mark(function R(K){var N,V,S;return _()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,(0,s.pb)(g()(g()({},K),{},{appCode:d}));case 2:return S=D.sent,D.abrupt("return",{data:(N=S.data)===null||N===void 0?void 0:N.data,total:(V=S.data)===null||V===void 0?void 0:V.total,success:!0});case 4:case"end":return D.stop()}},R)}));return function(R){return j.apply(this,arguments)}}(),columns:k})})};P.default=b},38171:function(Z,P,r){var l=r(55241),_=r(2487),O=r(71230),g=r(7134),I=r(67294),p=r(52043),s=r(85893),m=function(u){var f=(0,p.E7)(u.data.env);return(0,s.jsx)(l.Z,{content:(0,s.jsx)(s.Fragment,{children:f.length>0&&(0,s.jsx)(_.Z,{size:"small",header:(0,s.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:f,renderItem:function(C){return(0,s.jsx)(_.Z.Item,{children:C})}})}),children:(0,s.jsxs)(O.Z,{children:[(0,s.jsx)(g.C,{src:u.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,s.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:f.length>0?"red":""},children:["id:",u.data.id,(0,s.jsx)("br",{}),u.data.nickname||u.data.mobile]})]})})};P.Z=m},81072:function(Z,P,r){r.d(P,{fn:function(){return h},pb:function(){return u},wv:function(){return m}});var l=r(15009),_=r.n(l),O=r(97857),g=r.n(O),I=r(99289),p=r.n(I),s=r(35312);function m(c,b){return n.apply(this,arguments)}function n(){return n=p()(_()().mark(function c(b,y){return _()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,s.request)("/api/admin/user/changeStatus",g()({method:"POST",params:g()({},b)},y||{})));case 1:case"end":return d.stop()}},c)})),n.apply(this,arguments)}function u(c,b){return f.apply(this,arguments)}function f(){return f=p()(_()().mark(function c(b,y){return _()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,s.request)("/api/admin/user/list",g()({method:"POST",headers:{"Content-Type":"application/json"},data:b},y||{})));case 1:case"end":return d.stop()}},c)})),f.apply(this,arguments)}function h(c,b){return C.apply(this,arguments)}function C(){return C=p()(_()().mark(function c(b,y){return _()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,s.request)("/api/admin/user/queryById",g()({method:"GET",params:g()({},b)},y||{})));case 1:case"end":return d.stop()}},c)})),C.apply(this,arguments)}},52043:function(Z,P,r){r.d(P,{E7:function(){return _},FG:function(){return l},aV:function(){return p}});var l=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},_=function(m){var n=[];if(!m)return n;for(var u=m>>1,f=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u75
|