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

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