moreShopAdmin/build/admin/assets/index.6d28fa06.js

2 lines
4.0 KiB
JavaScript

import{m as u,aT as x,b as c,p,q as v,x as t,t as r,v as o,G as i,u as n,bF as f,b5 as m}from"./.pnpm.1b0299fb.js";import{H as y}from"./index.689cfa31.js";import"./@vueuse.72d44d91.js";import"./lodash.c3b66c05.js";import"./@vue.9d708d7c.js";const _={class:"workbench"},b={class:"flex box-border"},h={class:"text-6xl"},E={class:"flex items-center justify-between"},w={class:"text-tx-secondary text-xs"},B={class:"text-6xl"},g={class:"flex items-center justify-between"},F={class:"text-tx-secondary text-xs"},A={class:"text-6xl"},C={class:"flex items-center justify-between"},j={class:"text-tx-secondary text-xs"},D={class:"text-6xl"},O={class:"flex items-center justify-between"},k={class:"text-tx-secondary text-xs"},H={class:"flex box-border"},N=u({name:"workbench"}),P=u({...N,setup(S){const s=x({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}]}}),l=()=>{y().then(a=>{s.version=a.version,s.today=a.today,s.menu=a.menu,s.visitor=a.visitor,s.support=a.support,s.visitorOption.xAxis.data=[],s.visitorOption.series[0].data=[],a.visitor.date.reverse().forEach(e=>{s.visitorOption.xAxis.data.push(e)}),a.visitor.list[0].data.forEach(e=>{s.visitorOption.series[0].data.push(e)}),console.log(s.visitorOption)}).catch(a=>{console.log("err",a)})};return c(()=>{l()}),(a,e)=>{const d=m;return p(),v("div",_,[t("div",b,[r(d,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:o(()=>e[0]||(e[0]=[t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u9500\u552E\u989D"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1)])),footer:o(()=>[t("div",E,[e[1]||(e[1]=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u9500\u552E\u989D:",-1)),t("span",w,i(n(s).today.today_sales)+"\u5143",1)])]),default:o(()=>[t("div",h,i(n(s).today.today_sales),1)]),_:1}),r(d,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:o(()=>e[2]||(e[2]=[t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u6210\u4EA4\u8BA2\u5355"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1)])),footer:o(()=>[t("div",g,[e[3]||(e[3]=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u6210\u4EA4\u8BA2\u5355",-1)),t("span",F,i(n(s).today.order_sum)+"\u5355",1)])]),default:o(()=>[t("div",B,i(n(s).today.order_num),1)]),_:1}),r(d,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:o(()=>e[4]||(e[4]=[t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u7528\u6237"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1)])),footer:o(()=>[t("div",C,[e[5]||(e[5]=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u7528\u6237",-1)),t("span",j,i(n(s).today.total_new_user)+"\u4F4D",1)])]),default:o(()=>[t("div",A,i(n(s).today.today_new_user),1)]),_:1}),r(d,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:o(()=>e[6]||(e[6]=[t("div",{class:"card-header flex items-center justify-between"},[t("span",{class:"text-2xl"},"\u65B0\u589E\u8BBF\u95EE\u91CF"),t("span",{class:"pt-1 pb-1 pl-2 pr-2 text-sm rounded-md bg-success text-white"},"\u4ECA\u65E5")],-1)])),footer:o(()=>[t("div",O,[e[7]||(e[7]=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u8BBF\u95EE\u91CF",-1)),t("span",k,i(n(s).today.total_visitor)+"Pv",1)])]),default:o(()=>[t("div",D,i(n(s).today.today_visitor),1)]),_:1})]),t("div",H,[r(d,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:o(()=>e[8]||(e[8]=[t("div",{class:"flex items-center justify-between"},[t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE")],-1)])),default:o(()=>[t("div",null,[r(n(f),{style:{height:"350px"},option:n(s).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{P as default};