import{d as w,r as U,b as j,o as p,c,C as l,k as a,a as s,O as o,D as e,h as u,J as P,U as T,H as C}from"./index-BP6bNRoi.js";import{f as D}from"./formatTime-DwR9f7DP.js";import F from"./UserAvatar-C0MdBRR4.js";import{g as A}from"./profile-D2d8moUa.js";import"./el-avatar-DuLjWuSU.js";import"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import"./XButton-BfzTlH8o.js";const B={class:"text-center"},E={class:"list-group list-group-striped"},H={class:"list-group-item"},I={class:"pull-right"},J={class:"list-group-item"},O={class:"pull-right"},q={class:"list-group-item"},z={class:"pull-right"},G={class:"list-group-item"},K={key:0,class:"pull-right"},L={class:"list-group-item"},M={key:0,class:"pull-right"},N={class:"list-group-item"},Q={key:0,class:"pull-right"},R={class:"list-group-item"},S={class:"pull-right"},V=C(w({name:"ProfileUser",__name:"ProfileUser",setup(W){const{t:r}=P(),i=U({});return j(async()=>{await(async()=>{const n=await A();i.value=n})()}),(n,X)=>{var d,g,f,v,h,x,b,k,y,_;const t=T;return p(),c("div",null,[l("div",B,[a(F,{img:(d=s(i))==null?void 0:d.avatar},null,8,["img"])]),l("ul",E,[l("li",H,[a(t,{class:"mr-5px",icon:"ep:user"}),o(" "+e(s(r)("profile.user.username"))+" ",1),l("div",I,e((g=s(i))==null?void 0:g.username),1)]),l("li",J,[a(t,{class:"mr-5px",icon:"ep:phone"}),o(" "+e(s(r)("profile.user.mobile"))+" ",1),l("div",O,e((f=s(i))==null?void 0:f.mobile),1)]),l("li",q,[a(t,{class:"mr-5px",icon:"fontisto:email"}),o(" "+e(s(r)("profile.user.email"))+" ",1),l("div",z,e((v=s(i))==null?void 0:v.email),1)]),l("li",G,[a(t,{class:"mr-5px",icon:"carbon:tree-view-alt"}),o(" "+e(s(r)("profile.user.dept"))+" ",1),(h=s(i))!=null&&h.dept?(p(),c("div",K,e((x=s(i))==null?void 0:x.dept.name),1)):u("",!0)]),l("li",L,[a(t,{class:"mr-5px",icon:"ep:suitcase"}),o(" "+e(s(r)("profile.user.posts"))+" ",1),(b=s(i))!=null&&b.posts?(p(),c("div",M,e((k=s(i))==null?void 0:k.posts.map(m=>m.name).join(",")),1)):u("",!0)]),l("li",N,[a(t,{class:"mr-5px",icon:"icon-park-outline:peoples"}),o(" "+e(s(r)("profile.user.roles"))+" ",1),(y=s(i))!=null&&y.roles?(p(),c("div",Q,e((_=s(i))==null?void 0:_.roles.map(m=>m.name).join(",")),1)):u("",!0)]),l("li",R,[a(t,{class:"mr-5px",icon:"ep:calendar"}),o(" "+e(s(r)("profile.user.createTime"))+" ",1),l("div",S,e(s(D)(s(i).createTime)),1)])])])}}}),[["__scopeId","data-v-e446db2e"]]);export{V as default};
|