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
9.4 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{40110:function(te,b,t){var w=t(1413),x=t(67294),K=t(509),m=t(91146),W=function(S,C){return x.createElement(m.Z,(0,w.Z)((0,w.Z)({},S),{},{ref:C,icon:K.Z}))},D=x.forwardRef(W);b.Z=D},61999:function(te,b,t){t.r(b),t.d(b,{default:function(){return Te}});var w=t(97857),x=t.n(w),K=t(15009),m=t.n(K),W=t(99289),D=t.n(W),H=t(5574),S=t.n(H),C=t(48357),ae=t(78677),E=t(39615),ne=t(90930),re=t(67539),ie=t(57470),V=t(64317),de=t(34540),se=t(13169),le=t(71230),Q=t(15746),J=t(16250),ue=t(27484),X=t.n(ue),oe=t(9220),f=t(67294),ce=t(96974),v=t(58125),ve=t(26839),N=function(){return N=Object.assign||function(Z){for(var d,T=1,j=arguments.length;T<j;T++){d=arguments[T];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(Z[p]=d[p])}return Z},N.apply(this,arguments)},fe=(0,f.forwardRef)(function(Z,d){return f.createElement(ve.P,N({},Z,{chartType:"Pie",ref:d}))}),k=fe,he=t(47676),q=t(4393),e=t(85893),me=he.default.RangePicker,pe=function(d){var T=(0,f.useState)([]),j=S()(T,2),p=j[0],$=j[1],y=function(g){return g&&g>=X()().startOf("day")},A=function(){var P=D()(m()().mark(function g(c){var i,I,s,n;return m()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,(0,C.jD)(c);case 2:I=R.sent,s=[],(i=I.data)===null||i===void 0||i.forEach(function(l){l.advType===1&&s.push({type:"\u6A2A\u5E45",value:(0,v.P)(l.income)}),l.advType===2&&s.push({type:"\u63D2\u9875",value:(0,v.P)(l.income)}),l.advType===3&&s.push({type:"\u89C6\u9891",value:(0,v.P)(l.income)})}),n=s.reduce(function(l,L){return l+L.value},0),s.forEach(function(l){l.\u6536\u5165=l.value+"\u5143",n>0&&(l.\u767E\u5206\u6BD4=(l.value/n*100).toFixed(1)+"%")}),$(s);case 8:case"end":return R.stop()}},g)}));return function(c){return P.apply(this,arguments)}}(),F={data:p,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"}]}},M=function(g,c){var i=parseInt(c[0]),I=parseInt(c[1]);A(i&&I?{code:d.appCode,beginDate:i,endDate:I}:{code:d.appCode})};return(0,f.useEffect)(function(){A({code:d.appCode})},[d.appCode]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(q.Z,{style:{height:300},children:[(0,e.jsx)(me,{onChange:M,format:"YYYYMMDD",disabledDate:y}),p.length>0&&(0,e.jsx)(k,x()({},F))]})})},ye=pe,ge=function(d){var T=(0,f.useState)([]),j=S()(T,2),p=j[0],$=j[1],y=function(){var F=D()(m()().mark(function M(){var P,g,c,i;return m()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,C.R2)({code:d.appCode});case 2:g=s.sent,c=[],(P=g.data)===null||P===void 0||P.forEach(function(n){n.advType===1&&c.push({type:"\u6A2A\u5E45",value:(0,v.P)(n.income)}),n.advType===2&&c.push({type:"\u63D2\u9875",value:(0,v.P)(n.income)}),n.advType===3&&c.push({type:"\u89C6\u9891",value:(0,v.P)(n.income)})}),i=c.reduce(function(n,z){return n+z.value},0),c.forEach(function(n){n.\u6536\u5165=n.value+"\u5143",i>0&&(n.\u767E\u5206\u6BD4=(n.value/i*100).toFixed(1)+"%")}),$(c);case 8:case"end":return s.stop()}},M)}));return function(){return F.apply(this,arguments)}}(),A={data:p,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,f.useEffect)(function(){y()},[d.appCode]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(q.Z,{style:{height:300},children:p.length>0&&(0,e.jsx)(k,x()({},A))})})},xe=ge,je=t(42767),Se=function(){var d=(0,f.useRef)(),T=(0,f.useState)(void 0),j=S()(T,2),p=j[0],$=j[1],y=function(){return window.innerWidth<=768},A=(0,f.useState)({deviceId:{show:!y()},appName:{show:!y()},platform:{show:!y()},deviceBrand:{show:!y()},deviceNam