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
8.6 KiB
1 lines
8.6 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{86408:function(g,f,e){e.r(f);var h=e(97857),l=e.n(h),x=e(15009),i=e.n(x),B=e(99289),P=e.n(B),v=e(5574),a=e.n(v),n=e(48357),E=e(11415),_=e(39615),m=e(90930),j=e(67539),T=e(57470),C=e(64317),$=e(34540),G=e(13169),S=e(16250),Y=e(27484),X=e.n(Y),w=e(9220),D=e(67294),Q=e(96974),M=e(58125),H=e(38171),r=e(85893),J=function(){var y=(0,D.useRef)(),k=(0,D.useState)(void 0),L=a()(k,2),K=L[0],q=L[1],I=function(){return window.innerWidth<=768},ee=(0,D.useState)({deviceId:{show:!I()},appName:{show:!I()},platform:{show:!I()},deviceBrand:{show:!I()},deviceName:{show:!I()},ip:{show:!I()},advType:{show:!I()}}),W=a()(ee,2),te=W[0],ae=W[1],ne=[{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(t){return t/100}},{title:"\u91D1\u5E01",dataIndex:"ecpmReal",hideInSearch:!0,renderText:function(t){return t}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(t,u){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:u.deviceBrand}),(0,r.jsx)("p",{children:u.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(t,u){if(u.user)return(0,r.jsx)(H.Z,{data:u.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"}],re=(0,Q.UO)(),b=re.code,se=(0,D.useState)(),F=a()(se,2),c=F[0],_e=F[1],ie=(0,D.useState)([]),Z=a()(ie,2),V=Z[0],ue=Z[1],R=_.Z.Divider,de=(0,D.useState)(!1),z=a()(de,2),U=z[0],oe=z[1],le=function(){var s=P()(i()().mark(function t(u){var o;return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,n.d1)({appCode:u});case 2:o=d.sent,o.data&&_e(o.data);case 4:case"end":return d.stop()}},t)}));return function(u){return s.apply(this,arguments)}}(),N=function(){var s=P()(i()().mark(function t(u){var o;return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,n.Zb)(l()(l()({},u),{},{code:b}));case 2:o=d.sent,o.data&&ue(o.data);case 4:case"end":return d.stop()}},t)}));return function(u){return s.apply(this,arguments)}}();(0,D.useEffect)(function(){var s;(s=y.current)===null||s===void 0||s.reload(),le(b),N({code:b})},[b]);var ce=V.map(function(s){return{date:function(){var t=s.date+"",u=t.slice(0,4),o=t.slice(4,6),O=t.slice(6,8);return"".concat(u,"-").concat(o,"-").concat(O)}(),income:(0,M.P)(s.income)}}),me={data:ce,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+(0,M.P)(V.reduce(function(s,t){return s+(t.income?t.income:0)},0))+"\u5143",height:400,label:{text:function(t){return t.income>0?t.income:""},textBaseline:"bottom"}};return(0,r.jsx)(m._z,{children:(0,r.jsxs)(G.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,r.jsx)(S.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,r.jsx)(j.Z,{headerTitle:K?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+(0,M.P)(K)+"\u5143":"",actionRef:y,rowKey:"key",search:{labelWidth:120},request:function(){var s=P()(i()().mark(function t(u){var o,O,d,A;return i()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,n._5)(l()(l()({},u),{},{code:b}));case 2:return d=p.sent,u.current===1&&q((A=d.data)===null||A===void 0?void 0:A.sum),p.abrupt("return",{data:(o=d.data)===null||o===void 0?void 0:o.data,total:(O=d.data)===null||O===void 0?void 0:O.total,success:!0});case 5:case"end":return p.stop()}},t)}));return function(t){return s.apply(this,arguments)}}(),columns:ne,columnsState:{value:te,onChange:function(t){ae(t)}}})},"1"),(0,r.jsxs)(S.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,r.jsx)(w.Z,{onResize:function(t){oe(t.width<596)},children:(0,r.jsx)(_.Z,{children:(0,r.jsxs)(_.Z.Group,{direction:U?"column":"row",children:[(0,r.jsx)(_.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,M.P)(c==null?void 0:c.lastMonthIncome)}}),(0,r.jsx)(R,{type:U?"horizontal":"vertical"}),(0,r.jsx)(_.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,M.P)(c==null?void 0:c.thisMonthIncome)}}),(0,r.jsx)(R,{type:U?"horizontal":"vertical"}),(0,r.jsx)(_.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,M.P)(c==null?void 0:c.todayIncome)}}),(0,r.jsx)(R,{type:U?"horizontal":"vertical"}),(0,r.jsx)(_.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,M.P)(c==null?void 0:c.yesterdayIncome)}})]})})},"resize-observer"),(0,r.jsxs)(T.t,{defaultCollapsed:!0,split:!0,onFinish:N,children:[(0,r.jsx)(C.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,r.jsx)(C.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,r.jsx)($.Z,{fieldProps:{disabledDate:function(t){return t&&t>=X()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,r.jsx)(E.Z,l()({},me))]},"2")]})})};f.default=J},38171:function(g,f,e){var h=e(55241),l=e(2487),x=e(71230),i=e(7134),B=e(67294),P=e(52043),v=e(58125),a=e(85893),n=function(_){var m=(0,P.E7)(_.data.env);return(0,a.jsx)(h.Z,{content:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,v.P)(_.data.income),"\u5143"]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,v.D)(_.data.realMoney),"\u5143"]}),m.length>0&&(0,a.jsx)(l.Z,{size:"small",header:(0,a.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:m,renderItem:function(T){return(0,a.jsx)(l.Z.Item,{children:T})}})]}),children:(0,a.jsxs)(x.Z,{children:[(0,a.jsx)(i.C,{src:_.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,a.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:m.length>0?"red":""},children:["id:",_.data.id,(0,a.jsx)("br",{}),_.data.nickname||_.data.mobile]})]})})};f.Z=n},52043:function(g,f,e){e.d(f,{E7:function(){return l},FG:function(){return h},RQ:function(){return B},XY:function(){return x},aV:function(){return P},m0:function(){return i}});var h=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},l=function(a){var n=[];if(!a)return n;for(var E=a>>1,_=["\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,j=_;m<j.length;m++){var T=j[m];E&1&&n.push(T),E>>=1}return n},x=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"}]},i=function(a){var n=new Date(a),E=n.getFullYear().toString().padStart(4,"0"),_=(n.getMonth()+1).toString().padStart(2,"0"),m=n.getDate().toString().padStart(2,"0");return E+_+m},B=function(a,n){var E=a.toString();return E.padStart(n,"0")},P=function(a){var n=a;return n<1024?n+" B":(n=parseFloat((n/1024).toFixed(2)),n<1024?n+" KB":(n=parseFloat((n/1024).toFixed(2)),n+" MB"))}},58125:function(g,f,e){e.d(f,{D:function(){return l},P:function(){return h}});var h=function(i){return i?parseFloat((i/1e5).toFixed(2)):0},l=function(i){return i?parseFloat((i/100).toFixed(2)):0}}}]);
|
|
|