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