2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
|
import{L as p}from"./element-plus.91c68cc0.js";import{H as x}from"./index.b9876e7a.js";import{B as c}from"./vue-echarts.fe276ff7.js";import{d as u,Z as m,i as f,o as v,c as y,a as t,U as n,L as o,S as a,u as i}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./resize-detector.4e96b72b.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"},S={class:"flex box-border"},L=u({name:"workbench"}),yt=u({...L,setup(N){const s=m({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=()=>{x().then(r=>{s.version=r.version,s.today=r.today,s.menu=r.menu,s.visitor=r.visitor,s.support=r.support,s.visitorOption.xAxis.data=[],s.visitorOption.series[0].data=[],r.visitor.date.reverse().forEach(e=>{s.visitorOption.xAxis.data.push(e)}),r.visitor.list[0].data.forEach(e=>{s.visitorOption.series[0].data.push(e)}),console.log(s.visitorOption)}).catch(r=>{console.log("err",r)})};return f(()=>{l()}),(r,e)=>{const d=p;return v(),y("div",_,[t("div",b,[n(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,a(i(s).today.today_sales)+"\u5143",1)])]),default:o(()=>[t("div",h,a(i(s).today.today_sales),1)]),_:1}),n(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,a(i(s).today.order_sum)+"\u5355",1)])]),default:o(()=>[t("div",B,a(i(s).today.order_num),1)]),_:1}),n(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
|