1 |
- import{d as ue,p as me,b as De,h as pe,a as t,_ as xe,e as Ae,r as Ee,f as v,o as f,c as b,g as s,i as e,w as a,t as l,j as D,F as A,k as V,l as ye,m as ge,n as He,E as Re,q as $e,s as ze,v as Me,x as W,__tla as Oe}from"./index-afaf388d.js";import{_ as Ue,__tla as Ce}from"./Echart-c225120d.js";import{E as Ve,__tla as We}from"./el-link-22fa86d2.js";import{E as Ge,__tla as Ie}from"./el-card-9c18d881.js";import{E as Pe,__tla as Xe}from"./el-skeleton-item-b17616f6.js";import{_ as qe,__tla as Fe}from"./CountTo-aa54a5c3.js";import{E as Qe,__tla as Be}from"./el-avatar-e5ec3622.js";import{u as Je,a as _e}from"./useWatermark-186794fa.js";import{p as Ke,b as Le,__tla as Ne}from"./echarts-data-28607456.js";let fe,Se=Promise.all([(()=>{try{return Oe}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{let G,I,P,X,q,F,Q,B,J,K,L,N,S,T,Y,Z,ee,ae,te,se,le,ne,ie,re;G=xe(ue({name:"Highlight",props:{tag:me.string.def("span"),keys:{type:Array,default:()=>[]},color:me.string.def("var(--el-color-primary)")},emits:["click"],setup(h,{emit:n,slots:r}){const E=De(()=>h.keys.map(u=>pe("span",{onClick:()=>{n("click",u)},style:{color:h.color,cursor:"pointer"}},u))),c=()=>{if(!(r!=null&&r.default))return null;const u=r==null?void 0:r.default()[0].children;if(!u)return r==null?void 0:r.default()[0];const H=(m=u,h.keys.forEach((o,$)=>{const w=new RegExp(o,"g");m=m.replace(w,`{{${$}}}`)}),m.split(/{{|}}/));var m;const g=/^[0-9]*$/,R=H.map(o=>g.test(o)&&t(E)[o]||o);return pe(h.tag,R)};return()=>c()}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/Highlight/src/Highlight.vue"]]),I={class:"flex items-center"},P=s("img",{src:_e,alt:""},null,-1),X={class:"text-20px"},q={class:"mt-10px text-14px text-gray-500"},F={class:"h-70px flex items-center justify-end lt-sm:mt-10px"},Q={class:"px-8px text-right"},B={class:"mb-16px text-14px text-gray-400"},J={class:"px-8px text-right"},K={class:"mb-16px text-14px text-gray-400"},L={class:"px-8px text-right"},N={class:"mb-16px text-14px text-gray-400"},S={class:"h-3 flex justify-between"},T={class:"flex items-center"},Y={class:"text-16px"},Z={class:"mt-16px text-14px text-gray-400"},ee={class:"mt-16px flex justify-between text-12px text-gray-400"},ae={class:"h-3 flex justify-between"},te={class:"flex items-center"},se={class:"h-3 flex justify-between"},le={class:"flex items-center"},ne=s("img",{src:_e,alt:""},null,-1),ie={class:"text-14px"},re={class:"mt-16px text-12px text-gray-400"},fe=xe(ue({name:"Home",__name:"Index",setup(h){const{t:n}=He(),r=Ae(),{setWatermark:E}=Je(),c=Ee(!0),u=r.getUser.avatar,H=r.getUser.nickname,m=v(Ke);let g=v({project:0,access:0,todo:0});const R=async()=>{g=Object.assign(g,{project:40,access:2340,todo:10})};let o=v([]);const $=async()=>{o=Object.assign(o,[{name:"Github",icon:"akar-icons:github-fill",message:"workplace.introduction",personal:"Archer",time:new Date},{name:"Vue",icon:"logos:vue",message:"workplace.introduction",personal:"Archer",time:new Date},{name:"Angular",icon:"logos:angular-icon",message:"workplace.introduction",personal:"Archer",time:new Date},{name:"React",icon:"logos:react",message:"workplace.introduction",personal:"Archer",time:new Date},{name:"Webpack",icon:"logos:webpack",message:"workplace.introduction",personal:"Archer",time:new Date},{name:"Vite",icon:"vscode-icons:file-type-vite",message:"workplace.introduction",personal:"Archer",time:new Date}])};let w=v([]);const ve=async()=>{w=Object.assign(w,[{title:"\u7CFB\u7EDF\u5347\u7EA7\u7248\u672C",type:"\u901A\u77E5",keys:["\u901A\u77E5","\u5347\u7EA7"],date:new Date},{title:"\u7CFB\u7EDF\u51CC\u6668\u7EF4\u62A4",type:"\u516C\u544A",keys:["\u516C\u544A","\u7EF4\u62A4"],date:new Date},{title:"\u7CFB\u7EDF\u5347\u7EA7\u7248\u672C",type:"\u901A\u77E5",keys:["\u901A\u77E5","\u5347\u7EA7"],date:new Date},{title:"\u7CFB\u7EDF\u51CC\u6668\u7EF4\u62A4",type:"\u516C\u544A",keys:["\u516C\u544A","\u7EF4\u62A4"],date:new Date}])};let z=v([]);const he=async()=>{z=Object.assign(z,[{name:"Github",icon:"akar-icons:github-fill",url:"github.io"},{name:"Vue",icon:"logos:vue",url:"vuejs.org"},{name:"Vite",icon:"vscode-icons:file-type-vite",url:"https://vitejs.dev/"},{name:"Angular",icon:"logos:angular-icon",url:"github.io"},{name:"React",icon:"logos:react",url:"github.io"},{name:"Webpack",icon:"logos:webpack",url:"github.io"}])},we=async()=>{const p=[{value:335,name:"analysis.directAccess"},{value:310,name:"analysis.mailMarketing"},{value:234,name:"analysis.allianceAdvertising"},{value:135,name:"analysis.videoAdvertising"},{value:1548,name:"analysis.searchEngines"}];W(m,"legend.data",p.map(d=>n(d.name))),m.series[0].data=p.map(d=>({name:n(d.name),value:d.value}))},M=v(Le),ke=async()=>{const p=[{value:13253,name:"analysis.monday"},{value:34235,name:"analysis.tuesday"},{value:26321,name:"analysis.wednesday"},{value:12340,name:"analysis.thursday"},{value:24643,name:"analysis.friday"},{value:1322,name:"analysis.saturday"},{value:1324,name:"analysis.sunday"}];W(M,"xAxis.data",p.map(d=>n(d.name))),W(M,"series",[{name:n("analysis.activeQuantity"),data:p.map(d=>d.value),type:"bar"}])};return(async()=>(await Promise.all([R(),$(),ve(),he(),we(),ke()]),c.value=!1))(),(p,d)=>{const ce=Qe,x=Re,O=qe,U=$e,k=ze,_=Pe,y=Ge,C=Ve,oe=Me,de=Ue,be=G;return f(),b(A,null,[s("div",null,[e(y,{shadow:"never"},{default:a(()=>[e(_,{loading:t(c),animated:""},{default:a(()=>[e(k,{gutter:16,justify:"space-between"},{default:a(()=>[e(x,{xl:12,lg:12,md:12,sm:24,xs:24},{default:a(()=>[s("div",I,[e(ce,{src:t(u),size:70,class:"mr-16px"},{default:a(()=>[P]),_:1},8,["src"]),s("div",null,[s("div",X,l(t(n)("workplace.welcome"))+" "+l(t(H))+" "+l(t(n)("workplace.happyDay")),1),s("div",q,l(t(n)("workplace.toady"))+"\uFF0C20\u2103 - 32\u2103\uFF01 ",1)])])]),_:1}),e(x,{xl:12,lg:12,md:12,sm:24,xs:24},{default:a(()=>[s("div",F,[s("div",Q,[s("div",B,l(t(n)("workplace.project")),1),e(O,{class:"text-20px","start-val":0,"end-val":t(g).project,duration:2600},null,8,["end-val"])]),e(U,{direction:"vertical"}),s("div",J,[s("div",K,l(t(n)("workplace.toDo")),1),e(O,{class:"text-20px","start-val":0,"end-val":t(g).todo,duration:2600},null,8,["end-val"])]),e(U,{direction:"vertical","border-style":"dashed"}),s("div",L,[s("div",N,l(t(n)("workplace.access")),1),e(O,{class:"text-20px","start-val":0,"end-val":t(g).access,duration:2600},null,8,["end-val"])])])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),e(k,{class:"mt-8px",gutter:8,justify:"space-between"},{default:a(()=>[e(x,{xl:16,lg:16,md:24,sm:24,xs:24,class:"mb-8px"},{default:a(()=>[e(y,{shadow:"never"},{header:a(()=>[s("div",S,[s("span",null,l(t(n)("workplace.project")),1),e(C,{type:"primary",underline:!1},{default:a(()=>[D(l(t(n)("action.more")),1)]),_:1})])]),default:a(()=>[e(_,{loading:t(c),animated:""},{default:a(()=>[e(k,null,{default:a(()=>[(f(!0),b(A,null,V(t(o),(i,j)=>(f(),ye(x,{key:`card-${j}`,xl:8,lg:8,md:8,sm:24,xs:24},{default:a(()=>[e(y,{shadow:"hover"},{default:a(()=>[s("div",T,[e(oe,{icon:i.icon,size:25,class:"mr-8px"},null,8,["icon"]),s("span",Y,l(i.name),1)]),s("div",Z,l(t(n)(i.message)),1),s("div",ee,[s("span",null,l(i.personal),1),s("span",null,l(t(ge)(i.time,"yyyy-MM-dd")),1)])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["loading"])]),_:1}),e(y,{shadow:"never",class:"mt-8px"},{default:a(()=>[e(_,{loading:t(c),animated:""},{default:a(()=>[e(k,{gutter:20,justify:"space-between"},{default:a(()=>[e(x,{xl:10,lg:10,md:24,sm:24,xs:24},{default:a(()=>[e(y,{shadow:"hover",class:"mb-8px"},{default:a(()=>[e(_,{loading:t(c),animated:""},{default:a(()=>[e(de,{options:t(m),height:280},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1}),e(x,{xl:14,lg:14,md:24,sm:24,xs:24},{default:a(()=>[e(y,{shadow:"hover",class:"mb-8px"},{default:a(()=>[e(_,{loading:t(c),animated:""},{default:a(()=>[e(de,{options:t(M),height:280},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1}),e(x,{xl:8,lg:8,md:24,sm:24,xs:24,class:"mb-8px"},{default:a(()=>[e(y,{shadow:"never"},{header:a(()=>[s("div",ae,[s("span",null,l(t(n)("workplace.shortcutOperation")),1)])]),default:a(()=>[e(_,{loading:t(c),animated:""},{default:a(()=>[e(k,null,{default:a(()=>[(f(!0),b(A,null,V(t(z),i=>(f(),ye(x,{key:`team-${i.name}`,span:8,class:"mb-8px"},{default:a(()=>[s("div",te,[e(oe,{icon:i.icon,class:"mr-8px"},null,8,["icon"]),e(C,{type:"default",underline:!1,onClick:j=>t(E)(i.name)},{default:a(()=>[D(l(i.name),1)]),_:2},1032,["onClick"])])]),_:2},1024))),128))]),_:1})]),_:1},8,["loading"])]),_:1}),e(y,{shadow:"never",class:"mt-8px"},{header:a(()=>[s("div",se,[s("span",null,l(t(n)("workplace.notice")),1),e(C,{type:"primary",underline:!1},{default:a(()=>[D(l(t(n)("action.more")),1)]),_:1})])]),default:a(()=>[e(_,{loading:t(c),animated:""},{default:a(()=>[(f(!0),b(A,null,V(t(w),(i,j)=>(f(),b("div",{key:`dynamics-${j}`},[s("div",le,[e(ce,{src:t(u),size:35,class:"mr-16px"},{default:a(()=>[ne]),_:1},8,["src"]),s("div",null,[s("div",ie,[e(be,{keys:i.keys.map(je=>t(n)(je))},{default:a(()=>[D(l(i.type)+" : "+l(i.title),1)]),_:2},1032,["keys"])]),s("div",re,l(t(ge)(i.date,"yyyy-MM-dd")),1)])]),e(U)]))),128))]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/Home/Index.vue"]])});export{Se as __tla,fe as default};
|