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
17 KiB
2 lines
17 KiB
5 months ago
|
"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:
|