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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{28490:function(Fe,w,n){n.r(w),n.d(w,{default:function(){return $e}});var G=n(97857),F=n.n(G),H=n(13769),A=n.n(H),re=n(15009),l=n.n(re),Z=n(99289),v=n.n(Z),h=n(5574),j=n.n(h),b=n(48357),O=n(52043),B=n(40110),te=n(3089),_=n(90930),g=n(8232),M=n(55102),C=n(42075),y=n(14726),R=n(55241),T=n(66309),S=n(2453),c=n(13169),Ze=n(72051),Ce=n(17788),Ie=n(34041),Be=n(71230),Pe=n(15746),U=n(47676),ae=n(16250),he=n(27484),oe=n.n(he),E=n(67294),je=n(19632),ce=n.n(je),Se=n(32400),be=n(56448),Me=n.n(be),ke=n(66476),e=n(85893),x=function(de){var z=de.onUploadSuccess,N=de.onUploadError,Y=(0,E.useState)(!1),fe=j()(Y,2),ne=fe[0],ue=fe[1],ye=(0,E.useState)([]),me=j()(ye,2),X=me[0],se=me[1],ie=(0,E.useState)(null),pe=j()(ie,2),Q=pe[0],V=pe[1],J=ke.Z.Dragger;(0,E.useEffect)(function(){function r(){return t.apply(this,arguments)}function t(){return t=v()(l()().mark(function m(){var u,o;return l()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(0,b.po)();case 3:if(u=p.sent,!(!u.data||!u.data.accessKeySecret||!u.data.accessKeyId)){p.next=7;break}return S.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),p.abrupt("return");case 7:o=new(Me())({region:"oss-cn-beijing",accessKeyId:u.data.accessKeyId,accessKeySecret:u.data.accessKeySecret,stsToken:u.data.securityToken,bucket:u.data.bucket}),V(o),p.next=15;break;case 11:p.prev=11,p.t0=p.catch(0),S.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),N&&N(p.t0);case 15:case"end":return p.stop()}},m,null,[[0,11]])})),t.apply(this,arguments)}r()},[N]);var ve=function(t){var m=(X||[]).filter(function(u){return u.url!==t.url});se(m)},d=function(){var r=v()(l()().mark(function t(m){var u,o,I,p;return l()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(u=m.file,!(u instanceof File)){D.next=26;break}return ue(!0),D.prev=3,D.next=6,(0,Se.p)(u);case 6:return o=D.sent,I="matrix/".concat(o,".").concat(u.name.split(".").pop()),D.next=10,Q==null?void 0:Q.put(I,u,{headers:{"Content-Type":u.type}});case 10:p="https://apks.bzgames.cn/".concat(I),z&&z(p),ue(!1),se(function(De){return[].concat(ce()(De),[{uid:u.uid,name:u.name+"\uFF1A"+p,status:"done",url:p}])}),D.next=21;break;case 16:D.prev=16,D.t0=D.catch(3),S.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),N&&N(D.t0),se(function(De){return[].concat(ce()(De),[{uid:u.uid,name:u.name,status:"error"}])});case 21:return D.prev=21,ue(!1),D.finish(21);case 24:D.next=27;break;case 26:S.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return D.stop()}},t,null,[[3,16,21,24]])}));return function(m){return r.apply(this,arguments)}}();return(0,e.jsxs)(J,{fileList:X,multiple:!0,customRequest:d,onRemove:ve,disabled:ne||!Q,onPreview:function(){var r=v()(l()().mark(function t(m){return l()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,navigator.clipboard.writeText(m.url||"");case 2:S.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+m.url);case 3:case"end":return o.stop()}},t)}));return function(t){return r.apply(this,arguments)}}(),capture:void 0,children:[(0,e.jsx)("p",{className:"ant-upload-drag-icon",children:(0,e.jsx)("i",{className:"anticon anticon-inbox"})}),(0,e.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,e.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20\u3002\u6587\u4EF6\u540D\u5C06\u4F7F\u7528\u6587\u4EF6\u7684 MD5 \u503C\u547D\u540D\u3002"})]})},k=x,q=n(67539),L=n(4575),W=function(){var de=(0,E.useState)(!1),z=j()(de,2),N=z[0],Y=z[1],fe=(0,E.useState)([]),ne=j()(fe,2),ue=ne[0],ye=ne[1],me=(0,E.useState)([]),X=j()(me,2),se=X[0],ie=X[1],pe=g.Z.useForm(),Q=j()(pe,1),V=Q[0],J=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(M.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:m[0],onChange:function(p){return t(p.target.value?[p.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(C.Z,{children:[(0,e.jsx)(y.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(y.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.name)=="string"?t.name.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(B.Z,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(M.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:m[0],onChange:function(p){return t(p.target.value?[p.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(C.Z,{children:[(0,e.jsx)(y.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(y.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.packageName)=="string"?t.packageName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(B.Z,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:function(){Y(!0),V.setFieldsValue(r)},children:"\u7F16\u8F91"},"edit")}}],ve=function(){var d=v()(l()().mark(function r(){var t;return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,L.ai)();case 2:t=u.sent,t.data&&(ye(t.data),ie(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return d.apply(this,arguments)}}();return(0,E.useEffect)(function(){ve()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.ZP,{style:{marginBottom:"20px"},onClick:function(){Y(!0),V.resetFields()},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(q.Z,{search:!1,onReset:function(){ie(ue)},columns:J,dataSource:se}),(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:N,onOk:function(){V.submit(),Y(!1)},onCancel:function(){Y(!1)},children:(0,e.jsxs)(g.Z,{labelCol:{span:4},wrapperCol:{span:18},form:V,onFinish:function(){var d=v()(l()().mark(function r(t){return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,L.XM)(t);case 2:ve();case 3:case"end":return u.stop()}},r)}));return function(r){return d.apply(this,arguments)}}(),children:[(0,e.jsx)(g.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(M.Z,{type:"hidden"})}),(0,e.jsx)(g.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(M.Z,{})}),(0,e.jsx)(g.Z.Item,{label:"\u5305\u540D",name:"packageName",children:(0,e.jsx)(M.Z,{})})]})})]})},ee=W,$=n(37804),Ee=n(42767),Ae=function(){var de=(0,E.useState)(!1),z=j()(de,2),N=z[0],Y=z[1],fe=(0,E.useState)([]),ne=j()(fe,2),ue=ne[0],ye=ne[1],me=(0,E.useState)([]),X=j()(me,2),se=X[0],ie=X[1],pe=g.Z.useForm(),Q=j()(pe,1),V=Q[0],J=function(){var d=v()(l()().mark(function r(){var t;return l()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,L.nr)();case 2:t=u.sent,t.data&&(ye(t.data),ie(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return d.apply(this,arguments)}}(),ve=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(M.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:m[0],onChange:function(p){return t(p.target.value?[p.target.value]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(C.Z,{children:[(0,e.jsx)(y.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(y.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){return typeof r=="string"&&typeof(t==null?void 0:t.appName)=="string"?t.appName.includes(r):!1},filterIcon:function(r){return(0,e.jsx)(B.Z,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,render:function(r,t){return(0,e.jsx)(Ee.Z,{data:t.user||{}})},filterDropdown:function(r){var t=r.setSelectedKeys,m=r.selectedKeys,u=r.confirm,o=r.clearFilters,I=m[0]?String(m[0]):"";return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)($.Z,{placeholder:"\u641C\u7D22 userId",value:I,onChange:function(ge){return t(ge?[ge]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block",width:200}}),(0,e.jsxs)(C.Z,{children:[(0,e.jsx)(y.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(y.ZP,{onClick:function(){return o&&o()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,t){var m;return((m=t.user)===null||m===void 0?void 0:m.id)===r},filterIcon:function(r){return(0,e.jsx)(B.Z,{style:{color:r?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u72B6\u6001",hideInSearch:!0,renderText:function(r){return r.status===0?(0,e.jsx)(T.Z,{color:"green",children:"\u5DF2\u542F\u7528"}):(0,e.jsx)(T.Z,{color:"red",children:"\u672A\u542F\u7528"})}},{title:"\u521B\u5EFA\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u4FEE\u6539\u65F6\u95F4",hideInSearch:!0,dataIndex:"updatedAt",valueType:"dateTime"},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(r){return(0,e.jsx)("a",{onClick:v()(l()().mark(function t(){var m;return l()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,L.vE)({userId:((m=r.user)===null||m===void 0?void 0:m.id)||0,status:r.status===0?-1:0});case 2:J();case 3:case"end":return o.stop()}},t)})),children:r.status===0?"\u7981\u7528":"\u542F\u7528"},"edit")}}];return(0,E.useEffect)(function(){J()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.ZP,{style:{marginBottom:"20px"},onClick:function(){Y(!0),V.resetFields()},children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(q.Z,{search:!1,onReset:function(){ie(ue)},columns:ve,dataSource:se}),(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:N,onOk:function(){V.submit(),Y(!1)},onCancel:function(){Y(!1)},children:(0,e.jsx)(g.Z,{labelCol:{span:4},wrapperCol:{span:18},form:V,onFinish:function(){var d=v()(l()().mark(function r(t){var m;return l()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(m=t.userId,!m){o.next=5;break}return o.next=4,(0,L.vE)({userId:m});case 4:J();case 5:case"end":return o.stop()}},r)}));return function(r){return d.apply(this,arguments)}}(),children:(0,e.jsx)(g.Z.Item,{label:"userId",name:"userId",children:(0,e.jsx)($.Z,{style:{width:200}})})})})]})},Oe=Ae,Ke=["scheduleTime"],Re=function(){var de=(0,E.useState)([]),z=j()(de,2),N=z[0],Y=z[1],fe=(0,E.useState)([]),ne=j()(fe,2),ue=ne[0],ye=ne[1],me=(0,E.useState)([]),X=j()(me,2),se=X[0],ie=X[1],pe=(0,E.useState)(!1),Q=j()(pe,2),V=Q[0],J=Q[1],ve=(0,E.useState)(!1),d=j()(ve,2),r=d[0],t=d[1],m=g.Z.useForm(),u=j()(m,1),o=u[0],I=g.Z.useForm(),p=j()(I,1),ge=p[0],D=function(){var f=v()(l()().mark(function a(){var i;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,b.hy)();case 2:i=s.sent,i.data&&ye(i.data);case 4:case"end":return s.stop()}},a)}));return function(){return f.apply(this,arguments)}}(),De=function(){var f=v()(l()().mark(function a(i){return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(i){s.next=2;break}return s.abrupt("return");case 2:return s.next=4,(0,b.o9)({deviceId:i});case 4:D();case 5:case"end":return s.stop()}},a)}));return function(i){return f.apply(this,arguments)}}(),we=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0,filterDropdown:function(a){var i=a.setSelectedKeys,P=a.selectedKeys,s=a.confirm,le=a.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(M.Z,{placeholder:"\u641C\u7D22\u8BBE\u5907",value:P[0],onChange:function(K){return i(K.target.value?[K.target.value]:[])},onPressEnter:function(){return s()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(C.Z,{children:[(0,e.jsx)(y.ZP,{onClick:function(){return s()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(y.ZP,{onClick:function(){return le&&le()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(a,i){return typeof a=="string"&&typeof(i==null?void 0:i.deviceId)=="string"?i.deviceId.includes(a):!1},filterIcon:function(a){return(0,e.jsx)(B.Z,{style:{color:a?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var i=(0,O.FG)(),P=i.find(function(s){return s.value===a});return P?P.label:a}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(a,i){return(0,e.jsx)(R.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,e.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,e.jsx)("a",{onClick:function(){return De(i.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,e.jsx)("a",{children:"\u5220\u9664"})})}}],We=function(a){var i=N.find(function(P){return P.id===a});return i?i.name:""},Ne=function(a){return a?parseFloat((a/1e5).toFixed(2)):0},Ye=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(a){return(0,e.jsx)(T.Z,{color:"blue",children:We(a)},a)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var i=(0,O.FG)(),P=i.find(function(s){return s.value===a});return P?P.label:a}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(a){return Ne(a)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(a){return oe()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(a){switch(a){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return a}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(a){return oe()(a).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(a){return oe()(a).format("YYYY-MM-DD HH:mm")}}],Ue=function(){var f=v()(l()().mark(function a(){var i;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,b.mW)();case 2:i=s.sent,i.data&&ie(i.data);case 4:case"end":return s.stop()}},a)}));return function(){return f.apply(this,arguments)}}(),Ve=function(){var f=v()(l()().mark(function a(){var i;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,b.ln)();case 2:i=s.sent,i.data&&Y(i.data);case 4:case"end":return s.stop()}},a)}));return function(){return f.apply(this,arguments)}}();(0,E.useEffect)(function(){Ve(),D(),Ue()},[]);var Ge=function(){var f=v()(l()().mark(function a(i){var P,s,le;return l()().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return P=i.scheduleTime,s=A()(i,Ke),le=P.map(function(Le){return oe()(Le.time).valueOf()}),K.prev=2,K.next=5,(0,b.tI)(F()({scheduleTime:le},s));case 5:K.next=10;break;case 7:return K.prev=7,K.t0=K.catch(2),K.abrupt("return");case 10:S.ZP.success("\u4EFB\u52A1\u63D0\u4EA4\u6210\u529F"),Ue(),t(!1);case 13:case"end":return K.stop()}},a,null,[[2,7]])}));return function(i){return f.apply(this,arguments)}}(),He=function(){o.resetFields(),J(!0)},ze=function(){ge.resetFields(),t(!0)},Xe=function(){o.submit()},Qe=function(){J(!1)},Je=function(){ge.submit()},_e=function(){t(!1)},qe=function(){var f=v()(l()().mark(function a(i){return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,(0,b.gz)({deviceId:i.deviceId||"",channel:i.channel||""});case 3:s.next=8;break;case 5:return s.prev=5,s.t0=s.catch(0),s.abrupt("return");case 8:J(!1),D();case 10:case"end":return s.stop()}},a,null,[[0,5]])}));return function(i){return f.apply(this,arguments)}}();return(0,e.jsx)(_._z,{children:(0,e.jsxs)(c.Z,{defaultActiveKey:"1",onChange:function(a){a==="1"?D():a==="2"&&Ue()},centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,e.jsx)(ae.Z,{tab:"\u8BBE\u5907\u767D\u540D\u5355",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(y.ZP,{onClick:He,children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(Ze.Z,{columns:we,dataSource:ue}),(0,e.jsx)(Ce.Z,{title:"\u6DFB\u52A0\u767D\u540D\u5355",visible:V,onOk:Xe,onCancel:Qe,children:(0,e.jsxs)(g.Z,{form:o,onFinish:qe,children:[(0,e.jsx)(g.Z.Item,{name:"deviceId",label:"\u8BBE\u5907id",children:(0,e.jsx)(M.Z,{})}),(0,e.jsx)(g.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Ie.Z,{options:(0,O.FG)()})})]})})]})},"1"),(0,e.jsx)(ae.Z,{tab:"\u5237\u6570\u636E",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(y.ZP,{onClick:ze,children:"\u6DFB\u52A0\u4EFB\u52A1"}),(0,e.jsx)(Ze.Z,{columns:Ye,dataSource:se}),(0,e.jsx)(Ce.Z,{title:"\u6DFB\u52A0\u4EFB\u52A1",visible:r,onOk:Je,onCancel:_e,children:(0,e.jsxs)(g.Z,{labelCol:{span:6},wrapperCol:{span:18},form:ge,onFinish:Ge,children:[(0,e.jsx)(g.Z.Item,{label:"\u5E94\u7528",name:"appId",children:(0,e.jsx)(Ie.Z,{mode:"multiple",options:N.map(function(f){return{label:f.name,value:f.id}})})}),(0,e.jsx)(g.Z.Item,{name:"incomeYuan",label:"\u91D1\u989D\uFF08\u5143\uFF09",children:(0,e.jsx)(M.Z,{})}),(0,e.jsx)(g.Z.List,{name:"scheduleTime",children:function(a,i){var P=i.add,s=i.remove;return(0,e.jsxs)(e.Fragment,{children:[a.map(function(le){var xe=le.key,K=le.name;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Be.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(Pe.Z,{span:18,children:(0,e.jsx)(g.Z.Item,{labelCol:{xs:{span:24},sm:{span:8}},name:[K,"time"],label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],children:(0,e.jsx)(U.default,{format:"YYYY-MM-DD HH:mm",showTime:{format:"HH:mm"}})})}),(0,e.jsx)(Pe.Z,{children:(0,e.jsx)(te.Z,{onClick:function(){return s(K)}})})]},xe)})}),(0,e.jsx)(g.Z.Item,{children:(0,e.jsx)(y.ZP,{type:"dashed",onClick:function(){return P()},block:!0,children:"\u6DFB\u52A0\u5F00\u59CB\u65F6\u95F4"})})]})}})]})})]})},"2"),(0,e.jsx)(ae.Z,{tab:"\u4E0A\u4F20\u8D44\u6E90",children:(0,e.jsx)(k,{})},"3"),(0,e.jsx)(ae.Z,{tab:"\u975E\u6CD5\u5E94\u7528",children:(0,e.jsx)(ee,{})},"4"),(0,e.jsx)(ae.Z,{tab:"\u7528\u6237\u767D\u540D\u5355",children:(0,e.jsx)(Oe,{})},"5")]})})},$e=Re},42767:function(Fe,w,n){n.d(w,{Z:function(){return Be}});var G=n(5574),F=n.n(G),H=n(55241),A=n(2487),re=n(71230),l=n(7134),Z=n(67294),v=n(52043),h=n(58125),j=n(15009),b=n.n(j),O=n(97857),B=n.n(O),te=n(99289),_=n.n(te),g=n(40110),M=n(67539),C=n(55102),y=n(42075),R=n(14726),T=n(17788),S=n(4575),c=n(85893),Ze=function(U){var ae=(0,Z.useState)(),he=F()(ae,2),oe=he[0],E=he[1],je=(0,Z.useState)(),ce=F()(je,2),Se=ce[0],be=ce[1],Me=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(x){var k=x.setSelectedKeys,q=x.selectedKeys,L=x.confirm,W=x.clearFilters;return(0,c.jsxs)("div",{style:{padding:8},children:[(0,c.jsx)(C.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:q[0],onChange:function($){return k($.target.value?[$.target.value]:[])},onPressEnter:function(){return L()},style:{marginBottom:8,display:"block"}}),(0,c.jsxs)(y.Z,{children:[(0,c.jsx)(R.ZP,{onClick:function(){return L()},type:"primary",children:"\u641C\u7D22"}),(0,c.jsx)(R.ZP,{onClick:function(){return W&&W()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(x,k){return typeof x=="string"&&typeof(k==null?void 0:k.appName)=="string"?k.appName.includes(x):!1},filterIcon:function(x){return(0,c.jsx)(g.Z,{style:{color:x?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(x){var k=x.setSelectedKeys,q=x.selectedKeys,L=x.confirm,W=x.clearFilters;return(0,c.jsxs)("div",{style:{padding:8},children:[(0,c.jsx)(C.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:q[0],onChange:function($){return k($.target.value?[$.target.value]:[])},onPressEnter:function(){return L()},style:{marginBottom:8,display:"block"}}),(0,c.jsxs)(y.Z,{children:[(0,c.jsx)(R.ZP,{onClick:function(){return L()},type:"primary",children:"\u641C\u7D22"}),(0,c.jsx)(R.ZP,{onClick:function(){return W&&W()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(x,k){return typeof x=="string"&&typeof(k==null?void 0:k.packageName)=="string"?k.packageName.includes(x):!1},filterIcon:function(x){return(0,c.jsx)(g.Z,{style:{color:x?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],ke=function(){var e=_()(b()().mark(function x(){var k,q,L,W;return b()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,(0,S.ai)();case 2:k=$.sent,k.data&&(L=[],W=[],(q=U.data.localAppList)===null||q===void 0||q.forEach(function(Ee){var Ae;(Ae=k.data)!==null&&Ae!==void 0&&Ae.some(function(Oe){return Oe.packageName===Ee.packageName})?L.push(B()(B()({},Ee),{},{evil:!0})):W.push(B()(B()({},Ee),{},{evil:!1}))}),E([].concat(L,W)),be([].concat(L,W)));case 4:case"end":return $.stop()}},x)}));return function(){return e.apply(this,arguments)}}();return(0,Z.useEffect)(function(){ke()},[]),(0,c.jsx)(T.Z,{style:{width:600},onCancel:U.onClose,visible:!0,footer:[],children:(0,c.jsx)(M.Z,{onRow:function(x){return{style:{backgroundColor:x.evil?"red":"transparent"}}},search:!1,onReset:function(){be(oe)},columns:Me,dataSource:Se})})},Ce=Ze,Ie=function(U){var ae=(0,Z.useState)(!1),he=F()(ae,2),oe=he[0],E=he[1],je=(0,v.E7)(U.data.env);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(H.Z,{content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("p",{children:[(0,c.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,h.P)(U.data.income),"\u5143"]}),(0,c.jsxs)("p",{children:[(0,c.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,h.D)(U.data.realMoney),"\u5143"]}),U.data.localAppList&&U.data.localAppList.length>0&&(0,c.jsxs)("p",{children:[(0,c.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),U.data.localAppList.length,"\u4E2A",(0,c.jsx)("a",{onClick:function(){E(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),je.length>0&&(0,c.jsx)(A.Z,{size:"small",header:(0,c.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:je,renderItem:function(Se){return(0,c.jsx)(A.Z.Item,{children:Se})}})]}),children:(0,c.jsxs)(re.Z,{children:[(0,c.jsx)(l.C,{src:U.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,c.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:je.length>0?"red":""},children:["id:",U.data.id,(0,c.jsx)("br",{}),U.data.nickname||U.data.mobile]})]})}),oe&&(0,c.jsx)(Ce,{onClose:function(){E(!1)},data:U.data})]})},Be=Ie},4575:function(Fe,w,n){n.d(w,{XM:function(){return j},ai:function(){return v},nr:function(){return g},re:function(){return te},vE:function(){return O}});var G=n(15009),F=n.n(G),H=n(97857),A=n.n(H),re=n(99289),l=n.n(re),Z=n(35312);function v(C){return h.apply(this,arguments)}function h(){return h=l()(F()().mark(function C(y){return F()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",(0,Z.request)("/api/superAdmin/evilAppList",A()({method:"GET"},y||{})));case 1:case"end":return T.stop()}},C)})),h.apply(this,arguments)}function j(C,y){return b.apply(this,arguments)}function b(){return b=l()(F()().mark(function C(y,R){return F()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,Z.request)("/api/superAdmin/saveEvilApp",A()({method:"POST",headers:{"Content-Type":"application/json"},data:y},R||{})));case 1:case"end":return S.stop()}},C)})),b.apply(this,arguments)}function O(C,y){return B.apply(this,arguments)}function B(){return B=l()(F()().mark(function C(y,R){return F()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,Z.request)("/api/superAdmin/saveWhiteUser",A()({method:"POST",params:A()({},y)},R||{})));case 1:case"end":return S.stop()}},C)})),B.apply(this,arguments)}function te(C,y){return _.apply(this,arguments)}function _(){return _=l()(F()().mark(function C(y,R){return F()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,Z.request)("/api/superAdmin/transfer",A()({method:"POST",params:A()({},y)},R||{})));case 1:case"end":return S.stop()}},C)})),_.apply(this,arguments)}function g(C){return M.apply(this,arguments)}function M(){return M=l()(F()().mark(function C(y){return F()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",(0,Z.request)("/api/superAdmin/whiteUserList",A()({method:"GET"},y||{})));case 1:case"end":return T.stop()}},C)})),M.apply(this,arguments)}},52043:function(Fe,w,n){n.d(w,{E7:function(){return F},FG:function(){return G},RQ:function(){return re},XY:function(){return H},aV:function(){return l},m0:function(){return A}});var G=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},F=function(v){var h=[];if(!v)return h;for(var j=v>>1,b=["\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"],O=0,B=b;O<B.length;O++){var te=B[O];j&1&&h.push(te),j>>=1}return h},H=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"}]},A=function(v){var h=new Date(v),j=h.getFullYear().toString().padStart(4,"0"),b=(h.getMonth()+1).toString().padStart(2,"0"),O=h.getDate().toString().padStart(2,"0");return j+b+O},re=function(v,h){var j=v.toString();return j.padStart(h,"0")},l=function(v){var h=v;return h<1024?h+" B":(h=parseFloat((h/1024).toFixed(2)),h<1024?h+" KB":(h=parseFloat((h/1024).toFixed(2)),h+" MB"))}},32400:function(Fe,w,n){n.d(w,{p:function(){return Z}});var G=n(15009),F=n.n(G),H=n(99289),A=n.n(H),re=n(8322),l=n.n(re);function Z(h){return v.apply(this,arguments)}function v(){return v=A()(F()().mark(function h(j){return F()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",new Promise(function(B,te){var _=new(l()).ArrayBuffer,g=new FileReader;g.onload=function(M){var C;_.append((C=M.target)===null||C===void 0?void 0:C.result),B(_.end())},g.onerror=function(M){te(M)},g.readAsArrayBuffer(j)}));case 1:case"end":return O.stop()}},h)})),v.apply(this,arguments)}},58125:function(Fe,w,n){n.d(w,{D:function(){return F},P:function(){return G}});var G=function(A){return A?parseFloat((A/1e5).toFixed(2)):0},F=function(A){return A?parseFloat((A/100).toFixed(2)):0}}}]);