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.

2 lines
7.9 KiB

4 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[990],{40110:function(V,M,e){var j=e(1413),s=e(67294),b=e(509),u=e(91146),R=function(h,P){return s.createElement(u.Z,(0,j.Z)((0,j.Z)({},h),{},{ref:P,icon:b.Z}))},m=s.forwardRef(R);M.Z=m},42521:function(V,M,e){e.r(M);var j=e(15009),s=e.n(j),b=e(97857),u=e.n(b),R=e(99289),m=e.n(R),p=e(5574),h=e.n(p),P=e(48357),B=e(80484),U=e(11415),W=e(90930),y=e(67539),E=e(39615),A=e(57470),S=e(64317),C=e(34540),Z=e(35312),g=e(13169),_=e(96074),i=e(16250),d=e(27484),O=e.n(d),n=e(9220),D=e(67294),J=e(96974),Q=e(42767),r=e(85893),X=function(){var w=(0,D.useRef)(),Y=(0,D.useRef)(),k=(0,D.useState)(!1),$=h()(k,2),L=$[0],q=$[1],ee=(0,Z.useIntl)(),te=(0,J.UO)(),K=te.code,ne=(0,D.useState)(),F=h()(ne,2),l=F[0],re=F[1],ae=(0,D.useState)([]),G=h()(ae,2),z=G[0],_e=G[1],x=function(){return window.innerWidth<=768},se=(0,D.useState)({deviceId:{show:!x()},appName:{show:!x()},platform:{show:!x()},deviceBrand:{show:!x()},deviceName:{show:!x()},ip:{show:!x()}}),N=h()(se,2),ie=N[0],ue=N[1],oe=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(t,o){if(o.user)return(0,r.jsx)(Q.Z,{data:o.user})}},{title:"\u5E73\u53F0",dataIndex:"platform",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:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(t){return t/100}},{title:"ecpm-\u4EE3\u7406\u6536\u5165(\u5143)",dataIndex:"ecpmAdmin",hideInSearch:!0,renderText:function(t){return t/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(t,o){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:o.deviceBrand}),(0,r.jsx)("p",{children:o.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],de=function(){var a=m()(s()().mark(function t(o){var v,c,f;return s()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,(0,P._5)(u()(u()({},o),{},{code:K}));case 2:return f=I.sent,I.abrupt("return",{data:(v=f.data)===null||v===void 0?void 0:v.data,total:(c=f.data)===null||c===void 0?void 0:c.total,success:!0});case 4:case"end":return I.stop()}},t)}));return function(o){return a.apply(this,arguments)}}(),le=function(){var a=m()(s()().mark(function t(){var o;return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,B.OE)({appCode:K});case 2:o=c.sent,o.data&&re(o.data);case 4:case"end":return c.stop()}},t)}));return function(){return a.apply(this,arguments)}}(),H=function(){var a=m()(s()().mark(function t(o){var v;return s()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,B.di)(u()(u()({},o),{},{code:K}));case 2:v=f.sent,v.data&&_e(v.data);case 4:case"end":return f.stop()}},t)}));return function(o){return a.apply(this,arguments)}}();(0,D.useEffect)(function(){var a,t;(a=w.current)===null||a===void 0||a.reload(),(t=Y.current)===null||t===void 0||t.reload(),le(),H(void 0)},[K]);var T=function(t){return t?parseFloat((t/1e5).toFixed(2)):0},ce=z.map(function(a){return{date:function(){var t=a.date+"",o=t.slice(0,4),v=t.slice(4,6),c=t.slice(6,8);return"".concat(o,"-").concat(v,"-").concat(c)}(),income:T(a.income)}}),me={data:ce,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+T(z.reduce(function(a,t){return a+(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)(W._z,{children:(0,r.jsxs)(g.Z,{defaultActiveKey:"2",centered:!0,style:{background