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
20 KiB
1 lines
20 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{85099:function(ne,$,n){n.r($),n.d($,{default:function(){return ie}});var V=n(15009),i=n.n(V),w=n(99289),o=n.n(w),W=n(5574),m=n.n(W),c=n(48357),D=n(35312),t=n(8232),M=n(66309),v=n(71230),x=n(15746),j=n(14726),B=n(13169),g=n(72051),f=n(17788),C=n(55102),l=n(34041),E=n(37804),b=n(16250),R=n(67294),de=n(72269),e=n(85893),ce=function(Z){var O=function(){Z.onSubmit()},s=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u89D2\u8272",dataIndex:"role",render:function(S){var h="";switch(S){case 1:h="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:h="\u7BA1\u7406\u5458";break;case 3:h="\u6E38\u620F\u4E3B";break;case 4:h="\u8BBE\u5907\u4E3B";break;default:h=""}return h}},{title:"\u9690\u85CF",render:function(S){return(0,e.jsx)(de.Z,{defaultValue:S.hide!==0,onClick:function(I){S.id&&(0,c.tQ)({adminId:S.id,hide:I?1:0})}},S.id)}}];return(0,e.jsx)(f.Z,{title:"\u6279\u91CF\u7F16\u8F91",visible:!0,footer:[],onCancel:O,children:(0,e.jsx)(g.Z,{columns:s,dataSource:Z.data})})},me=ce,fe=n(19632),re=n.n(fe),ve=n(81072),U=n(3089),te=n(55241),H=n(86250),Y=n(2453),Q=n(42767),J=function(Z){var O=(0,R.useState)([]),s=m()(O,2),d=s[0],S=s[1],h=(0,R.useState)([]),I=m()(h,2),y=I[0],_=I[1],z=t.Z.useForm(),X=m()(z,1),ee=X[0],he=function(){var P=o()(i()().mark(function K(k){var A;return i()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,(0,c.yC)({adminId:k});case 2:A=N.sent,S(A.data||[]);case 4:case"end":return N.stop()}},K)}));return function(k){return P.apply(this,arguments)}}();return(0,R.useEffect)(function(){Z.data.id&&he(Z.data.id)},[Z.data.id]),(0,e.jsxs)(f.Z,{title:"\u7ED1\u5B9A\u8D26\u53F7",visible:!0,centered:!0,onCancel:function(){Z.onCancel()},footer:[(0,e.jsx)(j.ZP,{onClick:function(){Z.onCancel()},children:"\u53D6\u6D88"},"back"),(0,e.jsx)(te.Z,{title:"\u786E\u5B9A\u4FDD\u5B58\u5417",content:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)("p",{children:"\u8D26\u53F7\u4E00\u65E6\u7ED1\u5B9A\u540E\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664"}),(0,e.jsx)("a",{onClick:o()(i()().mark(function P(){var K;return i()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(K=[].concat(re()(d),re()(y)).map(function(G){return G.id}).filter(Boolean),!(Z.data.id&&K)){A.next=7;break}return A.next=4,(0,c.cH)({adminId:Z.data.id},K);case 4:Z.onSubmit(),A.next=8;break;case 7:Z.onCancel();case 8:case"end":return A.stop()}},P)})),children:"\u786E\u5B9A"})]}),children:(0,e.jsx)(j.ZP,{type:"primary",children:"\u4FDD\u5B58"})},"confirm")],children:[d.length>0&&(0,e.jsxs)(v.Z,{gutter:6,style:{marginTop:20},children:[(0,e.jsx)(x.Z,{span:4,children:"\u5DF2\u7ED1\u5B9A:"}),(0,e.jsx)(H.Z,{vertical:!0,gap:"small",children:d.map(function(P){return(0,e.jsx)(v.Z,{children:(0,e.jsx)(Q.Z,{data:P})},P.id)})})]}),y.length>0&&(0,e.jsxs)(v.Z,{gutter:6,style:{marginTop:20},children:[(0,e.jsx)(x.Z,{span:4,children:"\u672C\u6B21\u65B0\u589E:"}),(0,e.jsx)(H.Z,{vertical:!0,gap:"small",children:y.map(function(P){return(0,e.jsxs)(v.Z,{children:[(0,e.jsx)(Q.Z,{data:P}),(0,e.jsx)(U.Z,{style:{marginLeft:20},onClick:function(){_(y.filter(function(k){return k.id!==P.id}))}})]},P.id)})})]}),(0,e.jsx)(t.Z,{style:{marginTop:20},labelCol:{span:4},wrapperCol:{span:18},form:ee,onFinish:function(){var P=o()(i()().mark(function K(k){var A,G;return i()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(A=k.uid,A){L.next=4;break}return Y.ZP.error("uid\u4E0D\u80FD\u4E3A\u7A7A"),L.abrupt("return");case 4:if(!(Z.data.id&&A)){L.next=15;break}if(!(y.filter(function(ue){return ue.id===A}).length>0)){L.next=8;break}return Y.ZP.error("\u8BE5\u8D26\u53F7\u5DF2\u6DFB\u52A0"),L.abrupt("return");case 8:if(!(d.filter(function(ue){return ue.id===A}).length>0)){L.next=11;break}return Y.ZP.error("\u8BE5\u8D26\u53F7\u5DF2\u6DFB\u52A0"),L.abrupt("return");case 11:return L.next=13,(0,ve.fn)({adminId:Z.data.id,userId:A});case 13:G=L.sent,G.data?_([].concat(re()(y),[G.data])):Y.ZP.error("uid\u975E\u6CD5");case 15:case"end":return L.stop()}},K)}));return function(K){return P.apply(this,arguments)}}(),children:(0,e.jsxs)(v.Z,{children:[(0,e.jsx)(t.Z.Item,{name:"uid",label:"uid",children:(0,e.jsx)(E.Z,{style:{width:200}})}),(0,e.jsx)(t.Z.Item,{wrapperCol:{offset:8,span:16},children:(0,e.jsx)(j.ZP,{type:"primary",htmlType:"submit",children:"\u6DFB\u52A0"})})]})})]})},q=J,ae=function(){var Z=(0,R.useState)([]),O=m()(Z,2),s=O[0],d=O[1],S=(0,R.useState)(!1),h=m()(S,2),I=h[0],y=h[1],_=(0,R.useState)(void 0),z=m()(_,2),X=z[0],ee=z[1],he=(0,R.useState)(!1),P=m()(he,2),K=P[0],k=P[1],A=(0,R.useState)(!1),G=m()(A,2),N=G[0],L=G[1],ue=(0,R.useState)(0),ge=m()(ue,2),ye=ge[0],pe=ge[1],Fe=t.Z.useForm(),Ie=m()(Fe,1),le=Ie[0],Pe=(0,R.useState)([]),be=m()(Pe,2),Ce=be[0],De=be[1],Be=(0,D.useModel)("@@initialState"),je=Be.initialState,T=je==null?void 0:je.currentUser,xe=function(u){return u?parseFloat((u/1e5).toFixed(2)):0},Ee=function(u){var r=Ce.find(function(F){return F.id===u});return r?r.name:""},Ze=function(u){le.setFieldsValue(u),y(!0),L(!0),pe(u.role?u.role:0)},Se=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(u){return(0,e.jsx)("div",{children:u==null?void 0:u.map(function(r){return(0,e.jsx)(M.Z,{color:"blue",children:Ee(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(u){var r="";switch(u){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 4:r="\u8BBE\u5907\u4E3B";break;default:r=""}return r}},{title:"\u64CD\u4F5C",render:function(u){return[(0,e.jsx)("a",{onClick:function(){return Ze(u)},children:"\u7F16\u8F91"},"edit")]}}],Ae=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(u){return(0,e.jsx)("div",{children:u==null?void 0:u.map(function(r){return(0,e.jsx)(M.Z,{color:"blue",children:Ee(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(u){var r="";switch(u){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 4:r="\u8BBE\u5907\u4E3B";break;case 5:r="\u4EE3\u7406";break;default:r=""}return r}},{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeThisMonth",render:function(u,r){var F;return xe((F=r.overview)===null||F===void 0?void 0:F.thisMonthIncome)}},{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeLastMonth",render:function(u,r){var F;return xe((F=r.overview)===null||F===void 0?void 0:F.lastMonthIncome)}},{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeTotal",render:function(u,r){var F;return xe((F=r.overview)===null||F===void 0?void 0:F.totalIncome)}},{title:"\u5F53\u524D\u5206\u6210\u6BD4\u4F8B",dataIndex:"incomeRate"},{title:"\u64CD\u4F5C",render:function(u){return(0,e.jsxs)(v.Z,{gutter:6,children:[(0,e.jsx)(x.Z,{children:(0,e.jsx)("a",{onClick:function(){return Ze(u)},children:"\u7F16\u8F91"},"edit")}),u.role===5&&(0,e.jsx)(x.Z,{children:(0,e.jsx)("a",{onClick:function(){ee(u)},children:"\u7ED1\u5B9A\u8D26\u53F7"},"grant")})]})}}],Ue=function(){le.submit()},Oe=function(){y(!1)},oe=function(){var a=o()(i()().mark(function u(){var r;return i()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,c.N0)();case 2:r=p.sent,r.data&&d(r.data);case 4:case"end":return p.stop()}},u)}));return function(){return a.apply(this,arguments)}}(),_e=function(){var a=o()(i()().mark(function u(){var r;return i()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,c.ln)();case 2:r=p.sent,r.data&&De(r.data);case 4:case"end":return p.stop()}},u)}));return function(){return a.apply(this,arguments)}}();(0,R.useEffect)(function(){oe(),_e()},[]);var Te=function(){le.resetFields(),y(!0),L(!1),pe(0)},Me=function(){var a=o()(i()().mark(function u(r){return i()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(0,c.P7)(r);case 3:p.next=8;break;case 5:return p.prev=5,p.t0=p.catch(0),p.abrupt("return");case 8:y(!1),oe();case 10:case"end":return p.stop()}},u,null,[[0,5]])}));return function(r){return a.apply(this,arguments)}}();return(0,e.jsxs)("div",{children:[(0,e.jsxs)(v.Z,{align:"stretch",gutter:20,children:[(0,e.jsx)(x.Z,{children:(0,e.jsx)(j.ZP,{onClick:Te,children:"\u65B0\u5EFA\u8D26\u53F7"})}),(0,e.jsx)(x.Z,{children:(0,e.jsx)(j.ZP,{onClick:function(){k(!0)},children:"\u6279\u91CF\u7F16\u8F91"})})]}),(0,e.jsxs)(B.Z,{centered:!0,style:{backgroundColor:"white",padding:"20px",marginTop:20},children:[(T==null?void 0:T.role)&&T.role<3&&(0,e.jsx)(b.Z,{tab:"\u6E38\u620F\u4E3B",children:(0,e.jsx)(g.Z,{columns:Se,dataSource:s.filter(function(a){return a.role===3&&a.hide===0})})},"1"),(0,e.jsx)(b.Z,{tab:"\u8BBE\u5907\u4E3B",children:(0,e.jsx)(g.Z,{columns:Ae,dataSource:s.filter(function(a){return a.role===4&&a.hide===0})})},"2"),(0,e.jsx)(b.Z,{tab:"\u4EE3\u7406",children:(0,e.jsx)(g.Z,{columns:Ae,dataSource:s.filter(function(a){return a.role===5&&a.hide===0})})},"3"),(T==null?void 0:T.role)&&T.role<2&&(0,e.jsx)(b.Z,{tab:"\u7BA1\u7406\u5458",children:(0,e.jsx)(g.Z,{columns:Se,dataSource:s.filter(function(a){return a.role===2&&a.hide===0})})},"4")]}),(0,e.jsx)(f.Z,{title:"\u7F16\u8F91",visible:I,onOk:Ue,onCancel:Oe,children:(0,e.jsxs)(t.Z,{labelCol:{span:4},wrapperCol:{span:18},form:le,onFinish:Me,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(C.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u7528\u6237\u540D",name:"name",children:(0,e.jsx)(C.Z,{disabled:N})}),(0,e.jsx)(t.Z.Item,{label:"\u5BC6\u7801",name:"password",children:(0,e.jsx)(C.Z.Password,{disabled:N})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528",name:"appIds",children:(0,e.jsx)(l.Z,{filterOption:function(u,r){var F=typeof(r==null?void 0:r.children)=="string"?r.children:"";return F.toLowerCase().includes(u.toLowerCase())},showSearch:!0,mode:"multiple",children:Ce.map(function(a){return(0,e.jsx)(l.Z.Option,{value:a.id,children:a.name},a.id)})})}),(0,e.jsx)(t.Z.Item,{label:"\u89D2\u8272",name:"role",children:(0,e.jsxs)(l.Z,{disabled:N,onSelect:pe,children:[(0,e.jsx)(l.Z.Option,{disabled:(T==null?void 0:T.role)&&T.role>1,value:2,children:"\u7BA1\u7406\u5458"}),(0,e.jsx)(l.Z.Option,{disabled:(T==null?void 0:T.role)&&T.role>2,value:3,children:"\u6E38\u620F\u4E3B"}),(0,e.jsx)(l.Z.Option,{value:4,children:"\u8BBE\u5907\u4E3B"}),(0,e.jsx)(l.Z.Option,{value:5,children:"\u4EE3\u7406"})]})}),ye>3&&(0,e.jsxs)(v.Z,{children:[(0,e.jsx)(x.Z,{span:12,children:(0,e.jsx)(t.Z.Item,{labelCol:{span:8},label:"\u6536\u5165\u6BD4\u4F8B",name:"incomeRate",children:(0,e.jsx)(E.Z,{placeholder:"1-100\u6574\u6570",style:{width:"80%"}})})}),ye===4?(0,e.jsx)(x.Z,{span:12,children:(0,e.jsx)(t.Z.Item,{labelCol:{span:8},label:"\u8BBE\u5907\u6570",name:"deviceCnt",children:(0,e.jsx)(E.Z,{style:{width:"80%"}})})}):""]})]})}),K&&(0,e.jsx)(me,{data:s,onSubmit:function(){k(!1),oe()}}),X&&(0,e.jsx)(q,{data:X,onCancel:function(){ee(void 0)},onSubmit:function(){ee(void 0),oe()}})]})},ie=ae},42767:function(ne,$,n){n.d($,{Z:function(){return re}});var V=n(5574),i=n.n(V),w=n(55241),o=n(2487),W=n(71230),m=n(7134),c=n(67294),D=n(52043),t=n(58125),M=n(15009),v=n.n(M),x=n(97857),j=n.n(x),B=n(99289),g=n.n(B),f=n(40110),C=n(67539),l=n(55102),E=n(42075),b=n(14726),R=n(17788),de=n(4575),e=n(85893),ce=function(U){var te=(0,c.useState)(),H=i()(te,2),Y=H[0],Q=H[1],J=(0,c.useState)(),q=i()(J,2),ae=q[0],ie=q[1],se=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(s){var d=s.setSelectedKeys,S=s.selectedKeys,h=s.confirm,I=s.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(l.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:S[0],onChange:function(_){return d(_.target.value?[_.target.value]:[])},onPressEnter:function(){return h()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(E.Z,{children:[(0,e.jsx)(b.ZP,{onClick:function(){return h()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(b.ZP,{onClick:function(){return I&&I()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(s,d){return typeof s=="string"&&typeof(d==null?void 0:d.appName)=="string"?d.appName.includes(s):!1},filterIcon:function(s){return(0,e.jsx)(f.Z,{style:{color:s?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(s){var d=s.setSelectedKeys,S=s.selectedKeys,h=s.confirm,I=s.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(l.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:S[0],onChange:function(_){return d(_.target.value?[_.target.value]:[])},onPressEnter:function(){return h()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(E.Z,{children:[(0,e.jsx)(b.ZP,{onClick:function(){return h()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(b.ZP,{onClick:function(){return I&&I()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(s,d){return typeof s=="string"&&typeof(d==null?void 0:d.packageName)=="string"?d.packageName.includes(s):!1},filterIcon:function(s){return(0,e.jsx)(f.Z,{style:{color:s?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],Z=function(){var O=g()(v()().mark(function s(){var d,S,h,I;return v()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,(0,de.ai)();case 2:d=_.sent,d.data&&(h=[],I=[],(S=U.data.localAppList)===null||S===void 0||S.forEach(function(z){var X;(X=d.data)!==null&&X!==void 0&&X.some(function(ee){return ee.packageName===z.packageName})?h.push(j()(j()({},z),{},{evil:!0})):I.push(j()(j()({},z),{},{evil:!1}))}),Q([].concat(h,I)),ie([].concat(h,I)));case 4:case"end":return _.stop()}},s)}));return function(){return O.apply(this,arguments)}}();return(0,c.useEffect)(function(){Z()},[]),(0,e.jsx)(R.Z,{style:{width:600},onCancel:U.onClose,visible:!0,footer:[],children:(0,e.jsx)(C.Z,{onRow:function(s){return{style:{backgroundColor:s.evil?"red":"transparent"}}},search:!1,onReset:function(){ie(Y)},columns:se,dataSource:ae})})},me=ce,fe=function(U){var te=(0,c.useState)(!1),H=i()(te,2),Y=H[0],Q=H[1],J=(0,D.E7)(U.data.env);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(w.Z,{content:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("p",{children:[(0,e.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,t.P)(U.data.income),"\u5143"]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,t.D)(U.data.realMoney),"\u5143"]}),U.data.localAppList&&U.data.localAppList.length>0&&(0,e.jsxs)("p",{children:[(0,e.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),U.data.localAppList.length,"\u4E2A",(0,e.jsx)("a",{onClick:function(){Q(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),J.length>0&&(0,e.jsx)(o.Z,{size:"small",header:(0,e.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:J,renderItem:function(ae){return(0,e.jsx)(o.Z.Item,{children:ae})}})]}),children:(0,e.jsxs)(W.Z,{children:[(0,e.jsx)(m.C,{src:U.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,e.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:J.length>0?"red":""},children:["id:",U.data.id,(0,e.jsx)("br",{}),U.data.nickname||U.data.mobile]})]})}),Y&&(0,e.jsx)(me,{onClose:function(){Q(!1)},data:U.data})]})},re=fe},81072:function(ne,$,n){n.d($,{fn:function(){return x},pb:function(){return M},wv:function(){return D}});var V=n(15009),i=n.n(V),w=n(97857),o=n.n(w),W=n(99289),m=n.n(W),c=n(35312);function D(B,g){return t.apply(this,arguments)}function t(){return t=m()(i()().mark(function B(g,f){return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,c.request)("/api/admin/user/changeStatus",o()({method:"POST",params:o()({},g)},f||{})));case 1:case"end":return l.stop()}},B)})),t.apply(this,arguments)}function M(B,g){return v.apply(this,arguments)}function v(){return v=m()(i()().mark(function B(g,f){return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,c.request)("/api/admin/user/list",o()({method:"POST",headers:{"Content-Type":"application/json"},data:g},f||{})));case 1:case"end":return l.stop()}},B)})),v.apply(this,arguments)}function x(B,g){return j.apply(this,arguments)}function j(){return j=m()(i()().mark(function B(g,f){return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,c.request)("/api/admin/user/queryById",o()({method:"GET",params:o()({},g)},f||{})));case 1:case"end":return l.stop()}},B)})),j.apply(this,arguments)}},4575:function(ne,$,n){n.d($,{XM:function(){return M},ai:function(){return D},nr:function(){return B},vE:function(){return x}});var V=n(15009),i=n.n(V),w=n(97857),o=n.n(w),W=n(99289),m=n.n(W),c=n(35312);function D(f){return t.apply(this,arguments)}function t(){return t=m()(i()().mark(function f(C){return i()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,c.request)("/api/superAdmin/evilAppList",o()({method:"GET"},C||{})));case 1:case"end":return E.stop()}},f)})),t.apply(this,arguments)}function M(f,C){return v.apply(this,arguments)}function v(){return v=m()(i()().mark(function f(C,l){return i()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",(0,c.request)("/api/superAdmin/saveEvilApp",o()({method:"POST",headers:{"Content-Type":"application/json"},data:C},l||{})));case 1:case"end":return b.stop()}},f)})),v.apply(this,arguments)}function x(f,C){return j.apply(this,arguments)}function j(){return j=m()(i()().mark(function f(C,l){return i()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",(0,c.request)("/api/superAdmin/saveWhiteUser",o()({method:"POST",params:o()({},C)},l||{})));case 1:case"end":return b.stop()}},f)})),j.apply(this,arguments)}function B(f){return g.apply(this,arguments)}function g(){return g=m()(i()().mark(function f(C){return i()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,c.request)("/api/superAdmin/whiteUserList",o()({method:"GET"},C||{})));case 1:case"end":return E.stop()}},f)})),g.apply(this,arguments)}},52043:function(ne,$,n){n.d($,{E7:function(){return i},FG:function(){return V},RQ:function(){return W},XY:function(){return w},aV:function(){return m},m0:function(){return o}});var V=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},i=function(D){var t=[];if(!D)return t;for(var M=D>>1,v=["\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"],x=0,j=v;x<j.length;x++){var B=j[x];M&1&&t.push(B),M>>=1}return t},w=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"}]},o=function(D){var t=new Date(D),M=t.getFullYear().toString().padStart(4,"0"),v=(t.getMonth()+1).toString().padStart(2,"0"),x=t.getDate().toString().padStart(2,"0");return M+v+x},W=function(D,t){var M=D.toString();return M.padStart(t,"0")},m=function(D){var t=D;return t<1024?t+" B":(t=parseFloat((t/1024).toFixed(2)),t<1024?t+" KB":(t=parseFloat((t/1024).toFixed(2)),t+" MB"))}},58125:function(ne,$,n){n.d($,{D:function(){return i},P:function(){return V}});var V=function(o){return o?parseFloat((o/1e5).toFixed(2)):0},i=function(o){return o?parseFloat((o/100).toFixed(2)):0}}}]);
|
|
|