2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{D as h,_ as f}from"./index.163b09f9.js";import{L as v}from"./element-plus.1e96d4ee.js";import{B as y}from"./vue-echarts.01ad0ec2.js";import{d as p,Z as b,i as w,af as E,o as l,c as u,a as t,U as i,L as s,S as r,u as o,T as B,a9 as g,K as F}from"./@vue.18505fe0.js";import"./@vueuse.fbc6a400.js";import"./lodash.60201f64.js";import"./axios.2b8d80bd.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"./@element-plus.edbd5a83.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"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./dayjs.8ae0c638.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./resize-detector.4e96b72b.js";const C={class:"workbench"},A={class:"flex box-border"},k=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),j={class:"text-6xl"},D={class:"flex items-center justify-between"},O=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u9500\u552E\u989D:",-1),L={class:"text-tx-secondary text-xs"},S=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),N={class:"text-6xl"},V={class:"flex items-center justify-between"},z=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u6210\u4EA4\u8BA2\u5355",-1),K={class:"text-tx-secondary text-xs"},M=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),P={class:"text-6xl"},T={class:"flex items-center justify-between"},U=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u7528\u6237",-1),W={class:"text-tx-secondary text-xs"},Z=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),q={class:"text-6xl"},G={class:"flex items-center justify-between"},H=t("span",{class:"text-tx-secondary text-xs"},"\u603B\u65B0\u589E\u8BBF\u95EE\u91CF",-1),I={class:"text-tx-secondary text-xs"},J={class:"function flex box-border"},Q={class:"mt-2"},R={class:"flex box-border"},X=t("div",{class:"flex items-center justify-between"},[t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE")],-1),Y=p({name:"workbench"}),St=p({...Y,setup($){const e=b({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}]}}),x=()=>{h().then(a=>{e.version=a.version,e.today=a.today,e.menu=a.menu,e.visitor=a.visitor,e.support=a.support,e.visitorOption.xAxis.data=[],e.visitorOption.series[0].data=[],a.visitor.date.reverse().forEach(d=>{e.visitorOption.xAxis.data.push(d)}),a.visitor.list[0].data.forEach(d=>{e.visitorOption.series[0].data.push(d)}),console.log(e.visitorOption)}).catch(a=>{console.log("err",a)})};return w(()=>{x()}),(a,d)=>{const n=v,_=f,m=E("router-link");return l(),u("div",C,[t("div",A,[i(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[k]),footer:s(()=>[t("div",D,[O,t("span",L,r(o(e).today.today_sales)+"\u5143",1)])]),default:s(()=>[t("div",j,r(o(e).today.today_sales),1)]),_:1}),i(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[S]),footer:s(()=>[t("div",V,[z,t("span",K,r(o(e).today.order_sum)+"\u5355",1)])]),default:s(()=>[t("div",N,r(o(e).today.order_num),1)]),_:1}),i(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[M]),footer:s(()=>[t("div",T,[U,t("span",W,r(o(e).today.total_new_user)+"\u4F4D",1)])]),default:s(()=>[t("div",P,r(o(e).today.today_new_user),1)]),_:1}),i(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[Z]),footer:s(()=>[t("div",G,[H,t("span",I,r(o(e).today.total_visitor)+"Pv",1)])]),default:s(()=>[t("div",q,r(o(e).today.today_visitor),1)]),_:1})]),t("div",J,[(l(!0),u(B,null,g(o(e).menu,c=>(l(),F(n,{shadow:"never",class:"flex-1 m-2 !border-none md:w-[12.5%] w-1/4 flex flex-col items-center",key:c},{default:s(()=>[i(m,{to:c.url,class:"mb-3 flex flex-col items-center w-full h-full"},{default:s(()=>[i(_,{width:"40px",height:"40px",src:c==null?void 0:c.image},null,8,["src"]),t("div",Q,r(c.name),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),t("div",R,[i(n,{class:"flex-1 m-2 !border-none",shadow:"never"},{header:s(()=>[X]),default:s(()=>[t("div",null,[i(o(y),{style:{height:"350px"},option:o(e).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{St as default};
|