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.
1 lines
17 KiB
1 lines
17 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[526],{40110:function(z,A,n){var i=n(1413),l=n(67294),T=n(509),c=n(91146),B=function(g,a){return l.createElement(c.Z,(0,i.Z)((0,i.Z)({},g),{},{ref:a,icon:T.Z}))},E=l.forwardRef(B);A.Z=E},58371:function(z,A,n){n.r(A);var i=n(15009),l=n.n(i),T=n(97857),c=n.n(T),B=n(99289),E=n.n(B),p=n(81072),g=n(58125),a=n(90930),D=n(67539),x=n(35312),U=n(66309),b=n(67294),y=n(42767),v=n(85893),_=function(){var d=(0,x.useParams)(),P=d.code,O=(0,b.useRef)();(0,b.useEffect)(function(){var R;(R=O.current)===null||R===void 0||R.reload()},[P]);var q=[{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,G){return(0,v.jsx)(y.Z,{data:G})}},{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(r){return r?(0,v.jsx)(U.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,v.jsx)(U.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(r){return(0,g.P)(r)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(r){return(0,g.D)(r)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0}];return(0,v.jsx)(a._z,{children:(0,v.jsx)(D.Z,{actionRef:O,request:function(){var R=E()(l()().mark(function r(G){var H,Z,X;return l()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,p.pb)(c()(c()({},G),{},{appCode:P}));case 2:return X=h.sent,h.abrupt("return",{data:(H=X.data)===null||H===void 0?void 0:H.data,total:(Z=X.data)===null||Z===void 0?void 0:Z.total,success:!0});case 4:case"end":return h.stop()}},r)}));return function(r){return R.apply(this,arguments)}}(),columns:q})})};A.default=_},42767:function(z,A,n){n.d(A,{Z:function(){return X}});var i=n(5574),l=n.n(i),T=n(55241),c=n(2487),B=n(71230),E=n(7134),p=n(67294),g=n(52043),a=n(58125),D=n(15009),x=n.n(D),U=n(97857),b=n.n(U),y=n(99289),v=n.n(y),_=n(40110),j=n(67539),d=n(55102),P=n(42075),O=n(14726),q=n(17788),R=n(4575),r=n(85893),G=function(h){var w=(0,p.useState)(),Y=l()(w,2),e=Y[0],s=Y[1],m=(0,p.useState)(),t=l()(m,2),o=t[0],$=t[1],M=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(u){var f=u.setSelectedKeys,K=u.selectedKeys,S=u.confirm,L=u.clearFilters;return(0,r.jsxs)("div",{style:{padding:8},children:[(0,r.jsx)(d.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:K[0],onChange:function(C){return f(C.target.value?[C.target.value]:[])},onPressEnter:function(){return S()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(P.Z,{children:[(0,r.jsx)(O.ZP,{onClick:function(){return S()},type:"primary",children:"\u641C\u7D22"}),(0,r.jsx)(O.ZP,{onClick:function(){return L&&L()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(u,f){return typeof u=="string"&&typeof(f==null?void 0:f.appName)=="string"?f.appName.includes(u):!1},filterIcon:function(u){return(0,r.jsx)(_.Z,{style:{color:u?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(u){var f=u.setSelectedKeys,K=u.selectedKeys,S=u.confirm,L=u.clearFilters;return(0,r.jsxs)("div",{style:{padding:8},children:[(0,r.jsx)(d.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:K[0],onChange:function(C){return f(C.target.value?[C.target.value]:[])},onPressEnter:function(){return S()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(P.Z,{children:[(0,r.jsx)(O.ZP,{onClick:function(){return S()},type:"primary",children:"\u641C\u7D22"}),(0,r.jsx)(O.ZP,{onClick:function(){return L&&L()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(u,f){return typeof u=="string"&&typeof(f==null?void 0:f.packageName)=="string"?f.packageName.includes(u):!1},filterIcon:function(u){return(0,r.jsx)(_.Z,{style:{color:u?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],N=function(){var I=v()(x()().mark(function u(){var f,K,S,L;return x()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,(0,R.ai)();case 2:f=C.sent,f.data&&(S=[],L=[],(K=h.data.localAppList)===null||K===void 0||K.forEach(function(Q){var V;(V=f.data)!==null&&V!==void 0&&V.some(function(ne){return ne.packageName===Q.packageName})?S.push(b()(b()({},Q),{},{evil:!0})):L.push(b()(b()({},Q),{},{evil:!1}))}),s([].concat(S,L)),$([].concat(S,L)));case 4:case"end":return C.stop()}},u)}));return function(){return I.apply(this,arguments)}}();return(0,p.useEffect)(function(){N()},[]),(0,r.jsx)(q.Z,{style:{width:600},onCancel:h.onClose,visible:!0,footer:[],children:(0,r.jsx)(j.Z,{onRow:function(u){return{style:{backgroundColor:u.evil?"red":"transparent"}}},search:!1,onReset:function(){$(e)},columns:M,dataSource:o})})},H=G,Z=function(h){var w=(0,p.useState)(!1),Y=l()(w,2),e=Y[0],s=Y[1],m=(0,g.E7)(h.data.env);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.Z,{content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,a.P)(h.data.income),"\u5143"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,a.D)(h.data.realMoney),"\u5143"]}),h.data.localAppList&&h.data.localAppList.length>0&&(0,r.jsxs)("p",{children:[(0,r.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),h.data.localAppList.length,"\u4E2A",(0,r.jsx)("a",{onClick:function(){s(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),m.length>0&&(0,r.jsx)(c.Z,{size:"small",header:(0,r.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:m,renderItem:function(o){return(0,r.jsx)(c.Z.Item,{children:o})}})]}),children:(0,r.jsxs)(B.Z,{children:[(0,r.jsx)(E.C,{src:h.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,r.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:m.length>0?"red":""},children:["id:",h.data.id,(0,r.jsx)("br",{}),h.data.nickname||h.data.mobile]})]})}),e&&(0,r.jsx)(H,{onClose:function(){s(!1)},data:h.data})]})},X=Z},81072:function(z,A,n){n.d(A,{fn:function(){return U},pb:function(){return D},wv:function(){return g}});var i=n(15009),l=n.n(i),T=n(97857),c=n.n(T),B=n(99289),E=n.n(B),p=n(35312);function g(y,v){return a.apply(this,arguments)}function a(){return a=E()(l()().mark(function y(v,_){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,p.request)("/api/admin/user/changeStatus",c()({method:"POST",params:c()({},v)},_||{})));case 1:case"end":return d.stop()}},y)})),a.apply(this,arguments)}function D(y,v){return x.apply(this,arguments)}function x(){return x=E()(l()().mark(function y(v,_){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,p.request)("/api/admin/user/list",c()({method:"POST",headers:{"Content-Type":"application/json"},data:v},_||{})));case 1:case"end":return d.stop()}},y)})),x.apply(this,arguments)}function U(y,v){return b.apply(this,arguments)}function b(){return b=E()(l()().mark(function y(v,_){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,p.request)("/api/admin/user/queryById",c()({method:"GET",params:c()({},v)},_||{})));case 1:case"end":return d.stop()}},y)})),b.apply(this,arguments)}},4575:function(z,A,n){n.d(A,{XM:function(){return D},ai:function(){return g},nr:function(){return y},vE:function(){return U}});var i=n(15009),l=n.n(i),T=n(97857),c=n.n(T),B=n(99289),E=n.n(B),p=n(35312);function g(_){return a.apply(this,arguments)}function a(){return a=E()(l()().mark(function _(j){return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,p.request)("/api/superAdmin/evilAppList",c()({method:"GET"},j||{})));case 1:case"end":return P.stop()}},_)})),a.apply(this,arguments)}function D(_,j){return x.apply(this,arguments)}function x(){return x=E()(l()().mark(function _(j,d){return l()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,p.request)("/api/superAdmin/saveEvilApp",c()({method:"POST",headers:{"Content-Type":"application/json"},data:j},d||{})));case 1:case"end":return O.stop()}},_)})),x.apply(this,arguments)}function U(_,j){return b.apply(this,arguments)}function b(){return b=E()(l()().mark(function _(j,d){return l()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,p.request)("/api/superAdmin/saveWhiteUser",c()({method:"POST",params:c()({},j)},d||{})));case 1:case"end":return O.stop()}},_)})),b.apply(this,arguments)}function y(_){return v.apply(this,arguments)}function v(){return v=E()(l()().mark(function _(j){return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,p.request)("/api/superAdmin/whiteUserList",c()({method:"GET"},j||{})));case 1:case"end":return P.stop()}},_)})),v.apply(this,arguments)}},52043:function(z,A,n){n.d(A,{E7:function(){return l},FG:function(){return i},RQ:function(){return B},XY:function(){return T},aV:function(){return E},m0:function(){return c}});var i=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},l=function(g){var a=[];if(!g)return a;for(var D=g>>1,x=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],U=0,b=x;U<b.length;U++){var y=b[U];D&1&&a.push(y),D>>=1}return a},T=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},c=function(g){var a=new Date(g),D=a.getFullYear().toString().padStart(4,"0"),x=(a.getMonth()+1).toString().padStart(2,"0"),U=a.getDate().toString().padStart(2,"0");return D+x+U},B=function(g,a){var D=g.toString();return D.padStart(a,"0")},E=function(g){var a=g;return a<1024?a+" B":(a=parseFloat((a/1024).toFixed(2)),a<1024?a+" KB":(a=parseFloat((a/1024).toFixed(2)),a+" MB"))}},58125:function(z,A,n){n.d(A,{D:function(){return l},P:function(){return i}});var i=function(c){return c?parseFloat((c/1e5).toFixed(2)):0},l=function(c){return c?parseFloat((c/100).toFixed(2)):0}},66309:function(z,A,n){n.d(A,{Z:function(){return Y}});var i=n(67294),l=n(93967),T=n.n(l),c=n(98423),B=n(98787),E=n(69760),p=n(96159),g=n(45353),a=n(53124),D=n(54548),x=n(10274),U=n(14747),b=n(45503),y=n(91945);const v=e=>{const{paddingXXS:s,lineWidth:m,tagPaddingHorizontal:t,componentCls:o,calc:$}=e,M=$(t).sub(m).equal(),N=$(s).sub(m).equal();return{[o]:Object.assign(Object.assign({},(0,U.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:M,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,D.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:N,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:M}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},_=e=>{const{lineWidth:s,fontSizeIcon:m,calc:t}=e,o=e.fontSizeSM;return(0,b.TS)(e,{tagFontSize:o,tagLineHeight:(0,D.bf)(t(e.lineHeightSM).mul(o).equal()),tagIconSize:t(m).sub(t(s).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},j=e=>({defaultBg:new x.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var d=(0,y.I$)("Tag",e=>{const s=_(e);return v(s)},j),P=function(e,s){var m={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&s.indexOf(t)<0&&(m[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)s.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(m[t[o]]=e[t[o]]);return m},q=i.forwardRef((e,s)=>{const{prefixCls:m,style:t,className:o,checked:$,onChange:M,onClick:N}=e,I=P(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:f}=i.useContext(a.E_),K=V=>{M==null||M(!$),N==null||N(V)},S=u("tag",m),[L,W,C]=d(S),Q=T()(S,`${S}-checkable`,{[`${S}-checkable-checked`]:$},f==null?void 0:f.className,o,W,C);return L(i.createElement("span",Object.assign({},I,{ref:s,style:Object.assign(Object.assign({},t),f==null?void 0:f.style),className:Q,onClick:K})))}),R=n(98719);const r=e=>(0,R.Z)(e,(s,m)=>{let{textColor:t,lightBorderColor:o,lightColor:$,darkColor:M}=m;return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:t,background:$,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:M,borderColor:M},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var G=(0,y.bk)(["Tag","preset"],e=>{const s=_(e);return r(s)},j);function H(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Z=(e,s,m)=>{const t=H(m);return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:e[`color${m}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var X=(0,y.bk)(["Tag","status"],e=>{const s=_(e);return[Z(s,"success","Success"),Z(s,"processing","Info"),Z(s,"error","Error"),Z(s,"warning","Warning")]},j),ee=function(e,s){var m={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&s.indexOf(t)<0&&(m[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)s.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(m[t[o]]=e[t[o]]);return m};const w=i.forwardRef((e,s)=>{const{prefixCls:m,className:t,rootClassName:o,style:$,children:M,icon:N,color:I,onClose:u,bordered:f=!0,visible:K}=e,S=ee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:L,direction:W,tag:C}=i.useContext(a.E_),[Q,V]=i.useState(!0),ne=(0,c.Z)(S,["closeIcon","closable"]);i.useEffect(()=>{K!==void 0&&V(K)},[K]);const ae=(0,B.o2)(I),oe=(0,B.yT)(I),re=ae||oe,ce=Object.assign(Object.assign({backgroundColor:I&&!re?I:void 0},C==null?void 0:C.style),$),F=L("tag",m),[de,me,_e]=d(F),fe=T()(F,C==null?void 0:C.className,{[`${F}-${I}`]:re,[`${F}-has-color`]:I&&!re,[`${F}-hidden`]:!Q,[`${F}-rtl`]:W==="rtl",[`${F}-borderless`]:!f},t,o,me,_e),se=k=>{k.stopPropagation(),u==null||u(k),!k.defaultPrevented&&V(!1)},[,pe]=(0,E.Z)((0,E.w)(e),(0,E.w)(C),{closable:!1,closeIconRender:k=>{const ge=i.createElement("span",{className:`${F}-close-icon`,onClick:se},k);return(0,p.wm)(k,ge,J=>({onClick:ue=>{var te;(te=J==null?void 0:J.onClick)===null||te===void 0||te.call(J,ue),se(ue)},className:T()(J==null?void 0:J.className,`${F}-close-icon`)}))}}),ve=typeof S.onClick=="function"||M&&M.type==="a",le=N||null,he=le?i.createElement(i.Fragment,null,le,M&&i.createElement("span",null,M)):M,ie=i.createElement("span",Object.assign({},ne,{ref:s,className:fe,style:ce}),he,pe,ae&&i.createElement(G,{key:"preset",prefixCls:F}),oe&&i.createElement(X,{key:"status",prefixCls:F}));return de(ve?i.createElement(g.Z,{component:"Tag"},ie):ie)});w.CheckableTag=q;var Y=w}}]);
|
|
|