2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import s from"./userAvatar.912b0dbc.js";import e from"./userInfo.71702a70.js";import l from"./resetPwd.0e14fc60.js";import{g as a}from"./user.cbff96c4.js";import{G as r,H as u,r as t,I as o,d as i,o as c,c as p,e as n,w as d,l as m,f,n as g,A as v,m as b,J as h}from"./index.e5c8b0d6.js";const G={class:"app-container"},x=m("div",{class:"clearfix"},[m("span",null,"个人信息")],-1),_={class:"text-center"},y={class:"list-group list-group-striped"},j={class:"list-group-item"},w={class:"pull-right"},P={class:"list-group-item"},V={class:"pull-right"},q={class:"list-group-item"},A={class:"pull-right"},I={class:"list-group-item"},N={key:0,class:"pull-right"},S={class:"list-group-item"},k={class:"pull-right"},H={class:"list-group-item"},J={class:"pull-right"},O=m("div",{class:"clearfix"},[m("span",null,"基本资料")],-1),T=r({name:"Profile"}),U=Object.assign(T,{setup(r){u((()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="none"}));const T=t("userinfo"),U=o({user:{},roleGroup:{},postGroup:{}});return a().then((s=>{U.user=s.data,U.roleGroup=s.roleGroup,U.postGroup=s.postGroup})),(a,r)=>{const u=i("svg-icon"),t=i("el-card"),o=i("el-col"),z=i("el-tab-pane"),B=i("el-tabs"),C=i("el-row");return c(),p("div",G,[n(C,{gutter:20},{default:d((()=>[n(o,{span:6,xs:24},{default:d((()=>[n(t,{class:"box-card"},{header:d((()=>[x])),default:d((()=>[m("div",null,[m("div",_,[n(f(s),{user:f(U).user},null,8,["user"])]),m("ul",y,[m("li",j,[n(u,{"icon-class":"user"}),g("用户名称 "),m("div",w,v(f(U).user.userName),1)]),m("li",P,[n(u,{"icon-class":"phone"}),g("手机号码 "),m("div",V,v(f(U).user.phonenumber),1)]),m("li",q,[n(u,{"icon-class":"email"}),g("用户邮箱 "),m("div",A,v(f(U).user.email),1)]),m("li",I,[n(u,{"icon-class":"tree"}),g("所属部门 "),f(U).user.dept?(c(),p("div",N,v(f(U).user.dept.deptName)+" / "+v(f(U).postGroup),1)):b("",!0)]),m("li",S,[n(u,{"icon-class":"peoples"}),g("所属角色 "),m("div",k,v(f(U).roleGroup),1)]),m("li",H,[n(u,{"icon-class":"date"}),g("创建日期 "),m("div",J,v(f(U).user.createTime),1)])])])])),_:1})])),_:1}),n(o,{span:18,xs:24},{default:d((()=>[n(t,null,{header:d((()=>[O])),default:d((()=>[n(B,{modelValue:f(T),"onUpdate:modelValue":r[0]||(r[0]=s=>h(T)?T.value=s:null)},{default:d((()=>[n(z,{label:"基本资料",name:"userinfo"},{default:d((()=>[n(f(e),{user:f(U).user},null,8,["user"])])),_:1}),n(z,{label:"修改密码",name:"resetPwd"},{default:d((()=>[n(f(l))])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1})])),_:1})])}}});export{U as default};
|