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
6.0 KiB
2 lines
6.0 KiB
4 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{40110:function(Z,D,e){var O=e(1413),i=e(67294),M=e(509),o=e(91146),I=function(u,P){return i.createElement(o.Z,(0,O.Z)((0,O.Z)({},u),{},{ref:P,icon:M.Z}))},f=i.forwardRef(I);D.Z=f},86408:function(Z,D,e){e.r(D);var O=e(97857),i=e.n(O),M=e(15009),o=e.n(M),I=e(99289),f=e.n(I),R=e(5574),u=e.n(R),P=e(48357),V=e(11415),l=e(39615),F=e(90930),z=e(67539),$=e(57470),A=e(64317),N=e(34540),w=e(13169),C=e(16250),G=e(27484),H=e.n(G),J=e(9220),c=e(67294),Q=e(96974),m=e(58125),X=e(42767),a=e(85893),Y=function(){var U=(0,c.useRef)(),k=(0,c.useState)(void 0),b=u()(k,2),S=b[0],q=b[1],v=function(){return window.innerWidth<=768},ee=(0,c.useState)({deviceId:{show:!v()},appName:{show:!v()},platform:{show:!v()},deviceBrand:{show:!v()},deviceName:{show:!v()},ip:{show:!v()},advType:{show:!v()}}),B=u()(ee,2),te=B[0],ae=B[1],ne=[{title:"\u7528\u6237id",hideInTable:!0,dataIndex:"userId"},{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,r){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:r.deviceBrand}),(0,a.jsx)("p",{children:r.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,r){if(r.user)return(0,a.jsx)(X.Z,{data:r.user})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],re=(0,Q.UO)(),x=re.code,_e=(0,c.useState)(),y=u()(_e,2),d=y[0],se=y[1],de=(0,c.useState)([]),K=u()(de,2),L=K[0],ie=K[1],T=l.Z.Divider,oe=(0,c.useState)(!1),W=u()(oe,2),p=W[0],ue=W[1],le=function(){var n=f()(o()().mark(function t(r){var s;return o()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,(0,P.d1)({appCode:r});case 2:s=_.sent,s.data&&se(s.data);case 4:case"end":return _.stop()}},t)}));return function(r){return n.apply(this,arguments)}}(),g=function(){var n=f()(o()().mark(function t(r){var s;return o()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,(0,P.Zb)(i()(i()({},r),{},{code:x}));case 2:s=_.sent,s.data&&ie(s.data);case 4:case"end":return _.stop()}},t)}));return function(r){return n.apply(this,arguments)}}();(0,c.useEffect)(function(){var n;(n=U.current)===null||n===void 0||n.reload(),le(x),g({code:x})},[x]);var ce=L.map(function(n){return{date:function(){var t=n.date+"",r=t.slice(0,4),s=t.slice(4,6),E=t.slice(6,8);return"".concat(r,"-").concat(s,"-").concat(E)}(),income:(0,m.P)(n.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)(L.reduce(function(n,t){return n+(t.income?t.income:0)},0))+"\u5143",height:400,label:{text:function(t){return t.income>0?t.income:""},textBaseline:"bottom"}};return(0,a.jsx)(F._z,{children:(0,a.jsxs)(w.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,a.jsx)(C.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,a.jsx)(z.Z,{headerTitle:S?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+(0,m.P)(S)+
|