"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9037],{62898:function(N,A,t){t.r(A),t.d(A,{default:function(){return B}});var $=t(57213),D=t.n($),g=t(54306),c=t.n(g),l=t(93236),r=t(47821),y=t(63647),n=t(79501),u=t(23360),o=t(40141),P=t(33081),I=t(90627),i=t(62086),v=I.Z.IndexController,R=v.indexProfit,T=v.indexDeviceReport,O=v.indexDevice,B=function(){var a,x,h,f,p,j,Z,E,z=(0,l.useState)([]),S=c()(z,2),G=S[0],H=S[1],J=(0,l.useState)([]),C=c()(J,2),e=C[0],K=C[1],L=(0,l.useState)([]),m=c()(L,2),Q=m[0],U=m[1],M={data:G,xField:"name",yField:"value",seriesField:"category",xAxis:{type:"time"},yAxis:{label:{formatter:function(s){return"".concat(s).replace(/\d{1,3}(?=(\d{3})+$)/g,function(F){return"".concat(F,",")})}}}};return(0,l.useEffect)(function(){R().then(function(d){var s=d.data;K(s)}).catch(function(){}),T().then(function(d){var s=d.data,F=d.success;F&&H(s)}).catch(function(){})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Z,{children:"\u5145\u7535\u6869"}),(0,i.jsxs)(y.Z,{gutter:10,children:[(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u4ECA\u65E5\u5145\u7535",value:e==null||(a=e.device_count)===null||a===void 0?void 0:a.today,precision:2,prefix:"\uFFE5"})})}),(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u6628\u65E5\u5145\u7535",value:e==null||(x=e.device_count)===null||x===void 0?void 0:x.yesterday,precision:2,prefix:"\uFFE5"})})}),(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u4E0A\u5468\u5145\u7535",value:e==null||(h=e.device_count)===null||h===void 0?void 0:h.week,precision:2,prefix:"\uFFE5"})})}),(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u4E0A\u6708\u5145\u7535",value:e==null||(f=e.device_count)===null||f===void 0?void 0:f.month,precision:2,prefix:"\uFFE5"})})})]}),(0,i.jsx)(r.Z,{children:"\u5546\u57CE"}),(0,i.jsxs)(y.Z,{gutter:10,children:[(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u4ECA\u5929\u6210\u4EA4",value:e==null||(p=e.shop_count)===null||p===void 0?void 0:p.today,precision:2,prefix:"\uFFE5"})})}),(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u6628\u5929\u6210\u4EA4",value:e==null||(j=e.shop_count)===null||j===void 0?void 0:j.yesterday,precision:2,prefix:"\uFFE5"})})}),(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u4E0A\u5468\u6210\u4EA4",value:e==null||(Z=e.shop_count)===null||Z===void 0?void 0:Z.week,precision:2,prefix:"\uFFE5"})})}),(0,i.jsx)(n.Z,{span:6,children:(0,i.jsx)(u.Z,{children:(0,i.jsx)(o.Z,{title:"\u4E0A\u6708\u6210\u4EA4",value:e==null||(E=e.shop_count)===null||E===void 0?void 0:E.month,precision:2,prefix:"\uFFE5"})})})]}),(0,i.jsx)(r.Z,{children:"\u5546\u57CE(\u5546\u54C1\u6570\u91CF/\u91D1\u989D)-\u6298\u7EBF\u56FE"}),(0,i.jsx)(P.Z,D()({},M))]})}}}]);
