import{_ as K}from"./index.4991cfb7.js";import{_ as Q,L as W,w as X}from"./element-plus.57d9268d.js";import{f as tt,g as et}from"./workbench.41b2a5e3.js";import{h as V}from"./moment.40bc58bf.js";import{B as g}from"./vue-echarts.01ad0ec2.js";import{d as $,Z as v,r as f,i as st,o as F,c as C,U as r,L as E,a as t,S as a,u as s,R as h,j as ot,T as at,a9 as nt,a0 as it,O as lt,bl as ct,bk as rt}from"./@vue.18505fe0.js";import{d as ut}from"./index.accbf72b.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.5573a7c3.js";import"./axios.771da9d7.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./resize-detector.4e96b72b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./lodash.37308426.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.d33cb8f8.js";import"./vue-clipboard3.8526e077.js";import"./clipboard.d93bf196.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const u=y=>(ct("data-v-d24ef56b"),y=y(),rt(),y),pt={class:"workbench"},dt={class:"flex"},mt={class:"flex-1 h-[270px]"},_t=u(()=>t("div",{class:"text-2xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1)),xt=u(()=>t("span",{class:"text-[12px]"},"\xA5",-1)),ht={class:"text-2xl"},ft=u(()=>t("div",{class:"w-[1px] bg-[#ccc] mr-4"},null,-1)),yt={class:"flex-1 flex"},gt={class:"flex-1"},vt={class:"text-1xl"},bt={class:"ml-2 text-[18px]"},Dt={class:"text-[12px]"},wt={class:"text-info"},Ft=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),Ct={class:"text-success"},Et={class:"text-1xl"},At={class:"ml-2 text-[18px]"},Bt={class:"text-[12px]"},St={class:"text-info"},kt=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Ot={class:"text-success"},Lt={class:"flex-1"},Rt={class:"text-1xl"},Nt={class:"ml-2 text-[18px]"},Mt={class:"text-[12px]"},Tt={class:"text-info"},Yt=u(()=>t("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4: ",-1)),jt={class:"text-success"},It={class:"text-1xl"},zt={class:"ml-2 text-[18px]"},Jt={class:"text-[12px]"},Vt={class:"text-info"},$t=u(()=>t("span",{class:"text-info ml-2"},"\u6708\u73AF\u6BD4: ",-1)),Gt={class:"text-success"},Pt={class:"mb-6 flex justify-between items-center"},Ut=u(()=>t("span",{class:"text-2xl"},"\u4EA4\u6613\u6982\u51B5",-1)),Zt={class:"flex items-center text-sm"},qt=u(()=>t("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1)),Ht={class:"flex flex-wrap"},Kt={class:"mr-2"},Qt={class:"text-info"},Wt={class:"text-6xl"},Xt={class:"text-info"},te=$({name:"statistics_user"}),ee=$({...te,setup(y){const G=[{text:"\u8FD1\u4E00\u5468",value:()=>{const n=new Date,e=new Date;return e.setDate(e.getDate()-7),[e,n]}},{text:"\u672C\u6708",value:()=>{const n=new Date,e=new Date;return e.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0),[e,n]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-1),[e,n]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const n=new Date,e=new Date;return e.setMonth(e.getMonth()-3),[e,n]}}],p=v({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u91D1\u989D",position:"left",axisLabel:{formatter:"{value}"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}),b={tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:n=>{let e=`

${n[0].name}\u70B9

`;return n.forEach(o=>{e+=`

${o.seriesName}: ${o.value}

`}),e}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],yAxis:[{type:"value",show:!1,spliteLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},grid:{show:!1}}],series:[{name:"\u6628\u5929",type:"line",smooth:!0,symbol:"none",itemStyle:{color:"#ccc"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#ccc"},{offset:.6,color:"#fff"}],global:!1}}},{name:"\u4ECA\u5929",type:"line",smooth:!0,symbol:"none",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5B8FF9"},{offset:.6,color:"#fff"}],global:!1}}}]},A=f({money:0,series:[]}),D=v(JSON.parse(JSON.stringify(b))),i=f([]),m=v(JSON.parse(JSON.stringify(b))),l=f([]),_=v(JSON.parse(JSON.stringify(b))),P=["#5DB1FF","#4CD384","#FFC46A","#CAA5F1","#FFC46A","#4CD384","#5DB1FF","#CAA5F1"],U=f(["RectangleCopy58","RectangleCopy48","RectangleCopy65","RectangleCopy62","RectangleCopy56","RectangleCopy55","RectangleCopy57","RectangleCopy65","RectangleCopy61","RectangleCopy52","RectangleCopy14","RectangleCopy32"]),d=f([new Date,new Date]),w=()=>{let n="";d.value[0]&&d.value[1]&&(n=V(d.value[0]).format("YYYY/MM/DD")+"-"+V(d.value[1]).format("YYYY/MM/DD")),tt({}).then(e=>{A.value={money:e.left.series[0].money,name:e.left.name},D.series[0].data=e.left.series[1].value,D.series[1].data=e.left.series[0].value,i.value=e.right.today.series,l.value=e.right.month,m.xAxis.data=e.right.today.x.map(o=>o),m.series[0].name=e.right.today.series[0].name,m.series[0].data=e.right.today.series[0].value,m.series[1].name=e.right.today.series[1].name,m.series[1].data=e.right.today.series[1].value,_.xAxis.data=Object.keys(e.right.month[0].value).map(o=>o),_.series[0].name=e.right.month[0].name,_.series[0].data=Object.values(e.right.month[0].value).map(o=>o),_.series[1].name=e.right.month[1].name,_.series[1].data=Object.values(e.right.month[1].value).map(o=>o)}),et({date:n}).then(e=>{p.xAxis.data=[],p.series=[],console.log(e),p.legend.data=Object.values(e.series).map(o=>o.name),p.xAxis.data=e.x,p.series=Object.values(e.series).map(o=>({type:"line",smooth:!0,data:o.value,name:o.name,money:o.money,rate:o.rate}))})};return st(()=>{w()}),(n,e)=>{const o=W,Z=Q,q=X,H=K;return F(),C("div",pt,[r(o,{shadow:"never",class:"!border-none"},{default:E(()=>{var c,x,B,S,k,O,L,R,N,M,T,Y,j,I,z,J;return[t("div",dt,[t("div",mt,[_t,t("div",null,[xt,t("span",ht,a(s(A).money||"0.00"),1)]),r(s(g),{style:{height:"200px"},option:s(D),autoresize:!0},null,8,["option"])]),ft,t("div",yt,[t("div",gt,[t("div",vt,[h(a((c=s(i)[0])==null?void 0:c.name),1),t("span",bt,a((x=s(i)[0])==null?void 0:x.now_money),1)]),t("div",Dt,[t("span",wt,"\u6628\u65E5: "+a((B=s(i)[0])==null?void 0:B.last_money),1),Ft,t("span",Ct,a((S=s(i)[0])==null?void 0:S.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(m),autoresize:!0},null,8,["option"]),t("div",Et,[h(a((k=s(l)[0])==null?void 0:k.name),1),t("span",At,a((O=s(l)[0])==null?void 0:O.now_money),1)]),t("div",Bt,[t("span",St,"\u4E0A\u6708: "+a((L=s(l)[0])==null?void 0:L.last_money),1),kt,t("span",Ot,a((R=s(l)[0])==null?void 0:R.rate)+"%",1)])]),t("div",Lt,[t("div",Rt,[h(a((N=s(i)[1])==null?void 0:N.name),1),t("span",Nt,a((M=s(i)[1])==null?void 0:M.now_money),1)]),t("div",Mt,[t("span",Tt,"\u6628\u65E5: "+a((T=s(i)[1])==null?void 0:T.last_money),1),Yt,t("span",jt,a((Y=s(i)[1])==null?void 0:Y.rate)+"%",1)]),r(s(g),{style:{height:"160px","margin-bottom":"20px"},option:s(_),autoresize:!0},null,8,["option"]),t("div",It,[h(a((j=s(l)[1])==null?void 0:j.name),1),t("span",zt,a((I=s(l)[1])==null?void 0:I.now_money),1)]),t("div",Jt,[t("span",Vt,"\u4E0A\u6708: "+a((z=s(l)[1])==null?void 0:z.last_money),1),$t,t("span",Gt,a((J=s(l)[1])==null?void 0:J.rate)+"%",1)])])])])]}),_:1}),r(o,{shadow:"never",class:"mt-4 !border-none"},{default:E(()=>[t("div",Pt,[Ut,t("div",Zt,[qt,r(Z,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=c=>ot(d)?d.value=c:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:G,onChange:w},null,8,["modelValue"]),r(q,{type:"primary",class:"ml-4",onClick:w},{default:E(()=>[h("\u67E5\u8BE2")]),_:1})])]),t("div",Ht,[(F(!0),C(at,null,nt(s(p).series,(c,x)=>(F(),C("div",{class:"w-1/5 flex mb-6",key:x},[t("div",Kt,[t("div",{class:"rounded-full p-2",style:it({"background-color":P[x%4]})},[r(H,{iconName:s(U)[x],white:"",className:"text-6xl"},null,8,["iconName"])],4)]),t("div",null,[t("div",Qt,a(c.name),1),t("div",Wt,a(c.money),1),t("div",Xt,[h("\u73AF\u6BD4\u589E\u957F: "),t("span",{class:lt(c.rate>0?"text-success":"text-danger")},a(c.rate)+"%",3)])])]))),128))]),t("div",null,[r(s(g),{style:{height:"400px"},option:s(p),autoresize:!0},null,8,["option"])])]),_:1})])}}});const je=ut(ee,[["__scopeId","data-v-d24ef56b"]]);export{je as default};