ERP-admin/build/admin/assets/index.16f79082.js

2 lines
5.1 KiB
JavaScript

import{C as f,_ as F}from"./index.52f16d07.js";import{w,L as y}from"./element-plus.f1cfb480.js";import{B as g}from"./vue-echarts.ea1d9a14.js";import{d as m,Z as B,i as E,af as b,o as c,c as u,a as t,U as n,L as i,S as o,u as e,R as p,T as A,a9 as C}from"./@vue.663bc523.js";import"./@vueuse.4b5afb22.js";import"./lodash.403d4198.js";import"./axios.18becb61.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./@element-plus.8b1118e2.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./dayjs.3f38f327.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./resize-detector.4e96b72b.js";const k={class:"workbench"},D={class:"lg:flex"},O=t("span",{class:"card-title"},"\u7248\u672C\u4FE1\u606F",-1),z={class:"flex leading-9"},L=t("div",{class:"w-20"},"\u5E73\u53F0\u540D\u79F0",-1),N={class:"flex leading-9"},S=t("div",{class:"w-20"},"\u5F53\u524D\u7248\u672C",-1),V={class:"flex leading-9"},T=t("div",{class:"w-20"},"\u83B7\u53D6\u6E20\u9053",-1),G=["href"],M=["href"],R=t("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),U={class:"text-tx-secondary text-xs ml-4"},W={class:"flex flex-wrap"},Z={class:"w-1/2 md:w-1/4"},j=t("div",{class:"leading-10"},"\u9500\u552E\u989D",-1),q={class:"text-6xl"},H={class:"text-tx-secondary text-xs"},I={class:"w-1/2 md:w-1/4"},J=t("div",{class:"leading-10"},"\u6210\u4EA4\u8BA2\u5355",-1),K={class:"text-6xl"},P={class:"text-tx-secondary text-xs"},Q={class:"w-1/2 md:w-1/4"},X=t("div",{class:"leading-10"},"\u65B0\u589E\u7528\u6237",-1),Y={class:"text-6xl"},$={class:"text-tx-secondary text-xs"},tt={class:"w-1/2 md:w-1/4"},st=t("div",{class:"leading-10"},"\u65B0\u589E\u8BBF\u95EE\u91CF",-1),et={class:"text-6xl"},ot={class:"text-tx-secondary text-xs"},it={class:"function mb-4"},at=t("span",null,"\u5E38\u7528\u529F\u80FD",-1),nt={class:"flex flex-wrap"},dt={class:"mt-2"},rt={class:"md:flex"},lt=t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE",-1),ct=m({name:"workbench"}),jt=m({...ct,setup(ut){const s=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}]}}),h=()=>{f().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(r=>{s.visitorOption.xAxis.data.push(r)}),a.visitor.list[0].data.forEach(r=>{s.visitorOption.series[0].data.push(r)})}).catch(a=>{console.log("err",a)})};return E(()=>{h()}),(a,r)=>{const _=w,l=y,v=F,x=b("router-link");return c(),u("div",k,[t("div",D,[n(l,{class:"!border-none mb-4 lg:mr-4 lg:w-[350px]",shadow:"never"},{header:i(()=>[O]),default:i(()=>[t("div",null,[t("div",z,[L,t("span",null,o(e(s).version.name),1)]),t("div",N,[S,t("span",null,o(e(s).version.version),1)]),t("div",V,[T,t("div",null,[t("a",{href:e(s).version.channel.website,target:"_blank"},[n(_,{type:"success",size:"small"},{default:i(()=>[p("\u5B98\u7F51")]),_:1})],8,G),t("a",{class:"ml-3",href:e(s).version.channel.gitee,target:"_blank"},[n(_,{type:"danger",size:"small"},{default:i(()=>[p("Gitee")]),_:1})],8,M)])])])]),_:1}),n(l,{class:"!border-none mb-4 flex-1",shadow:"never"},{header:i(()=>[t("div",null,[R,t("span",U," \u66F4\u65B0\u65F6\u95F4\uFF1A"+o(e(s).today.time),1)])]),default:i(()=>[t("div",W,[t("div",Z,[j,t("div",q,o(e(s).today.today_sales),1),t("div",H," \u603B\uFF1A"+o(e(s).today.total_sales),1)]),t("div",I,[J,t("div",K,o(e(s).today.order_num),1),t("div",P," \u603B\uFF1A"+o(e(s).today.order_sum),1)]),t("div",Q,[X,t("div",Y,o(e(s).today.today_new_user),1),t("div",$," \u603B\uFF1A"+o(e(s).today.total_new_user),1)]),t("div",tt,[st,t("div",et,o(e(s).today.today_visitor),1),t("div",ot," \u603B\uFF1A"+o(e(s).today.total_visitor),1)])])]),_:1})]),t("div",it,[n(l,{class:"flex-1 !border-none",shadow:"never"},{header:i(()=>[at]),default:i(()=>[t("div",nt,[(c(!0),u(A,null,C(e(s).menu,d=>(c(),u("div",{class:"md:w-[12.5%] w-1/4 flex flex-col items-center",key:d},[n(x,{to:d.url,class:"mb-3 flex flex-col items-center"},{default:i(()=>[n(v,{width:"40px",height:"40px",src:d==null?void 0:d.image},null,8,["src"]),t("div",dt,o(d.name),1)]),_:2},1032,["to"])]))),128))])]),_:1})]),t("div",rt,[n(l,{class:"flex-1 !border-none md:mr-4 mb-4",shadow:"never"},{header:i(()=>[lt]),default:i(()=>[t("div",null,[n(e(g),{style:{height:"350px"},option:e(s).visitorOption,autoresize:!0},null,8,["option"])])]),_:1})])])}}});export{jt as default};