2024-08-17 14:47:37 +08:00
|
|
|
import{L as l}from"./element-plus.4a7d92a3.js";import{F as p}from"./index.b71a9ad1.js";import{B as x}from"./vue-echarts.01ad0ec2.js";import{d as c,Z as _,i as m,o as h,c as f,a as t,U as r,L as s,S as i,u as a}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.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.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 v={class:"workbench"},y={class:"flex box-border"},b=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),E={class:"text-6xl"},w={class:"flex items-center justify-between"},B=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u9500\u552E\u989D:",-1),g={class:"text-tx-secondary text-xs"},F=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),A={class:"text-6xl"},C={class:"flex items-center justify-between"},j=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u6210\u4EA4\u8BA2\u5355",-1),D={class:"text-tx-secondary text-xs"},O=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),k={class:"text-6xl"},S={class:"flex items-center justify-between"},L=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u7528\u6237",-1),N={class:"text-tx-secondary text-xs"},V=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),z={class:"text-6xl"},M={class:"flex items-center justify-between"},P=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u8BBF\u95EE\u91CF",-1),U={class:"text-tx-secondary text-xs"},W={class:"flex box-border"},Z=t("div",{class:"flex items-center justify-between"},[t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE")],-1),q=c({name:"workbench"}),Bt=c({...q,setup(G){const e=_({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}]}}),u=()=>{p().then(o=>{e.version=o.version,e.today=o.today,e.menu=o.menu,e.visitor=o.visitor,e.support=o.support,e.visitorOption.xAxis.data=[],e.visitorOption.series[0].data=[],o.visitor.date.reverse().forEach(d=>{e.visitorOption.xAxis.data.push(d)}),o.visitor.list[0].data.forEach(d=>{e.visitorOption.series[0].data.push(d)}),console.log(e.visitorOption)}).catch(o=>{console.log("err",o)})};return m(()=>{u()}),(o,d)=>{const n=l;return h(),f("div",v,[t("div",y,[r(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[b]),footer:s(()=>[t("div",w,[B,t("span",g,i(a(e).today.today_sales)+"\u5143",1)])]),default:s(()=>[t("div",E,i(a(e).today.today_sales),1
|