import{S as v,L as D,w as B}from"./element-plus.78e68aed.js";import{d as A,f as F,g as C}from"./workbench.bddf6f34.js";import{h as d}from"./moment.40bc58bf.js";import{B as c}from"./vue-echarts.01ad0ec2.js";import{d as f,Z as r,r as x,i as b,o as w,c as R,U as u,L as p,a as e,u as a,j as k,R as L}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.49b211ae.js";import"./lodash.60201f64.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./resize-detector.4e96b72b.js";const P={class:"workbench"},M={class:"flex"},Y={class:"flex-1 h-[270px]"},S=e("div",{class:"text-2xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1),T=e("div",null,[e("span",{class:"text-[12px]"},"\xA5"),e("span",{class:"text-2xl"},"1352.36")],-1),U=e("div",{class:"w-[1px] bg-[#ccc] mr-4"},null,-1),V={class:"flex-1 flex"},z={class:"flex-1"},G=e("div",{class:"text-1xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1),N=e("div",{class:"text-[12px]"},[e("span",{class:"text-info"},"\u6628\u65E5: 10"),e("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4"),e("span",{class:"text-success"},"-55%")],-1),$=e("div",{class:"text-1xl mt-2"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1),j=e("div",{class:"text-[12px]"},[e("span",{class:"text-info"},"\u6628\u65E5: 10"),e("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4"),e("span",{class:"text-success"},"-55%")],-1),O={class:"flex-1"},Z=e("div",{class:"text-1xl"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1),q=e("div",{class:"text-[12px]"},[e("span",{class:"text-info"},"\u6628\u65E5: 10"),e("span",{class:"text-info m-2"},"\u65E5\u73AF\u6BD4"),e("span",{class:"text-success"},"-55%")],-1),H=e("div",{class:"text-1xl mt-2"},"\u4ECA\u65E5\u8BA2\u5355\u91D1\u989D",-1),I=e("div",{class:"text-[12px]"},[e("span",{class:"text-info"},"\u6628\u65E5: 10"),e("span",{class:"text-info ml-2"},"\u65E5\u73AF\u6BD4"),e("span",{class:"text-success"},"-55%")],-1),J={class:"mb-6 flex justify-between items-center"},K=e("span",{class:"text-2xl"},"\u7528\u6237\u6982\u51B5",-1),Q={class:"flex items-center text-sm"},W=e("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),X=f({name:"statistics_user"}),Te=f({...X,setup(ee){const h=[{text:"\u8FD1\u4E00\u5468",value:()=>{const o=new Date,t=new Date;return t.setDate(t.getDate()-7),[t,o]}},{text:"\u8FD1\u4E00\u6708",value:()=>{const o=new Date,t=new Date;return t.setMonth(t.getMonth()-1),[t,o]}},{text:"\u8FD1\u4E09\u6708",value:()=>{const o=new Date,t=new Date;return t.setMonth(t.getMonth()-3),[t,o]}}],l=r({xAxis:{type:"category",data:[0],axisLabel:{rotate:45,color:"#333"}},yAxis:{type:"value",name:"\u6570\u91CF",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}]});x({});const i=r({tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:o=>{let t=`
${o[0].name}\u70B9
`;return o.forEach(s=>{t+=`${s.seriesName}: ${s.value}
`}),t}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["\u6628\u5929","\u4ECA\u5929"],left:"3%",top:"3%"},xAxis:[{type:"category",boundaryGap:!1,data:["03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","00","01","02"],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",data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0],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",data:[0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0],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}}}]}),y=r([{name:"\u8BBF\u5BA2\u6570",type:"people",icon:"RectangleCopy",num:0,percent:0},{name:"\u6D4F\u89C8\u91CF",type:"browse",icon:"RectangleCopy49",num:0,percent:0},{name:"\u65B0\u589E\u7528\u6237\u6570",type:"newUser",icon:"RectangleCopy53",num:0,percent:0},{name:"\u6210\u4EA4\u7528\u6237\u6570",type:"payPeople",icon:"RectangleCopy5",num:0,percent:0},{name:"\u8BBF\u5BA2-\u652F\u4ED8\u8F6C\u6362\u7387",type:"payPercent",icon:"RectangleCopy4",num:0,percent:0},{name:"\u6FC0\u6D3B\u4ED8\u8D39\u4F1A\u5458\u6570",type:"payUser",icon:"RectangleCopy7",num:0,percent:0},{name:"\u5145\u503C\u7528\u6237\u6570",type:"rechargePeople",icon:"RectangleCopy59",num:0,percent:0},{name:"\u5BA2\u5355\u4EF7",type:"payPrice",icon:"RectangleCopy15",num:0,percent:0},{name:"\u7D2F\u8BA1\u7528\u6237",type:"cumulativeUser",icon:"RectangleCopy54",num:0,percent:0},{name:"\u7D2F\u8BA1\u4ED8\u8D39\u4F1A\u5458\u6570",type:"cumulativePayUser",icon:"RectangleCopy7",num:0,percent:0},{name:"\u7D2F\u8BA1\u5145\u503C\u7528\u6237\u6570",type:"cumulativeRechargePeople",icon:"RectangleCopy6",num:0,percent:0},{name:"\u7D2F\u8BA1\u6210\u4EA4\u7528\u6237\u6570",type:"cumulativePayPeople",icon:"RectangleCopy9",num:0,percent:0}]),n=x(["",""]),m=()=>{let o="";n.value[0]&&n.value[1]&&(o=d(n.value[0]).format("YYYY/MM/DD")+"-"+d(n.value[1]).format("YYYY/MM/DD")),A({date:o}).then(t=>{y.forEach(s=>{s.num=t[s.type].num,s.percent=t[s.type].percent})}),F({}).then(t=>{console.log(t),i.series[0].data=t.left.series[1].value,i.series[1].data=t.left.series[0].value}),C({date:o}).then(t=>{l.xAxis.data=[],l.series=[],l.legend.data=t.series.map(s=>s.name),l.xAxis.data=t.xAxis,l.series=t.series.map(s=>({type:"line",smooth:!0,data:s.value,name:s.name}))})};return b(()=>{m()}),(o,t)=>{const s=D,_=v,g=B;return w(),R("div",P,[u(s,{shadow:"never",class:"!border-none"},{default:p(()=>[e("div",M,[e("div",Y,[S,T,u(a(c),{style:{height:"200px"},option:a(i),autoresize:!0},null,8,["option"])]),U,e("div",V,[e("div",z,[G,N,u(a(c),{style:{height:"180px"},option:a(i),autoresize:!0},null,8,["option"]),$,j]),e("div",O,[Z,q,u(a(c),{style:{height:"180px"},option:a(i),autoresize:!0},null,8,["option"]),H,I])])])]),_:1}),u(s,{shadow:"never",class:"mt-4 !border-none"},{default:p(()=>[e("div",J,[K,e("div",Q,[W,u(_,{modelValue:a(n),"onUpdate:modelValue":t[0]||(t[0]=E=>k(n)?n.value=E:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",shortcuts:h},null,8,["modelValue"]),u(g,{type:"primary",class:"ml-4",onClick:m},{default:p(()=>[L("\u67E5\u8BE2")]),_:1})])]),e("div",null,[u(a(c),{style:{height:"400px"},option:a(l),autoresize:!0},null,8,["option"])])]),_:1})])}}});export{Te as default};