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
17 KiB
1 lines
17 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{40110:function(oe,$,e){var N=e(1413),u=e(67294),H=e(509),d=e(91146),X=function(c,n){return u.createElement(d.Z,(0,N.Z)((0,N.Z)({},c),{},{ref:n,icon:H.Z}))},x=u.forwardRef(X);$.Z=x},24666:function(oe,$,e){e.r($),e.d($,{default:function(){return z}});var N=e(97857),u=e.n(N),H=e(15009),d=e.n(H),X=e(99289),x=e.n(X),h=e(5574),c=e.n(h),n=e(48357),M=e(78677),j=e(39615),Z=e(90930),W=e(67539),k=e(57470),w=e(64317),P=e(34540),b=e(13169),V=e(71230),p=e(15746),R=e(16250),pe=e(27484),r=e.n(pe),me=e(9220),T=e(67294),he=e(96974),S=function(a){return a?parseFloat((a/1e5).toFixed(2)):0},Se=function(a){return a?parseFloat((a/100).toFixed(2)):0},O=e(26839),_=function(){return _=Object.assign||function(f){for(var a,g=1,v=arguments.length;g<v;g++){a=arguments[g];for(var E in a)Object.prototype.hasOwnProperty.call(a,E)&&(f[E]=a[E])}return f},_.apply(this,arguments)},q=(0,T.forwardRef)(function(f,a){return T.createElement(O.P,_({},f,{chartType:"Pie",ref:a}))}),ne=q,re=e(47676),Q=e(4393),t=e(85893),ue=re.default.RangePicker,de=function(a){var g=(0,T.useState)([]),v=c()(g,2),E=v[0],G=v[1],L=function(K){return K&&K>=r()().startOf("day")},ee=function(){var Y=x()(d()().mark(function K(F){var y,J,A,s;return d()().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,(0,n.jD)(F);case 2:J=te.sent,A=[],(y=J.data)===null||y===void 0||y.forEach(function(C){C.advType===1&&A.push({type:"\u6A2A\u5E45",value:S(C.income)}),C.advType===2&&A.push({type:"\u63D2\u9875",value:S(C.income)}),C.advType===3&&A.push({type:"\u89C6\u9891",value:S(C.income)})}),s=A.reduce(function(C,ve){return C+ve.value},0),A.forEach(function(C){C.\u6536\u5165=C.value+"\u5143",s>0&&(C.\u767E\u5206\u6BD4=(C.value/s*100).toFixed(1)+"%")}),G(A);case 8:case"end":return te.stop()}},K)}));return function(F){return Y.apply(this,arguments)}}(),ie={data:E,title:{title:"\u5386\u53F2\u6570\u636E",align:"center"},angleField:"value",colorField:"type",height:200,marginTop:20,label:{text:"value",position:"outside"},legend:{color:{title:!1,position:"right",rowPadding:5}},tooltip:{title:"type",items:[{name:"\u6536\u5165",field:"\u6536\u5165"},{name:"\u5360\u6BD4",field:"\u767E\u5206\u6BD4"}]}},se=function(K,F){var y=parseInt(F[0]),J=parseInt(F[1]);ee(y&&J?{code:a.appCode,beginDate:y,endDate:J}:{code:a.appCode})};return(0,T.useEffect)(function(){ee({code:a.appCode})},[a.appCode]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(Q.Z,{style:{height:300},children:[(0,t.jsx)(ue,{onChange:se,format:"YYYYMMDD",disabledDate:L}),E.length>0&&(0,t.jsx)(ne,u()({},ie))]})})},ge=de,ye=function(a){var g=(0,T.useState)([]),v=c()(g,2),E=v[0],G=v[1],L=function(){var ie=x()(d()().mark(function se(){var Y,K,F,y;return d()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,(0,n.R2)({code:a.appCode});case 2:K=A.sent,F=[],(Y=K.data)===null||Y===void 0||Y.forEach(function(s){s.advType===1&&F.push({type:"\u6A2A\u5E45",value:S(s.income)}),s.advType===2&&F.push({type:"\u63D2\u9875",value:S(s.income)}),s.advType===3&&F.push({type:"\u89C6\u9891",value:S(s.income)})}),y=F.reduce(function(s,ce){return s+ce.value},0),F.forEach(function(s){s.\u6536\u5165=s.value+"\u5143",y>0&&(s.\u767E\u5206\u6BD4=(s.value/y*100).toFixed(1)+"%")}),G(F);case 8:case"end":return A.stop()}},se)}));return function(){return ie.apply(this,arguments)}}(),ee={data:E,title:{title:"\u4ECA\u65E5\u6570\u636E",align:"center"},angleField:"value",colorField:"type",height:200,marginTop:20,label:{text:"value",position:"outside"},legend:{color:{title:!1,position:"right",rowPadding:5}},tooltip:{title:"type",items:[{name:"\u6536\u5165",field:"\u6536\u5165"},{name:"\u5360\u6BD4",field:"\u767E\u5206\u6BD4"}]}};return(0,T.useEffect)(function(){L()},[a.appCode]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(Q.Z,{style:{height:300},children:E.length>0&&(0,t.jsx)(ne,u()({},ee))})})},B=ye,l=e(42767),m=function(){var a=(0,T.useRef)(),g=(0,T.useState)(void 0),v=c()(g,2),E=v[0],G=v[1],L=function(){return window.innerWidth<=768},ee=(0,T.useState)({deviceId:{show:!L()},appName:{show:!L()},platform:{show:!L()},deviceBrand:{show:!L()},deviceName:{show:!L()},ip:{show:!L()},advType:{show:!L()}}),ie=c()(ee,2),se=ie[0],Y=ie[1],K=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",width:80,valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45",status:"Success"},2:{text:"\u63D2\u9875",status:"Success"},3:{text:"\u6FC0\u52B1\u89C6\u9891",status:"Success"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(i){return i/100}},{title:"\u5355\u6761\u6536\u5165(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(i){return S(i)}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(i,I){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:I.deviceBrand}),(0,t.jsx)("p",{children:I.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u4EE3\u7406",dataIndex:"adminName",hideInSearch:!0,valueType:"textarea"},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(i,I){if(I.user)return(0,t.jsx)(l.Z,{data:I.user})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u7528\u6237id",hideInTable:!0,dataIndex:"userId"}],F=(0,he.UO)(),y=F.code,J=(0,T.useState)(),A=c()(J,2),s=A[0],ce=A[1],te=(0,T.useState)([]),C=c()(te,2),ve=C[0],Ce=C[1],je=j.Z.Divider,Ie=(0,T.useState)(!1),Ee=c()(Ie,2),fe=Ee[0],De=Ee[1],Pe=function(){var o=x()(d()().mark(function i(I){var U;return d()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,(0,n.d1)({appCode:I});case 2:U=D.sent,U.data&&ce(U.data);case 4:case"end":return D.stop()}},i)}));return function(I){return o.apply(this,arguments)}}(),Ae=function(){var o=x()(d()().mark(function i(I){var U;return d()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,(0,n.Zb)(u()(u()({},I),{},{code:y}));case 2:U=D.sent,U.data&&Ce(U.data);case 4:case"end":return D.stop()}},i)}));return function(I){return o.apply(this,arguments)}}();(0,T.useEffect)(function(){var o;(o=a.current)===null||o===void 0||o.reload(),Pe(y),Ae({code:y})},[y]);var Te=ve.map(function(o){return{date:function(){var i=o.date+"",I=i.slice(0,4),U=i.slice(4,6),ae=i.slice(6,8);return"".concat(I,"-").concat(U,"-").concat(ae)}(),income:S(o.income)}}),Fe={data:Te,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+S(ve.reduce(function(o,i){return o+(i.income?i.income:0)},0))+"\u5143",height:400,label:{text:function(i){return i.income>0?i.income:""},textBaseline:"bottom"}};return(0,t.jsx)(Z._z,{children:(0,t.jsxs)(b.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,t.jsx)(R.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,t.jsx)(W.Z,{headerTitle:E?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+S(E)+"\u5143":"",actionRef:a,rowKey:"key",search:{labelWidth:120},request:function(){var o=x()(d()().mark(function i(I){var U,ae,D,xe;return d()().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.next=2,(0,n._5)(u()(u()({},I),{},{code:y}));case 2:return D=le.sent,I.current===1&&G((xe=D.data)===null||xe===void 0?void 0:xe.sum),le.abrupt("return",{data:(U=D.data)===null||U===void 0?void 0:U.data,total:(ae=D.data)===null||ae===void 0?void 0:ae.total,success:!0});case 5:case"end":return le.stop()}},i)}));return function(i){return o.apply(this,arguments)}}(),columns:K,columnsState:{value:se,onChange:function(i){Y(i)}}})},"1"),(0,t.jsxs)(R.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,t.jsx)(me.Z,{onResize:function(i){De(i.width<596)},children:(0,t.jsx)(j.Z,{children:(0,t.jsxs)(j.Z.Group,{direction:fe?"column":"row",children:[(0,t.jsx)(j.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:S(s==null?void 0:s.lastMonthIncome)}}),(0,t.jsx)(je,{type:fe?"horizontal":"vertical"}),(0,t.jsx)(j.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:S(s==null?void 0:s.thisMonthIncome)}}),(0,t.jsx)(je,{type:fe?"horizontal":"vertical"}),(0,t.jsx)(j.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:S(s==null?void 0:s.todayIncome)}}),(0,t.jsx)(je,{type:fe?"horizontal":"vertical"}),(0,t.jsx)(j.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:S(s==null?void 0:s.yesterdayIncome)}})]})})},"resize-observer"),(0,t.jsxs)(V.Z,{children:[(0,t.jsx)(p.Z,{span:10,offset:1,children:(0,t.jsx)(ge,{appCode:y||""})}),(0,t.jsx)(p.Z,{span:10,offset:2,children:(0,t.jsx)(B,{appCode:y||""})})]}),(0,t.jsxs)(k.t,{defaultCollapsed:!0,split:!0,onFinish:Ae,children:[(0,t.jsx)(w.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",3:"\u767E\u5EA6\u8054\u76DF",4:"Mintegral",5:"\u5FEB\u624B",6:"\u6E38\u53EF\u8D62",7:"Sigmob",8:"Admob"}}),(0,t.jsx)(w.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,t.jsx)(P.Z,{fieldProps:{disabledDate:function(i){return i&&i>=r()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,t.jsx)(M.Z,u()({},Fe))]},"2")]})})},z=m},42767:function(oe,$,e){e.d($,{Z:function(){return S}});var N=e(5574),u=e.n(N),H=e(55241),d=e(2487),X=e(71230),x=e(7134),h=e(67294),c=e(52043),n=e(15009),M=e.n(n),j=e(97857),Z=e.n(j),W=e(99289),k=e.n(W),w=e(40110),P=e(67539),b=e(55102),V=e(42075),p=e(14726),R=e(17788),pe=e(4575),r=e(85893),me=function(O){var _=(0,h.useState)(),q=u()(_,2),ne=q[0],re=q[1],Q=(0,h.useState)(),t=u()(Q,2),ue=t[0],de=t[1],ge=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(l){var m=l.setSelectedKeys,z=l.selectedKeys,f=l.confirm,a=l.clearFilters;return(0,r.jsxs)("div",{style:{padding:8},children:[(0,r.jsx)(b.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:z[0],onChange:function(v){return m(v.target.value?[v.target.value]:[])},onPressEnter:function(){return f()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(V.Z,{children:[(0,r.jsx)(p.ZP,{onClick:function(){return f()},type:"primary",children:"\u641C\u7D22"}),(0,r.jsx)(p.ZP,{onClick:function(){return a&&a()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(l,m){return typeof l=="string"&&typeof(m==null?void 0:m.appName)=="string"?m.appName.includes(l):!1},filterIcon:function(l){return(0,r.jsx)(w.Z,{style:{color:l?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(l){var m=l.setSelectedKeys,z=l.selectedKeys,f=l.confirm,a=l.clearFilters;return(0,r.jsxs)("div",{style:{padding:8},children:[(0,r.jsx)(b.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:z[0],onChange:function(v){return m(v.target.value?[v.target.value]:[])},onPressEnter:function(){return f()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(V.Z,{children:[(0,r.jsx)(p.ZP,{onClick:function(){return f()},type:"primary",children:"\u641C\u7D22"}),(0,r.jsx)(p.ZP,{onClick:function(){return a&&a()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(l,m){return typeof l=="string"&&typeof(m==null?void 0:m.packageName)=="string"?m.packageName.includes(l):!1},filterIcon:function(l){return(0,r.jsx)(w.Z,{style:{color:l?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],ye=function(){var B=k()(M()().mark(function l(){var m,z,f,a;return M()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,(0,pe.ai)();case 2:m=v.sent,m.data&&(f=[],a=[],(z=O.data.localAppList)===null||z===void 0||z.forEach(function(E){var G;(G=m.data)!==null&&G!==void 0&&G.some(function(L){return L.packageName===E.packageName})?f.push(Z()(Z()({},E),{},{evil:!0})):a.push(Z()(Z()({},E),{},{evil:!1}))}),re([].concat(f,a)),de([].concat(f,a)));case 4:case"end":return v.stop()}},l)}));return function(){return B.apply(this,arguments)}}();return(0,h.useEffect)(function(){ye()},[]),(0,r.jsx)(R.Z,{style:{width:600},onCancel:O.onClose,visible:!0,footer:[],children:(0,r.jsx)(P.Z,{onRow:function(l){return{style:{backgroundColor:l.evil?"red":"transparent"}}},search:!1,onReset:function(){de(ne)},columns:ge,dataSource:ue})})},T=me,he=function(O){var _=(0,h.useState)(!1),q=u()(_,2),ne=q[0],re=q[1],Q=(0,c.E7)(O.data.env);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(H.Z,{content:(0,r.jsxs)(r.Fragment,{children:[O.data.localAppList&&O.data.localAppList.length>0&&(0,r.jsxs)("p",{children:[(0,r.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),O.data.localAppList.length,"\u4E2A",(0,r.jsx)("a",{onClick:function(){re(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),Q.length>0&&(0,r.jsx)(d.Z,{size:"small",header:(0,r.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:Q,renderItem:function(ue){return(0,r.jsx)(d.Z.Item,{children:ue})}})]}),children:(0,r.jsxs)(X.Z,{children:[(0,r.jsx)(x.C,{src:O.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,r.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:Q.length>0?"red":""},children:["id:",O.data.id,(0,r.jsx)("br",{}),O.data.nickname||O.data.mobile]})]})}),ne&&(0,r.jsx)(T,{onClose:function(){re(!1)},data:O.data})]})},S=he},4575:function(oe,$,e){e.d($,{XM:function(){return M},ai:function(){return c},nr:function(){return k},vE:function(){return Z}});var N=e(15009),u=e.n(N),H=e(97857),d=e.n(H),X=e(99289),x=e.n(X),h=e(35312);function c(P){return n.apply(this,arguments)}function n(){return n=x()(u()().mark(function P(b){return u()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",(0,h.request)("/api/superAdmin/evilAppList",d()({method:"GET"},b||{})));case 1:case"end":return p.stop()}},P)})),n.apply(this,arguments)}function M(P,b){return j.apply(this,arguments)}function j(){return j=x()(u()().mark(function P(b,V){return u()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.abrupt("return",(0,h.request)("/api/superAdmin/saveEvilApp",d()({method:"POST",headers:{"Content-Type":"application/json"},data:b},V||{})));case 1:case"end":return R.stop()}},P)})),j.apply(this,arguments)}function Z(P,b){return W.apply(this,arguments)}function W(){return W=x()(u()().mark(function P(b,V){return u()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.abrupt("return",(0,h.request)("/api/superAdmin/saveWhiteUser",d()({method:"POST",params:d()({},b)},V||{})));case 1:case"end":return R.stop()}},P)})),W.apply(this,arguments)}function k(P){return w.apply(this,arguments)}function w(){return w=x()(u()().mark(function P(b){return u()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",(0,h.request)("/api/superAdmin/whiteUserList",d()({method:"GET"},b||{})));case 1:case"end":return p.stop()}},P)})),w.apply(this,arguments)}},52043:function(oe,$,e){e.d($,{E7:function(){return u},FG:function(){return N},aV:function(){return x}});var N=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},u=function(c){var n=[];if(!c)return n;for(var M=c>>1,j=["\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"],Z=0,W=j;Z<W.length;Z++){var k=W[Z];M&1&&n.push(k),M>>=1}return n},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"}]},d=function(c){var n=new Date(c),M=n.getFullYear().toString().padStart(4,"0"),j=(n.getMonth()+1).toString().padStart(2,"0"),Z=n.getDate().toString().padStart(2,"0");return M+j+Z},X=function(c,n){var M=c.toString();return M.padStart(n,"0")},x=function(c){var n=c;return n<1024?n+" B":(n=parseFloat((n/1024).toFixed(2)),n<1024?n+" KB":(n=parseFloat((n/1024).toFixed(2)),n+" MB"))}}}]);
|
|
|