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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[15],{42767:function(V,b,r){r.d(b,{Z:function(){return w}});var x=r(5574),s=r.n(x),P=r(55241),l=r(2487),F=r(71230),f=r(7134),c=r(67294),m=r(52043),i=r(58125),g=r(15009),y=r.n(g),A=r(97857),h=r.n(A),I=r(99289),D=r.n(I),Z=r(40110),T=r(67539),K=r(55102),U=r(42075),L=r(14726),O=r(17788),$=r(4575),n=r(85893),k=function(e){var d=(0,c.useState)(),u=s()(d,2),t=u[0],N=u[1],B=(0,c.useState)(),R=s()(B,2),G=R[0],X=R[1],Q=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(o){var p=o.setSelectedKeys,C=o.selectedKeys,j=o.confirm,_=o.clearFilters;return(0,n.jsxs)("div",{style:{padding:8},children:[(0,n.jsx)(K.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:C[0],onChange:function(v){return p(v.target.value?[v.target.value]:[])},onPressEnter:function(){return j()},style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(U.Z,{children:[(0,n.jsx)(L.ZP,{onClick:function(){return j()},type:"primary",children:"\u641C\u7D22"}),(0,n.jsx)(L.ZP,{onClick:function(){return _&&_()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(o,p){return typeof o=="string"&&typeof(p==null?void 0:p.appName)=="string"?p.appName.includes(o):!1},filterIcon:function(o){return(0,n.jsx)(Z.Z,{style:{color:o?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(o){var p=o.setSelectedKeys,C=o.selectedKeys,j=o.confirm,_=o.clearFilters;return(0,n.jsxs)("div",{style:{padding:8},children:[(0,n.jsx)(K.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:C[0],onChange:function(v){return p(v.target.value?[v.target.value]:[])},onPressEnter:function(){return j()},style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(U.Z,{children:[(0,n.jsx)(L.ZP,{onClick:function(){return j()},type:"primary",children:"\u641C\u7D22"}),(0,n.jsx)(L.ZP,{onClick:function(){return _&&_()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(o,p){return typeof o=="string"&&typeof(p==null?void 0:p.packageName)=="string"?p.packageName.includes(o):!1},filterIcon:function(o){return(0,n.jsx)(Z.Z,{style:{color:o?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],H=function(){var S=D()(y()().mark(function o(){var p,C,j,_;return y()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,(0,$.ai)();case 2:p=v.sent,p.data&&(j=[],_=[],(C=e.data.localAppList)===null||C===void 0||C.forEach(function(Y){var z;(z=p.data)!==null&&z!==void 0&&z.some(function(J){return J.packageName===Y.packageName})?j.push(h()(h()({},Y),{},{evil:!0})):_.push(h()(h()({},Y),{},{evil:!1}))}),N([].concat(j,_)),X([].concat(j,_)));case 4:case"end":return v.stop()}},o)}));return function(){return S.apply(this,arguments)}}();return(0,c.useEffect)(function(){H()},[]),(0,n.jsx)(O.Z,{style:{width:600},onCancel:e.onClose,visible:!0,footer:[],children:(0,n.jsx)(T.Z,{onRow:function(o){return{style:{backgroundColor:o.evil?"red":"transparent"}}},search:!1,onReset:function(){X(t)},columns:Q,dataSource:G})})},M=k,W=function(e){var d=(0,c.useState)(!1),u=s()(d,2),t=u[0],N=u[1],B=(0,m.E7)(e.data.env);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.Z,{content:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,i.P)(e.data.income),"\u5143"]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,i.D)(e.data.realMoney),"\u5143"]}),e.data.localAppList&&e.data.localAppList.length>0&&(0,n.jsxs)("p",{children:[(0,n.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),e.data.localAppList.length,"\u4E2A",(0,n.jsx)("a",{onClick:function(){N(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),B.length>0&&(0,n.jsx)(l.Z,{size:"small",header:(0,n.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:B,renderItem:function(G){return(0,n.jsx)(l.Z.Item,{children:G})}})]}),children:(0,n.jsxs)(F.Z,{children:[(0,n.jsx)(f.C,{src:e.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,n.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:B.length>0?"red":""},children:["id:",e.data.id,(0,n.jsx)("br",{}),e.data.nickname||e.data.mobile]})]})}),t&&(0,n.jsx)(M,{onClose:function(){N(!1)},data:e.data})]})},w=W},4575:function(V,b,r){r.d(b,{Nk:function(){return g},Rn:function(){return m},SN:function(){return K},XM:function(){return Z},ai:function(){return A},k_:function(){return I},nN:function(){return $},nr:function(){return W},re:function(){return k},vE:function(){return L}});var x=r(15009),s=r.n(x),P=r(97857),l=r.n(P),F=r(99289),f=r.n(F),c=r(35312);function m(a,e){return i.apply(this,arguments)}function i(){return i=f()(s()().mark(function a(e,d){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/admin/superAdmin/addSchedule",l()({method:"POST",headers:{"Content-Type":"application/json"},data:e},d||{})));case 1:case"end":return t.stop()}},a)})),i.apply(this,arguments)}function g(a,e){return y.apply(this,arguments)}function y(){return y=f()(s()().mark(function a(e,d){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/admin/superAdmin/changeInnerUserStatus",l()({method:"POST",params:l()({},e)},d||{})));case 1:case"end":return t.stop()}},a)})),y.apply(this,arguments)}function A(a){return h.apply(this,arguments)}function h(){return h=f()(s()().mark(function a(e){return s()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,c.request)("/api/admin/superAdmin/evilAppList",l()({method:"GET"},e||{})));case 1:case"end":return u.stop()}},a)})),h.apply(this,arguments)}function I(a){return D.apply(this,arguments)}function D(){return D=f()(s()().mark(function a(e){return s()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,c.request)("/api/admin/superAdmin/innerUserList",l()({method:"GET"},e||{})));case 1:case"end":return u.stop()}},a)})),D.apply(this,arguments)}function Z(a,e){return T.apply(this,arguments)}function T(){return T=f()(s()().mark(function a(e,d){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/admin/superAdmin/saveEvilApp",l()({method:"POST",headers:{"Content-Type":"application/json"},data:e},d||{})));case 1:case"end":return t.stop()}},a)})),T.apply(this,arguments)}function K(a,e){return U.apply(this,arguments)}function U(){return U=f()(s()().mark(function a(e,d){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/admin/superAdmin/saveInnerUser",l()({method:"POST",params:l()({},e)},d||{})));case 1:case"end":return t.stop()}},a)})),U.apply(this,arguments)}function L(a,e){return O.apply(this,arguments)}function O(){return O=f()(s()().mark(function a(e,d){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/admin/superAdmin/saveWhiteUser",l()({method:"POST",params:l()({},e)},d||{})));case 1:case"end":return t.stop()}},a)})),O.apply(this,arguments)}function $(a){return n.apply(this,arguments)}function n(){return n=f()(s()().mark(function a(e){return s()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,c.request)("/api/admin/superAdmin/scheduleList",l()({method:"GET"},e||{})));case 1:case"end":return u.stop()}},a)})),n.apply(this,arguments)}function k(a,e){return M.apply(this,arguments)}function M(){return M=f()(s()().mark(function a(e,d){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/admin/superAdmin/transfer",l()({method:"POST",params:l()({},e)},d||{})));case 1:case"end":return t.stop()}},a)})),M.apply(this,arguments)}function W(a){return w.apply(this,arguments)}function w(){return w=f()(s()().mark(function a(e){return s()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,c.request)("/api/admin/superAdmin/whiteUserList",l()({method:"GET"},e||{})));case 1:case"end":return u.stop()}},a)})),w.apply(this,arguments)}},52043:function(V,b,r){r.d(b,{E7:function(){return s},FG:function(){return x},RQ:function(){return F},XY:function(){return P},aV:function(){return f},m0:function(){return l}});var x=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},s=function(m){var i=[];if(!m)return i;for(var g=m>>1,y=["\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"],A=0,h=y;A<h.length;A++){var I=h[A];g&1&&i.push(I),g>>=1}return i},P=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"}]},l=function(m){var i=new Date(m),g=i.getFullYear().toString().padStart(4,"0"),y=(i.getMonth()+1).toString().padStart(2,"0"),A=i.getDate().toString().padStart(2,"0");return g+y+A},F=function(m,i){var g=m.toString();return g.padStart(i,"0")},f=function(m){var i=m;return i<1024?i+" B":(i=parseFloat((i/1024).toFixed(2)),i<1024?i+" KB":(i=parseFloat((i/1024).toFixed(2)),i+" MB"))}},58125:function(V,b,r){r.d(b,{D:function(){return s},P:function(){return x}});var x=function(l){return l?parseFloat((l/1e5).toFixed(2)):0},s=function(l){return l?parseFloat((l/100).toFixed(2)):0}}}]);