|
@@ -1,29 +1,27 @@
|
|
<template>
|
|
<template>
|
|
<div class="navbar">
|
|
<div class="navbar">
|
|
|
|
+ <div class="pageTitle">平台管理概况</div>
|
|
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
-
|
|
+ <!--收缩左侧菜单-->
|
|
- <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
|
|
+ <!-- <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
-
|
|
+ <breadcrumb id="breadcrumb-container" class="breadcrumb-container" /> -->
|
|
<div class="right-menu">
|
|
<div class="right-menu">
|
|
- <template v-if="device!=='mobile'">
|
|
+ <!--搜索,全屏,大小写转换和翻译-->
|
|
|
|
+ <!-- <template v-if="device!=='mobile'">
|
|
<search id="header-search" class="right-menu-item" />
|
|
<search id="header-search" class="right-menu-item" />
|
|
-
|
|
|
|
<error-log class="errLog-container right-menu-item hover-effect" />
|
|
<error-log class="errLog-container right-menu-item hover-effect" />
|
|
-
|
|
|
|
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
|
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
|
-
|
|
|
|
<el-tooltip :content="$t('navbar.size')" effect="dark" placement="bottom">
|
|
<el-tooltip :content="$t('navbar.size')" effect="dark" placement="bottom">
|
|
<size-select id="size-select" class="right-menu-item hover-effect" />
|
|
<size-select id="size-select" class="right-menu-item hover-effect" />
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
-
|
|
|
|
<lang-select class="right-menu-item hover-effect" />
|
|
<lang-select class="right-menu-item hover-effect" />
|
|
-
|
|
+ </template> -->
|
|
- </template>
|
|
|
|
-
|
|
|
|
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
|
|
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
|
|
<div class="avatar-wrapper">
|
|
<div class="avatar-wrapper">
|
|
<img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar">
|
|
<img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar">
|
|
- <i class="el-icon-caret-bottom" />
|
|
+ <span class="userName">{{this.$store.state.user.name}}</span>
|
|
|
|
+ <!--向下按钮-->
|
|
|
|
+ <!-- <i class="el-icon-caret-bottom" /> -->
|
|
</div>
|
|
</div>
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
<router-link to="/profile/index">
|
|
<router-link to="/profile/index">
|
|
@@ -78,7 +76,7 @@ export default {
|
|
'sidebar',
|
|
'sidebar',
|
|
'avatar',
|
|
'avatar',
|
|
'device'
|
|
'device'
|
|
- ])
|
|
+ ]),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
toggleSideBar() {
|
|
toggleSideBar() {
|
|
@@ -89,8 +87,7 @@ export default {
|
|
// this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
// this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
// }
|
|
// }
|
|
logout(){
|
|
logout(){
|
|
- //调用store中的退出
|
|
+ this.$store.commit("user/LOGOUT");
|
|
- this.$store.commit('user/LOGOUT')
|
|
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -102,9 +99,25 @@ export default {
|
|
height: 50px;
|
|
height: 50px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
position: relative;
|
|
position: relative;
|
|
|
|
+ display:flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
background: #fff;
|
|
background: #fff;
|
|
box-shadow: 0 1px 4px rgba(0,21,41,.08);
|
|
box-shadow: 0 1px 4px rgba(0,21,41,.08);
|
|
|
|
|
|
|
|
+ .pageTitle {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ padding-left: 30px;
|
|
|
|
+ color: #45464E;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .userName {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ color:#1C1D22;
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+ }
|
|
|
|
+
|
|
.hamburger-container {
|
|
.hamburger-container {
|
|
line-height: 46px;
|
|
line-height: 46px;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -159,7 +172,8 @@ export default {
|
|
|
|
|
|
.avatar-wrapper {
|
|
.avatar-wrapper {
|
|
margin-top: 5px;
|
|
margin-top: 5px;
|
|
- position: relative;
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
|
|
.user-avatar {
|
|
.user-avatar {
|
|
cursor: pointer;
|
|
cursor: pointer;
|