沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
1
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-CHTXMeh8.js";import{f as D}from"./formatTime-DG99nHw2.js";import E from"./UserAvatar-DqHUKCHy.js";import{g as J}from"./profile-RahJNlBN.js";import"./el-avatar-DfAMRPCL.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import"./XButton-C1WkVWZR.js";const A={class:"text-center"},B={class:"list-group list-group-striped"},H={class:"list-group-item"},I={class:"pull-right"},O={class:"list-group-item"},q={class:"pull-right"},z={class:"list-group-item"},F={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 J();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",A,[a(E,{img:(d=s(i))==null?void 0:d.avatar},null,8,["img"])]),l("ul",B,[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",O,[a(t,{class:"mr-5px",icon:"ep:phone"}),o(" "+e(s(r)("profile.user.mobile"))+" ",1),l("div",q,e((f=s(i))==null?void 0:f.mobile),1)]),l("li",z,[a(t,{class:"mr-5px",icon:"fontisto:email"}),o(" "+e(s(r)("profile.user.email"))+" ",1),l("div",F,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};