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