@ -5,11 +5,7 @@
< el -aside class = "main-cont main-left" >
< div class = "tilte" : style = "{background: backgroundColor}" >
< img alt class = "logoimg" :src ="$GIN_VUE_ADMIN.appLogo" >
< h2
v - if = "isSider"
class = "tit-text"
: style = "{ color: textColor }"
> { { $GIN_VUE_ADMIN . appName } } < / h2 >
< h2 v-if ="isSider" class="tit-text" :style="{color:textColor}" > {{ $ GIN_VUE_ADMIN.appName }} < / h2 >
< / div >
< Aside class = "aside" / >
< / e l - a s i d e >
@ -21,6 +17,7 @@
class = "topfix"
>
< el -row >
<!-- : xs = "8" : sm = "6" : md = "4" : lg = "3" : xl = "1" -- >
< el -col >
< el -header class = "header-cont" >
< el -row class = "pd-0" >
@ -43,9 +40,7 @@
< Search / >
< Screenfull class = "screenfull" :style ="{cursor:'pointer'}" / >
< el -dropdown >
< div
class = "dp-flex justify-content-center align-items height-full width-full"
>
< div class = "dp-flex justify-content-center align-items height-full width-full" >
< span class = "header-avatar" style = "cursor: pointer" >
< CustomPic / >
< span style = "margin-left: 5px" > { { userInfo . nickName } } < / span >
@ -55,17 +50,15 @@
< template # dropdown >
< el -dropdown -menu class = "dropdown-group" >
< el -dropdown -item >
< span
style = "font-weight: 600;"
> 当前角色 : { { userInfo . authority . authorityName } } < / span >
< span style = "font-weight: 600;" >
当前角色 : { { userInfo . authority . authorityName } }
< / span >
< / e l - d r o p d o w n - i t e m >
< template v-if ="userInfo.authorities" >
< el -dropdown -item
v - for = "item in userInfo.authorities.filter(i => i.authorityId !== userInfo.authorityId)"
: key = "item.authorityId"
@ click = "changeUserAuth(item.authorityId)"
>
< span > 切换为 : { { item . authorityName } } < / span >
< el -dropdown -item v-for ="item in userInfo.authorities.filter(i=>i.authorityId!==userInfo.authorityId)" :key="item.authorityId" @click="changeUserAuth(item.authorityId)" >
< span >
切换为 : { { item . authorityName } }
< / span >
< / e l - d r o p d o w n - i t e m >
< / template >
< el -dropdown -item icon = "el-icon-s-custom" @click ="toPerson" > 个人信息 < / el -dropdown -item >
@ -80,30 +73,20 @@
< / e l - c o l >
< / e l - r o w >
<!-- 当前面包屑用路由自动生成可根据需求修改 -- >
<!--
: to = "{ path: item.path }" 暂时注释不用 -- >
< HistoryComponent ref = "layoutHistoryComponent" / >
< / div >
< / transition >
< router -view
v - if = "$route.meta.keepAlive && reloadFlag"
v - slot = "{ Component }"
v - loading = "loadingFlag"
element - loading - text = "正在加载中"
class = "admin-box"
>
< transition mode = "out-in" name = "zoom-fade" >
< router -view v-if ="$route.meta.keepAlive && reloadFlag" v-slot="{ Component }" v-loading="loadingFlag" element-loading-text="正在加载中" class="admin-box" >
< transition mode = "out-in" name = "el-fade-in-linear" >
< keep -alive >
< component :is ="Component" / >
< / k e e p - a l i v e >
< / transition >
< / r o u t e r - v i e w >
< router -view
v - if = "!$route.meta.keepAlive && reloadFlag"
v - slot = "{ Component }"
v - loading = "loadingFlag"
element - loading - text = "正在加载中"
class = "admin-box"
>
< transition mode = "out-in" name = "zoom-fade" >
< router -view v-if ="!$route.meta.keepAlive && reloadFlag" v-slot="{ Component }" v-loading="loadingFlag" element-loading-text="正在加载中" class="admin-box" >
< transition mode = "out-in" name = "el-fade-in-linear" >
< component :is ="Component" / >
< / transition >
< / r o u t e r - v i e w >
@ -112,6 +95,7 @@
< setting / >
< / e l - m a i n >
< / e l - c o n t a i n e r >
< / e l - c o n t a i n e r >
< / template >
@ -258,8 +242,8 @@ export default {
}
< / script >
< style lang = "scss" scoped >
@ import "@/style/mobile.scss" ;
< style lang = "scss" >
@ import '@/style/mobile.scss' ;
. dark {
background - color : # 191 a23 ! important ;