moreShopAdmin/dist/admin/assets/index.0e4eb9b4.js

2 lines
4.9 KiB
JavaScript
Raw Normal View History

2024-06-24 15:37:24 +08:00
import{L as l}from"./element-plus.e226cbd2.js";import{D as p}from"./index.fed05481.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.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.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 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