"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[1617],{71591:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var n=a(66252),s=a(3577);const l={class:"user-info-top"},i={class:"userView"},o={class:"name"},r={key:0};function u(e,t,a,u,c,p){const m=(0,n.up)("ossImgUpload"),d=(0,n.up)("el-tag"),g=(0,n.up)("el-header"),h=(0,n.up)("el-icon"),w=(0,n.up)("el-menu-item"),_=(0,n.up)("el-menu-item-group"),f=(0,n.up)("el-menu"),b=(0,n.up)("el-main"),k=(0,n.up)("el-container"),v=(0,n.up)("el-aside"),P=(0,n.up)("el-skeleton");return(0,n.wg)(),(0,n.j4)(k,{class:"mainBox mainNoBack userBox"},{default:(0,n.w5)((()=>[(0,n.Wm)(v,{class:"userAside",style:{width:"200px"}},{default:(0,n.w5)((()=>[(0,n.Wm)(k,null,{default:(0,n.w5)((()=>[(0,n.Wm)(g,{style:{height:"auto",display:"block","padding-left":"15px","padding-right":"15px"}},{default:(0,n.w5)((()=>[(0,n._)("div",l,[(0,n.Wm)(m,{onParentParams:p.parentParams,url:this.$store.state.global.login_avatar,type:"2"},null,8,["onParentParams","url"]),(0,n._)("div",i,[(0,n._)("h2",o,(0,s.toDisplayString)(this.$store.state.global.login_name),1),""!=c.user.role?((0,n.wg)(),(0,n.iD)("p",r,[(0,n.Wm)(d,{effect:"plain"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.toDisplayString)(c.user.role),1)])),_:1})])):(0,n.kq)("",!0)])])])),_:1}),(0,n.Wm)(b,{class:"nopadding"},{default:(0,n.w5)((()=>[(0,n.Wm)(f,{class:"menu mainMenu","default-active":c.page},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(c.menu,(e=>((0,n.wg)(),(0,n.j4)(_,{key:e.groupName,title:e.groupName},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.list,(e=>((0,n.wg)(),(0,n.j4)(w,{key:e.component,index:e.component,onClick:p.openPage},{title:(0,n.w5)((()=>[(0,n._)("span",null,(0,s.toDisplayString)(e.title),1)])),default:(0,n.w5)((()=>[e.icon?((0,n.wg)(),(0,n.j4)(h,{key:0},{default:(0,n.w5)((()=>[((0,n.wg)(),(0,n.j4)((0,n.LL)(e.icon)))])),_:2},1024)):(0,n.kq)("",!0)])),_:2},1032,["index","onClick"])))),128))])),_:2},1032,["title"])))),128))])),_:1},8,["default-active"])])),_:1})])),_:1})])),_:1}),(0,n.Wm)(b,{class:"userMain userMainPading_0"},{default:(0,n.w5)((()=>[((0,n.wg)(),(0,n.j4)(n.n4,null,{default:(0,n.w5)((()=>[((0,n.wg)(),(0,n.j4)((0,n.LL)(c.page)))])),fallback:(0,n.w5)((()=>[(0,n.Wm)(P,{rows:3})])),_:1}))])),_:1})])),_:1})}var c={name:"userCenter",components:{account:(0,n.RC)((()=>Promise.all([a.e(6325),a.e(8782)]).then(a.bind(a,33611)))),seting:(0,n.RC)((()=>a.e(9764).then(a.bind(a,14856)))),bind:(0,n.RC)((()=>Promise.all([a.e(6054),a.e(2077)]).then(a.bind(a,23986)))),pushSettings:(0,n.RC)((()=>a.e(4369).then(a.bind(a,15264)))),password:(0,n.RC)((()=>Promise.all([a.e(6325),a.e(6965)]).then(a.bind(a,78609)))),space:(0,n.RC)((()=>Promise.all([a.e(6325),a.e(9743)]).then(a.bind(a,48060)))),logs:(0,n.RC)((()=>a.e(2300).then(a.bind(a,4594)))),upToEnterprise:(0,n.RC)((()=>a.e(935).then(a.bind(a,36575))))},data(){return{menu:[{groupName:"账号设置",list:[{icon:"el-icon-postcard",title:"账号信息",component:"account"},{icon:"el-icon-lock",title:"修改密码",component:"password"},{icon:"el-icon-Setting",title:"账户安全",component:"bind"}]},{groupName:"数据管理",list:[{icon:"el-icon-clock",title:"操作日志",component:"logs"}]}],user:{avatar:this.$store.state.global.login_avatar,name:this.$store.state.global.login_name,role:""},userNameF:"",page:"account"}},beforeRouteEnter(e,t,a){a((e=>{t.is&&(delete t.is,e.$alert("路由跳转过来后含有特殊标识，做特殊处理","提示",{type:"success",center:!0}).then((()=>{})).catch((()=>{})))}))},created(){const e=this.$TOOL.data.get("USER_INFO");this.user.name=e.name,this.user.avatar=e.avatar,this.userNameF=e.name.substring(0,1),this.user.role=e.user_roles&&e.user_roles.role_names.length>0?e.user_roles.role_names[0]:""},methods:{openPage(e){this.page=e.index},async parentParams(e){let t={avatar:e};const a=await this.$API.user.uploadAvatar.post(t);200===a.code&&this.$store.commit("SET_LOGIN_AVATAR",e)}}},p=a(83744);const m=(0,p.Z)(c,[["render",u]]);var d=m}}]);