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