import{d as a,r as s,a0 as e,a1 as l,x as t,c as o,w as i,i as r,h as n,k as u,O as c,a as f,b as m,L as d,u as p,a2 as _,K as y,e as v,f as x,t as g,U as k,g as C,F as z,a3 as b,a4 as h,n as N,_ as j}from"./index-CY26MUkV.js";import{_ as w,a as A,b as F,c as I}from"./menu.T5Pyw8ep.js";import{u as P}from"./useUserStore.Cw6yzw5k.js";import{l as S}from"./logo.BydINwEG.js";const U=j(a({__name:"my",setup(a){const j=s(""),U=s(""),$=P(),{userAccount:D}=e($);l(()=>{E()});const E=async()=>{var a;const s=(await t("/api/services/app/Profile/GetCurrentUserProfileForEdit",{}).catch(a=>{})).result||{};U.value=(null==(a=D.value)?void 0:a.tenant)+"/"+(null==s?void 0:s.userName),$.updateBaseInfo(s)},T=()=>{h({current:0,urls:["/static/image/logo.png"]})},B=(a,s)=>{N({url:a})};return(a,s)=>{const e=n(u("uni-icons"),w),l=n(u("up-icon"),c),t=r,h=v,N=k,P=n(u("uni-grid-item"),A),$=n(u("uni-grid"),F);return f(),o(t,{class:"my",style:{"background-color":"#f6f7f9"}},{default:i(()=>[m(t,{class:"header"},{default:i(()=>[m(t,{class:"header-icon-area"},{default:i(()=>[m(e,{"custom-prefix":"iconfont",type:"yo-icon-xiaoxi1",size:"22",onClick:s[0]||(s[0]=a=>B("/app/main/message"))}),m(l,{name:"setting",size:"22",onClick:s[1]||(s[1]=a=>B("/app/main/setting"))})]),_:1}),m(t,{class:"user-info",style:d({fontSize:p(_).size+"px"})},{default:i(()=>[j.value?(f(),o(h,{key:0,src:j.value,class:"avatar",onClick:T},null,8,["src"])):y("",!0),m(h,{src:p(S),class:"avatar",onClick:T},null,8,["src"]),m(t,{class:"userName"},{default:i(()=>[m(t,{class:"userName-title",onClick:s[2]||(s[2]=a=>B("/app/main/baseInfo"))},{default:i(()=>[x(g(U.value)+" ",1),m(e,{type:"forward",size:"16",style:{color:"#333"}})]),_:1}),m(t,{class:"userName-subtitle"},{default:i(()=>[x(g(a.$t("WelcomeToTheZHCPDA"))+"~",1)]),_:1})]),_:1})]),_:1},8,["style"])]),_:1}),m(t,{class:"main margin-12",style:d({fontSize:p(_).size+"px"})},{default:i(()=>[m(N,{class:"main-title"},{default:i(()=>[x(g(a.$t("CommonApplications")),1)]),_:1}),m($,{column:4,"show-border":!1},{default:i(()=>[(f(!0),C(z,null,b(p(I),(s,e)=>(f(),o(P,{key:e,index:e,onClick:a=>B(s.url)},{default:i(()=>[m(t,{class:"grid-item-box",hoverClass:"hover-class"},{default:i(()=>[m(t,{class:"usually-app"},{default:i(()=>[m(l,{"custom-prefix":"iconfont "+s.icon,color:s.color,size:2*Number(p(_).size)},null,8,["custom-prefix","color","size"])]),_:2},1024),m(N,{class:"usually-text"},{default:i(()=>[x(g(a.$t(s.name)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["index","onClick"]))),128))]),_:1})]),_:1},8,["style"])]),_:1})}}}),[["__scopeId","data-v-3a9b8a46"]]);export{U as default};
