import{J as v,_ as x}from"./index.80696382.js";import{I as f}from"./element-plus.ae09c4a0.js";import{B as F}from"./vue-echarts.16c0c43a.js";import{d as _,a0 as y,i as w,ae as g,o as c,c as u,a as t,W as n,O as a,U as e,u as o,V as E,a7 as B}from"./@vue.a7a54728.js";import"./@vueuse.0a77614e.js";import"./lodash.fc1b942f.js";import"./@amap.8a62addd.js";import"./axios.108bc101.js";import"./vue-router.c1c4566f.js";import"./pinia.b401a84e.js";import"./css-color-function.91b6e704.js";import"./color.d62296c5.js";import"./clone.f2407509.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"./@element-plus.a03b0c46.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.f4ae74de.js";import"./lodash-es.bb7dceda.js";import"./dayjs.7f1be2bc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./resize-detector.4e96b72b.js";const b={class:"workbench"},A={class:"lg:flex"},C=t("span",{class:"card-title"},"\u7248\u672C\u4FE1\u606F",-1),k={class:"flex leading-9"},D=t("div",{class:"w-20"},"\u5E73\u53F0\u540D\u79F0",-1),O={class:"flex leading-9"},V=t("div",{class:"w-20"},"\u5F53\u524D\u7248\u672C",-1),N=t("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),S={class:"text-tx-secondary text-xs ml-4"},W={class:"flex flex-wrap"},z={class:"w-1/2 md:w-1/4"},I=t("div",{class:"leading-10"},"\u9500\u552E\u989D",-1),J={class:"text-6xl"},L={class:"text-tx-secondary text-xs"},M={class:"w-1/2 md:w-1/4"},U=t("div",{class:"leading-10"},"\u6210\u4EA4\u8BA2\u5355",-1),j={class:"text-6xl"},q={class:"text-tx-secondary text-xs"},G={class:"w-1/2 md:w-1/4"},H=t("div",{class:"leading-10"},"\u65B0\u589E\u7528\u6237",-1),K={class:"text-6xl"},P={class:"text-tx-secondary text-xs"},Q={class:"w-1/2 md:w-1/4"},R=t("div",{class:"leading-10"},"\u65B0\u589E\u8BBF\u95EE\u91CF",-1),T={class:"text-6xl"},X={class:"text-tx-secondary text-xs"},Y={class:"function mb-4"},Z=t("span",null,"\u5E38\u7528\u529F\u80FD",-1),$={class:"flex flex-wrap"},tt={class:"mt-2"},st={class:"md:flex"},ot=t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE",-1),et=_({name:"workbench"}),Ut=_({...et,setup(it){const s=y({version:{version:"",website:"",based:"",channel:{gitee:"",website:""}},support:[],today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}}),p=()=>{v().then(i=>{s.version=i.version,s.today=i.today,s.menu=i.menu,s.visitor=i.visitor,s.support=i.support,s.visitorOption.xAxis.data=[],s.visitorOption.series[0].data=[],i.visitor.date.reverse().forEach(d=>{s.visitorOption.xAxis.data.push(d)}),i.visitor.list[0].data.forEach(d=>{s.visitorOption.series[0].data.push(d)})}).catch(i=>{console.log("err",i)})};return w(()=>{p()}),(i,d)=>{const l=f,m=x,h=g("router-link");return c(),u("div",b,[t("div",A,[n(l,{class:"!border-none mb-4 lg:mr-4 lg:w-[350px]",shadow:"never"},{header:a(()=>[C]),default:a(()=>[t("div",null,[t("div",k,[D,t("span",null,e(o(s).version.name),1)]),t("div",O,[V,t("span",null,e(o(s).version.version),1)])])]),_:1}),n(l,{class:"!border-none mb-4 flex-1",shadow:"never"},{header:a(()=>[t("div",null,[N,t("span",S," \u66F4\u65B0\u65F6\u95F4\uFF1A"+e(o(s).today.time),1)])]),default:a(()=>[t("div",W,[t("div",z,[I,t("div",J,e(o(s).today.today_sales),1),t("div",L," \u603B\uFF1A"+e(o(s).today.total_sales),1)]),t("div",M,[U,t("div",j,e(o(s).today.order_num),1),t("div",q," \u603B\uFF1A"+e(o(s).today.order_sum),1)]),t("div",G,[H,t("div",K,e(o(s).today.today_new_user),1),t("div",P," \u603B\uFF1A"+e(o(s).today.total_new_user),1)]),t("div",Q,[R,t("div",T,e(o(s).today.today_visitor),1),t("div",X," \u603B\uFF1A"+e(o(s).today.total_visitor),1)])])]),_:1})]),t("div",Y,[n(l,{class:"flex-1 !border-none",shadow:"never"},{header:a(()=>[Z]),default:a(()=>[t("div",$,[(c(!0),u(E,null,B(o(s).menu,r=>(c(),u("div",{class:"md:w-[12.5%] w-1/4 flex flex-col items-center",key:r},[n(h,{to:r.url,class:"mb-3 flex flex-col items-center"},{default:a(()=>[n(m,{width:"40px",height:"40px",src:r==null?void 0:r.image},null,8,["src"]),t("div",tt,e(r.name),1)]),_:2},1032,["to"])]))),128))])]),_:1})]),t("div",st,[n(l,{class:"flex-1 !border-none md:mr-4 mb-4",shadow:"never"},{header:a(()=>[ot]),default:a(()=>[t("div",null,[n(o(F),{style:{height:"350px"},option:o(s).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{Ut as default};
