2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
import y from"./userAvatar.99568fdf.js";import G from"./userInfo.b19cd1b8.js";import w from"./resetPwd.4c0fb7bd.js";import{g as V}from"./user.7256fdbe.js";import{B as N,C,r as k,D as B,d as r,o as f,c as h,e as s,w as l,k as e,f as t,m as c,x as a,l as U,F as P}from"./index.4144b0df.js";const S={class:"app-container"},T=e("div",{class:"clearfix"},[e("span",null,"\u4E2A\u4EBA\u4FE1\u606F")],-1),q={class:"text-center"},D={class:"list-group list-group-striped"},$={class:"list-group-item"},j={class:"pull-right"},A={class:"list-group-item"},E={class:"pull-right"},F={class:"list-group-item"},O={class:"pull-right"},R={class:"list-group-item"},z={key:0,class:"pull-right"},H={class:"list-group-item"},I={class:"pull-right"},J={class:"list-group-item"},K={class:"pull-right"},L=e("div",{class:"clearfix"},[e("span",null,"\u57FA\u672C\u8D44\u6599")],-1),M=N({name:"Profile"}),se=Object.assign(M,{setup(Q){C(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="none"});const u=k("userinfo"),o=B({user:{},roleGroup:{},postGroup:{}});function g(){V().then(i=>{o.user=i.data,o.roleGroup=i.roleGroup,o.postGroup=i.postGroup})}return g(),(i,_)=>{const n=r("svg-icon"),d=r("el-card"),p=r("el-col"),m=r("el-tab-pane"),v=r("el-tabs"),x=r("el-row");return f(),h("div",S,[s(x,{gutter:20},{default:l(()=>[s(p,{span:6,xs:24},{default:l(()=>[s(d,{class:"box-card"},{header:l(()=>[T]),default:l(()=>[e("div",null,[e("div",q,[s(t(y),{user:t(o).user},null,8,["user"])]),e("ul",D,[e("li",$,[s(n,{"icon-class":"user"}),c("\u7528\u6237\u540D\u79F0 "),e("div",j,a(t(o).user.userName),1)]),e("li",A,[s(n,{"icon-class":"phone"}),c("\u624B\u673A\u53F7\u7801 "),e("div",E,a(t(o).user.phonenumber),1)]),e("li",F,[s(n,{"icon-class":"email"}),c("\u7528\u6237\u90AE\u7BB1 "),e("div",O,a(t(o).user.email),1)]),e("li",R,[s(n,{"icon-class":"tree"}),c("\u6240\u5C5E\u90E8\u95E8 "),t(o).user.dept?(f(),h("div",z,a(t(o).user.dept.deptName)+" / "+a(t(o).postGroup),1)):U("",!0)]),e("li",H,[s(n,{"icon-class":"peoples"}),c("\u6240\u5C5E\u89D2\u8272 "),e("div",I,a(t(o).roleGroup),1)]),e("li",J,[s(n,{"icon-class":"date"}),c("\u521B\u5EFA\u65E5\u671F "),e("div",K,a(t(o).user.createTime),1)])])])]),_:1})]),_:1}),s(p,{span:18,xs:24},{default:l(()=>[s(d,null,{header:l(()=>[L]),default:l(()=>[s(v,{modelValue:t(u),"onUpdate:modelValue":_[0]||(_[0]=b=>P(u)?u.value=b:null)},{default:l(()=>[s(m,{label:"\u57FA\u672C\u8D44\u6599",name:"userinfo"},{default:l(()=>[s(t(G),{user:t(o).user},null,8,["user"])]),_:1}),s(m,{label:"\u4FEE\u6539\u5BC6\u7801",name:"resetPwd"},{default:l(()=>[s(t(w))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{se as default};
|