Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / index.8bbc2cd7.js
import G from"./userAvatar.a5360aa4.js";import V from"./userInfo.7de4822b.js";import N from"./resetPwd.3a3139b6.js";import{g as w}from"./user.abafe2ca.js";import{M as C,r as k,aa as B,e as n,o as f,c as h,f as s,w as l,m as e,h as t,p as c,z as a,n as P,ab as T}from"./index.82404a61.js";const U={class:"app-container"},y=e("div",{class:"clearfix"},[e("span",null,"\u4E2A\u4EBA\u4FE1\u606F")],-1),$={class:"text-center"},j={class:"list-group list-group-striped"},z={class:"list-group-item"},A={class:"pull-right"},D={class:"list-group-item"},E={class:"pull-right"},M={class:"list-group-item"},O={class:"pull-right"},R={class:"list-group-item"},S={key:0,class:"pull-right"},q={class:"list-group-item"},F={class:"pull-right"},H={class:"list-group-item"},I={class:"pull-right"},J=e("div",{class:"clearfix"},[e("span",null,"\u57FA\u672C\u8D44\u6599")],-1),K=C({name:"Profile"}),ee=Object.assign(K,{setup(L){const _=k("userinfo"),o=B({user:{},roleGroup:{},postGroup:{}});function g(){w().then(i=>{console.log("response",i),o.user=i.data.user,o.roleGroup=i.data.roleGroup,o.postGroup=i.data.postGroup})}return g(),(i,u)=>{const r=n("svg-icon"),d=n("el-card"),p=n("el-col"),m=n("el-tab-pane"),v=n("el-tabs"),b=n("el-row");return f(),h("div",U,[s(b,{gutter:20},{default:l(()=>[s(p,{span:6,xs:24},{default:l(()=>[s(d,{class:"box-card"},{header:l(()=>[y]),default:l(()=>[e("div",null,[e("div",$,[s(t(G),{user:t(o).user},null,8,["user"])]),e("ul",j,[e("li",z,[s(r,{"icon-class":"user"}),c("\u7528\u6237\u540D\u79F0 "),e("div",A,a(t(o).user.userName),1)]),e("li",D,[s(r,{"icon-class":"phone"}),c("\u624B\u673A\u53F7\u7801 "),e("div",E,a(t(o).user.phonenumber),1)]),e("li",M,[s(r,{"icon-class":"email"}),c("\u7528\u6237\u90AE\u7BB1 "),e("div",O,a(t(o).user.email),1)]),e("li",R,[s(r,{"icon-class":"tree"}),c("\u6240\u5C5E\u90E8\u95E8 "),t(o).user.dept?(f(),h("div",S,a(t(o).user.dept.deptName)+" / "+a(t(o).postGroup),1)):P("",!0)]),e("li",q,[s(r,{"icon-class":"peoples"}),c("\u6240\u5C5E\u89D2\u8272 "),e("div",F,a(t(o).roleGroup),1)]),e("li",H,[s(r,{"icon-class":"date"}),c("\u521B\u5EFA\u65E5\u671F "),e("div",I,a(t(o).user.createTime),1)])])])]),_:1})]),_:1}),s(p,{span:18,xs:24},{default:l(()=>[s(d,null,{header:l(()=>[J]),default:l(()=>[s(v,{modelValue:t(_),"onUpdate:modelValue":u[0]||(u[0]=x=>T(_)?_.value=x:null)},{default:l(()=>[s(m,{label:"\u57FA\u672C\u8D44\u6599",name:"userinfo"},{default:l(()=>[s(t(V),{user:t(o).user},null,8,["user"])]),_:1}),s(m,{label:"\u4FEE\u6539\u5BC6\u7801",name:"resetPwd"},{default:l(()=>[s(t(N))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{ee as default};