ProfileUser-146c2b05.js 2.9 KB

1
  1. import{d as G,r as J,q as K,o as c,c as p,g as t,f as r,a as s,y as o,t as a,a0 as _,h as L,j as M,_ as N,__tla as O}from"./index-8dc1e40a.js";import{f as Q,__tla as S}from"./formatTime-8a155b2e.js";import V,{__tla as W}from"./UserAvatar-a77371be.js";import{g as Y,__tla as Z}from"./profile-77dac77c.js";import{__tla as $}from"./el-avatar-cc250104.js";import{__tla as ss}from"./Dialog-41802231.js";import{__tla as as}from"./XButton-bca72e5c.js";import{__tla as ts}from"./useMessage-7a27dd80.js";let F,ls=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ss}catch{}})(),(()=>{try{return as}catch{}})(),(()=>{try{return ts}catch{}})()]).then(async()=>{let u,n,f,d,g,h,v,y,x,k,w,P,U,b,j,T;u={class:"text-center"},n={class:"list-group list-group-striped"},f={class:"list-group-item"},d={class:"pull-right"},g={class:"list-group-item"},h={class:"pull-right"},v={class:"list-group-item"},y={class:"pull-right"},x={class:"list-group-item"},k={key:0,class:"pull-right"},w={class:"list-group-item"},P={key:0,class:"pull-right"},U={class:"list-group-item"},b={key:0,class:"pull-right"},j={class:"list-group-item"},T={class:"pull-right"},F=N(G({name:"ProfileUser",__name:"ProfileUser",setup(rs){const{t:e}=L(),l=J({});return K(async()=>{await(async()=>{const q=await Y();l.value=q})()}),(q,es)=>{var z,A,D,R,X,H,I,B,C,E;const i=M;return c(),p("div",null,[t("div",u,[r(V,{img:(z=s(l))==null?void 0:z.avatar},null,8,["img"])]),t("ul",n,[t("li",f,[r(i,{class:"mr-5px",icon:"ep:user"}),o(" "+a(s(e)("profile.user.username"))+" ",1),t("div",d,a((A=s(l))==null?void 0:A.username),1)]),t("li",g,[r(i,{class:"mr-5px",icon:"ep:phone"}),o(" "+a(s(e)("profile.user.mobile"))+" ",1),t("div",h,a((D=s(l))==null?void 0:D.mobile),1)]),t("li",v,[r(i,{class:"mr-5px",icon:"fontisto:email"}),o(" "+a(s(e)("profile.user.email"))+" ",1),t("div",y,a((R=s(l))==null?void 0:R.email),1)]),t("li",x,[r(i,{class:"mr-5px",icon:"carbon:tree-view-alt"}),o(" "+a(s(e)("profile.user.dept"))+" ",1),(X=s(l))!=null&&X.dept?(c(),p("div",k,a((H=s(l))==null?void 0:H.dept.name),1)):_("",!0)]),t("li",w,[r(i,{class:"mr-5px",icon:"ep:suitcase"}),o(" "+a(s(e)("profile.user.posts"))+" ",1),(I=s(l))!=null&&I.posts?(c(),p("div",P,a((B=s(l))==null?void 0:B.posts.map(m=>m.name).join(",")),1)):_("",!0)]),t("li",U,[r(i,{class:"mr-5px",icon:"icon-park-outline:peoples"}),o(" "+a(s(e)("profile.user.roles"))+" ",1),(C=s(l))!=null&&C.roles?(c(),p("div",b,a((E=s(l))==null?void 0:E.roles.map(m=>m.name).join(",")),1)):_("",!0)]),t("li",j,[r(i,{class:"mr-5px",icon:"ep:calendar"}),o(" "+a(s(e)("profile.user.createTime"))+" ",1),t("div",T,a(s(Q)(s(l).createTime)),1)])])])}}}),[["__scopeId","data-v-71d11d66"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/Profile/components/ProfileUser.vue"]])});export{ls as __tla,F as default};