|
|
|
@ -1,29 +1,33 @@
|
|
|
|
|
<template>
|
|
|
|
|
<el-menu class="navbar" mode="horizontal">
|
|
|
|
|
<hamburger class="hamburger-container" :toggleClick="toggleSideBar" :isActive="sidebar.opened"></hamburger>
|
|
|
|
|
<levelbar></levelbar>
|
|
|
|
|
<error-log v-if="log.length>0" class="errLog-container" :logsList="log"></error-log>
|
|
|
|
|
<screenfull class='screenfull'></screenfull>
|
|
|
|
|
<el-dropdown class="avatar-container" trigger="click">
|
|
|
|
|
<div class="avatar-wrapper">
|
|
|
|
|
<img class="user-avatar" :src="avatar+'?imageView2/1/w/80/h/80'">
|
|
|
|
|
<i class="el-icon-caret-bottom"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-dropdown-menu class="user-dropdown" slot="dropdown">
|
|
|
|
|
<router-link class='inlineBlock' to="/">
|
|
|
|
|
<el-dropdown-item>
|
|
|
|
|
首页
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</router-link>
|
|
|
|
|
<a target='_blank' href="https://github.com/PanJiaChen/vue-element-admin/">
|
|
|
|
|
<el-dropdown-item>
|
|
|
|
|
项目地址
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</a>
|
|
|
|
|
<el-dropdown-item divided><span @click="logout" style="display:block;">退出登录</span></el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</el-menu>
|
|
|
|
|
<el-menu class="navbar" mode="horizontal">
|
|
|
|
|
<hamburger class="hamburger-container" :toggleClick="toggleSideBar" :isActive="sidebar.opened"></hamburger>
|
|
|
|
|
<levelbar></levelbar>
|
|
|
|
|
<error-log v-if="log.length>0" class="errLog-container" :logsList="log"></error-log>
|
|
|
|
|
<el-tooltip class="item" effect="dark" content="全屏" placement="bottom">
|
|
|
|
|
<screenfull class='screenfull'></screenfull>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-dropdown class="avatar-container" trigger="click">
|
|
|
|
|
<div class="avatar-wrapper">
|
|
|
|
|
<img class="user-avatar" :src="avatar+'?imageView2/1/w/80/h/80'">
|
|
|
|
|
<i class="el-icon-caret-bottom"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-dropdown-menu class="user-dropdown" slot="dropdown">
|
|
|
|
|
<router-link class='inlineBlock' to="/">
|
|
|
|
|
<el-dropdown-item>
|
|
|
|
|
首页
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</router-link>
|
|
|
|
|
<a target='_blank' href="https://github.com/PanJiaChen/vue-element-admin/">
|
|
|
|
|
<el-dropdown-item>
|
|
|
|
|
项目地址
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</a>
|
|
|
|
|
<el-dropdown-item divided>
|
|
|
|
|
<span @click="logout" style="display:block;">退出登录</span>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</el-menu>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
@ -67,50 +71,50 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
|
|
.navbar {
|
|
|
|
|
height: 50px;
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
border-radius: 0px !important;
|
|
|
|
|
.hamburger-container {
|
|
|
|
|
line-height: 58px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
float: left;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
}
|
|
|
|
|
.errLog-container {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 150px;
|
|
|
|
|
}
|
|
|
|
|
.screenfull {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 90px;
|
|
|
|
|
top: 16px;
|
|
|
|
|
color: red;
|
|
|
|
|
.navbar {
|
|
|
|
|
height: 50px;
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
border-radius: 0px !important;
|
|
|
|
|
.hamburger-container {
|
|
|
|
|
line-height: 58px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
float: left;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
}
|
|
|
|
|
.errLog-container {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 150px;
|
|
|
|
|
}
|
|
|
|
|
.screenfull {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 90px;
|
|
|
|
|
top: 16px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
}
|
|
|
|
|
.avatar-container {
|
|
|
|
|
height: 50px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 35px;
|
|
|
|
|
.avatar-wrapper {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
position: relative;
|
|
|
|
|
.user-avatar {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
.avatar-container {
|
|
|
|
|
height: 50px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 35px;
|
|
|
|
|
.avatar-wrapper {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
position: relative;
|
|
|
|
|
.user-avatar {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
.el-icon-caret-bottom {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: -20px;
|
|
|
|
|
top: 25px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-icon-caret-bottom {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: -20px;
|
|
|
|
|
top: 25px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|