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],{3089:function(ce,K,n){n.d(K,{Z:function(){return f}});var w=n(1413),A=n(67294),H={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"},G=H,q=n(91146),i=function(m,Z){return A.createElement(q.Z,(0,w.Z)((0,w.Z)({},m),{},{ref:Z,icon:G}))},y=A.forwardRef(i),f=y},38996:function(ce,K,n){n.r(K),n.d(K,{default:function(){return _e}});var w=n(97857),A=n.n(w),H=n(13769),G=n.n(H),q=n(15009),i=n.n(q),y=n(99289),f=n.n(y),h=n(5574),m=n.n(h),Z=n(48357),M=n(52043),R=n(1413),g=n(67294),de=n(509),te=n(91146),ae=function(S,I){return g.createElement(te.Z,(0,R.Z)((0,R.Z)({},S),{},{ref:I,icon:de.Z}))},ue=g.forwardRef(ae),se=ue,Pe=n(3089),be=n(90930),D=n(8232),W=n(55102),ie=n(42075),O=n(14726),Me=n(55241),pe=n(66309),ne=n(2453),Oe=n(13169),Fe=n(72051),fe=n(17788),Se=n(34041),Be=n(71230),xe=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(S){var I=S.onUploadSuccess,j=S.onUploadError,C=(0,g.useState)(!1),z=m()(C,2),L=z[0],$=z[1],_=(0,g.useState)([]),X=m()(_,2),k=X[0],Y=X[1],N=(0,g.useState)(null),J=m()(N,2),T=J[0],B=J[1],U=Re.Z.Dragger;(0,g.useEffect)(function(){function r(){return t.apply(this,arguments)}function t(){return t=f()(i()().mark(function v(){var u,o;return i()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(0,Z.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:o=new(Le())({region:"oss-cn-beijing",accessKeyId:u.data.accessKeyId,accessKeySecret:u.data.accessKeySecret,stsToken:u.data.securityToken,bucket:u.data.bucket}),B(o),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()}},v,null,[[0,11]])})),t.apply(this,arguments)}r()},[j]);var Q=function(t){var v=(k||[]).filter(function(u){return u.url!==t.url});Y(v)},c=function(){var r=f()(i()().mark(function t(v){var u,o,x,p;return i()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(u=v.file,!(u instanceof File)){F.next=26;break}return $(!0),F.prev=3,F.next=6,(0,Ke.p)(u);case 6:return o=F.sent,x="matrix/".concat(o,".").concat(u.name.split(".").pop()),F.next=10,T==null?void 0:T.put(x,u,{headers:{"Content-Type":u.type}});case 10:p="https://apks.bzgames.cn/".concat(x),I&&I(p),$(!1),Y(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),Y(function(oe){return[].concat(Ee()(oe),[{uid:u.uid,name:u.name,status:"error"}])});case 21:return F.prev=21,$(!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(v){return r.apply(this,arguments)}}();return(0,e.jsxs)(U,{fileList:k,multiple:!0,customRequest:c,onRemove:Q,disabled:L||!T,onPreview:function(){var r=f()(i()().mark(function t(v){return i()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,navigator.clipboard.writeText(v.url||"");case 2:ne.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+v.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"})]})},$e=We,De=n(67539),ve=n(35312);function Ye(P){return he.apply(this,arguments)}function he(){return he=f()(i()().mark(function P(S){return i()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/evilAppList",A()({method:"GET"},S||{})));case 1:case"end":return j.stop()}},P)})),he.apply(this,arguments)}function Ne(P,S){return ge.apply(this,arguments)}function ge(){return ge=f()(i()().mark(function P(S,I){return i()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,ve.request)("/api/superAdmin/saveEvilApp",A()({method:"POST",headers:{"Content-Type":"application/json"},data:S},I||{})));case 1:case"end":return C.stop()}},P)})),ge.apply(this,arguments)}function Ie(P,S){return je.apply(this,arguments)}function je(){return je=f()(i()().mark(function P(S,I){return i()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,ve.request)("/api/superAdmin/saveWhiteUser",A()({method:"POST",params:A()({},S)},I||{})));case 1:case"end":return C.stop()}},P)})),je.apply(this,arguments)}function Ve(P){return ye.apply(this,arguments)}function ye(){return ye=f()(i()().mark(function P(S){return i()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,ve.request)("/api/superAdmin/whiteUserList",A()({method:"GET"},S||{})));case 1:case"end":return j.stop()}},P)})),ye.apply(this,arguments)}var He=function(){var S=(0,g.useState)(!1),I=m()(S,2),j=I[0],C=I[1],z=(0,g.useState)([]),L=m()(z,2),$=L[0],_=L[1],X=(0,g.useState)([]),k=m()(X,2),Y=k[0],N=k[1],J=D.Z.useForm(),T=m()(J,1),B=T[0],U=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,v=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:v[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)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.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)(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,v=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:v[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)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.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)(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(){C(!0),B.setFieldsValue(r)},children:"\u7F16\u8F91"},"edit")}}],Q=function(){var c=f()(i()().mark(function r(){var t;return i()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ye();case 2:t=u.sent,t.data&&(_(t.data),N(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return c.apply(this,arguments)}}();return(0,g.useEffect)(function(){Q()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.ZP,{style:{marginBottom:"20px"},onClick:function(){C(!0),B.resetFields()},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){N($)},columns:U,dataSource:Y}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){B.submit(),C(!1)},onCancel:function(){C(!1)},children:(0,e.jsxs)(D.Z,{labelCol:{span:4},wrapperCol:{span:18},form:B,onFinish:function(){var c=f()(i()().mark(function r(t){return i()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ne(t);case 2:Q();case 3:case"end":return u.stop()}},r)}));return function(r){return c.apply(this,arguments)}}(),children:[(0,e.jsx)(D.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(W.Z,{type:"hidden"})}),(0,e.jsx)(D.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(W.Z,{})}),(0,e.jsx)(D.Z.Item,{label:"\u5305\u540D",name:"packageName",children:(0,e.jsx)(W.Z,{})})]})})]})},Ge=He,Ze=n(37804),ze=n(38171),Xe=function(){var S=(0,g.useState)(!1),I=m()(S,2),j=I[0],C=I[1],z=(0,g.useState)([]),L=m()(z,2),$=L[0],_=L[1],X=(0,g.useState)([]),k=m()(X,2),Y=k[0],N=k[1],J=D.Z.useForm(),T=m()(J,1),B=T[0],U=function(){var c=f()(i()().mark(function r(){var t;return i()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Ve();case 2:t=u.sent,t.data&&(_(t.data),N(t.data));case 4:case"end":return u.stop()}},r)}));return function(){return c.apply(this,arguments)}}(),Q=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",copyable:!0,hideInSearch:!0,filterDropdown:function(r){var t=r.setSelectedKeys,v=r.selectedKeys,u=r.confirm,o=r.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:v[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)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.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)(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,v=r.selectedKeys,u=r.confirm,o=r.clearFilters,x=v[0]?String(v[0]):"";return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(Ze.Z,{placeholder:"\u641C\u7D22 userId",value:x,onChange:function(ee){return t(ee?[ee]:[])},onPressEnter:function(){return u()},style:{marginBottom:8,display:"block",width:200}}),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(O.ZP,{onClick:function(){return u()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.ZP,{onClick:function(){return o&&o()},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)(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)(pe.Z,{color:"green",children:"\u5DF2\u542F\u7528"}):(0,e.jsx)(pe.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:f()(i()().mark(function t(){var v;return i()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ie({userId:((v=r.user)===null||v===void 0?void 0:v.id)||0,status:r.status===0?-1:0});case 2:U();case 3:case"end":return o.stop()}},t)})),children:r.status===0?"\u7981\u7528":"\u542F\u7528"},"edit")}}];return(0,g.useEffect)(function(){U()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.ZP,{style:{marginBottom:"20px"},onClick:function(){C(!0),B.resetFields()},children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(De.Z,{search:!1,onReset:function(){N($)},columns:Q,dataSource:Y}),(0,e.jsx)(fe.Z,{title:"\u7F16\u8F91",visible:j,onOk:function(){B.submit(),C(!1)},onCancel:function(){C(!1)},children:(0,e.jsx)(D.Z,{labelCol:{span:4},wrapperCol:{span:18},form:B,onFinish:function(){var c=f()(i()().mark(function r(t){var v;return i()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(v=t.userId,!v){o.next=5;break}return o.next=4,Ie({userId:v});case 4:U();case 5:case"end":return o.stop()}},r)}));return function(r){return c.apply(this,arguments)}}(),children:(0,e.jsx)(D.Z.Item,{label:"userId",name:"userId",children:(0,e.jsx)(Ze.Z,{style:{width:200}})})})})]})},Je=Xe,Qe=["scheduleTime"],qe=function(){var S=(0,g.useState)([]),I=m()(S,2),j=I[0],C=I[1],z=(0,g.useState)([]),L=m()(z,2),$=L[0],_=L[1],X=(0,g.useState)([]),k=m()(X,2),Y=k[0],N=k[1],J=(0,g.useState)(!1),T=m()(J,2),B=T[0],U=T[1],Q=(0,g.useState)(!1),c=m()(Q,2),r=c[0],t=c[1],v=D.Z.useForm(),u=m()(v,1),o=u[0],x=D.Z.useForm(),p=m()(x,1),ee=p[0],F=function(){var d=f()(i()().mark(function a(){var l;return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,Z.hy)();case 2:l=s.sent,l.data&&_(l.data);case 4:case"end":return s.stop()}},a)}));return function(){return d.apply(this,arguments)}}(),oe=function(){var d=f()(i()().mark(function a(l){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(l){s.next=2;break}return s.abrupt("return");case 2:return s.next=4,(0,Z.o9)({deviceId:l});case 4:F();case 5:case"end":return s.stop()}},a)}));return function(l){return d.apply(this,arguments)}}(),en=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0,filterDropdown:function(a){var l=a.setSelectedKeys,E=a.selectedKeys,s=a.confirm,V=a.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(W.Z,{placeholder:"\u641C\u7D22\u8BBE\u5907",value:E[0],onChange:function(b){return l(b.target.value?[b.target.value]:[])},onPressEnter:function(){return s()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(O.ZP,{onClick:function(){return s()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(O.ZP,{onClick:function(){return V&&V()},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)(se,{style:{color:a?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var l=(0,M.FG)(),E=l.find(function(s){return s.value===a});return E?E.label:a}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(a,l){return(0,e.jsx)(Me.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(l.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,e.jsx)("a",{children:"\u5220\u9664"})})}}],nn=function(a){var l=j.find(function(E){return E.id===a});return l?l.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)(pe.Z,{color:"blue",children:nn(a)},a)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(a){var l=(0,M.FG)(),E=l.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")}}],Ce=function(){var d=f()(i()().mark(function a(){var l;return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,Z.mW)();case 2:l=s.sent,l.data&&N(l.data);case 4:case"end":return s.stop()}},a)}));return function(){return d.apply(this,arguments)}}(),an=function(){var d=f()(i()().mark(function a(){var l;return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,Z.ln)();case 2:l=s.sent,l.data&&C(l.data);case 4:case"end":return s.stop()}},a)}));return function(){return d.apply(this,arguments)}}();(0,g.useEffect)(function(){an(),F(),Ce()},[]);var un=function(){var d=f()(i()().mark(function a(l){var E,s,V;return i()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return E=l.scheduleTime,s=G()(l,Qe),V=E.map(function(Ae){return me()(Ae.time).valueOf()}),b.prev=2,b.next=5,(0,Z.tI)(A()({scheduleTime:V},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"),Ce(),t(!1);case 13:case"end":return b.stop()}},a,null,[[2,7]])}));return function(l){return d.apply(this,arguments)}}(),sn=function(){o.resetFields(),U(!0)},ln=function(){ee.resetFields(),t(!0)},on=function(){o.submit()},cn=function(){U(!1)},dn=function(){ee.submit()},fn=function(){t(!1)},mn=function(){var d=f()(i()().mark(function a(l){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,(0,Z.gz)({deviceId:l.deviceId||"",channel:l.channel||""});case 3:s.next=8;break;case 5:return s.prev=5,s.t0=s.catch(0),s.abrupt("return");case 8:U(!1),F();case 10:case"end":return s.stop()}},a,null,[[0,5]])}));return function(l){return d.apply(this,arguments)}}();return(0,e.jsx)(be._z,{children:(0,e.jsxs)(Oe.Z,{defaultActiveKey:"1",onChange:function(a){a==="1"?F():a==="2"&&Ce()},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)(O.ZP,{onClick:sn,children:"\u6DFB\u52A0\u767D\u540D\u5355"}),(0,e.jsx)(Fe.Z,{columns:en,dataSource:$}),(0,e.jsx)(fe.Z,{title:"\u6DFB\u52A0\u767D\u540D\u5355",visible:B,onOk:on,onCancel:cn,children:(0,e.jsxs)(D.Z,{form:o,onFinish:mn,children:[(0,e.jsx)(D.Z.Item,{name:"deviceId",label:"\u8BBE\u5907id",children:(0,e.jsx)(W.Z,{})}),(0,e.jsx)(D.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Se.Z,{options:(0,M.FG)()})})]})})]})},"1"),(0,e.jsx)(le.Z,{tab:"\u5237\u6570\u636E",children:(0,e.jsxs)("div",{children:[(0,e.jsx)(O.ZP,{onClick:ln,children:"\u6DFB\u52A0\u4EFB\u52A1"}),(0,e.jsx)(Fe.Z,{columns:tn,dataSource:Y}),(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:ee,onFinish:un,children:[(0,e.jsx)(D.Z.Item,{label:"\u5E94\u7528",name:"appId",children:(0,e.jsx)(Se.Z,{mode:"multiple",options:j.map(function(d){return{label:d.name,value:d.id}})})}),(0,e.jsx)(D.Z.Item,{name:"incomeYuan",label:"\u91D1\u989D\uFF08\u5143\uFF09",children:(0,e.jsx)(W.Z,{})}),(0,e.jsx)(D.Z.List,{name:"scheduleTime",children:function(a,l){var E=l.add,s=l.remove;return(0,e.jsxs)(e.Fragment,{children:[a.map(function(V){var re=V.key,b=V.name;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Be.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(xe.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)(xe.Z,{children:(0,e.jsx)(Pe.Z,{onClick:function(){return s(b)}})})]},re)})}),(0,e.jsx)(D.Z.Item,{children:(0,e.jsx)(O.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)(Ge,{})},"4"),(0,e.jsx)(le.Z,{tab:"\u7528\u6237\u767D\u540D\u5355",children:(0,e.jsx)(Je,{})},"5")]})})},_e=qe},38171:function(ce,K,n){var w=n(55241),A=n(2487),H=n(71230),G=n(7134),q=n(67294),i=n(52043),y=n(85893),f=function(m){var Z=(0,i.E7)(m.data.env);return(0,y.jsx)(w.Z,{content:(0,y.jsx)(y.Fragment,{children:Z.length>0&&(0,y.jsx)(A.Z,{size:"small",header:(0,y.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:Z,renderItem:function(R){return(0,y.jsx)(A.Z.Item,{children:R})}})}),children:(0,y.jsxs)(H.Z,{children:[(0,y.jsx)(G.C,{src:m.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,y.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:Z.length>0?"red":""},children:["id:",m.data.id,(0,y.jsx)("br",{}),m.data.nickname||m.data.mobile]})]})})};K.Z=f},52043:function(ce,K,n){n.d(K,{E7:function(){return A},FG:function(){return w},aV:function(){return i}});var w=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},A=function(f){var h=[];if(!f)return h;for(var m=f>>1,Z=["\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"],M=0,R=Z;M<R.length;M++){var g=R[M];m&1&&h.push(g),m>>=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"}]},G=function(f){var h=new Date(f),m=h.getFullYear().toString().padStart(4,"0"),Z=(h.getMonth()+1).toString().padStart(2,"0"),M=h.getDate().toString().padStart(2,"0");return m+Z+M},q=function(f,h){var m=f.toString();return m.padStart(h,"0")},i=function(f){var h=f;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(ce,K,n){n.d(K,{p:function(){return y}});var w=n(15009),A=n.n(w),H=n(99289),G=n.n(H),q=n(8322),i=n.n(q);function y(h){return f.apply(this,arguments)}function f(){return f=G()(A()().mark(function h(m){return A()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",new Promise(function(R,g){var de=new(i()).ArrayBuffer,te=new FileReader;te.onload=function(ae){var ue;de.append((ue=ae.target)===null||ue===void 0?void 0:ue.result),R(de.end())},te.onerror=function(ae){g(ae)},te.readAsArrayBuffer(m)}));case 1:case"end":return M.stop()}},h)})),f.apply(this,arguments)}}}]);