|
|
@@ -1,13 +1,11 @@
|
|
|
<template>
|
|
|
<div id="menuBox">
|
|
|
- <div class="header-box">
|
|
|
- <div class="logo">{{ title }}</div>
|
|
|
- <div class="info-box">
|
|
|
- <div class="btn-logout" @click="logout()">注销</div>
|
|
|
- <div class="user-name-label">{{ info.userName }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<div class="menu-box">
|
|
|
+ <div class="content-title">
|
|
|
+ <img src="../assets/image/content-logo.png" class="content-logo">
|
|
|
+ <div class="first-title">{{ title }}</div>
|
|
|
+ <div class="user-name">欢迎您,{{ $store.getters.name }}</div>
|
|
|
+ </div>
|
|
|
<el-menu :default-active="activeIndex" class="el-menu-vertical-demo">
|
|
|
<template v-for="item in menuList">
|
|
|
<el-submenu :index="item.index" :key="item.index" v-if="item.list"
|
|
|
@@ -29,6 +27,9 @@
|
|
|
</el-menu-item>
|
|
|
</template>
|
|
|
</el-menu>
|
|
|
+ <div class="out-login">
|
|
|
+ <el-button type="success" @click="logout" icon="el-icon-switch-button" size="small" style="margin-top: 20px">退出登录</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="content-box">
|
|
|
<router-view ref="routeNode"></router-view>
|
|
|
@@ -41,7 +42,6 @@
|
|
|
import {getMenuList} from "../utils/menu";
|
|
|
import {title} from "@/settings";
|
|
|
import request from '@/utils/request';
|
|
|
-
|
|
|
var _this;
|
|
|
export default {
|
|
|
name: "Menu",
|
|
|
@@ -60,6 +60,7 @@ export default {
|
|
|
_this = this;
|
|
|
_this.activeMenu = this.$route.path == "/" ? "/graphModel" : this.$route.path;
|
|
|
_this.queryInfo();
|
|
|
+ console.log(this.$store.getters)
|
|
|
},
|
|
|
methods: {
|
|
|
gotoMenu(item) {
|
|
|
@@ -127,7 +128,8 @@ export default {
|
|
|
width: 100%;
|
|
|
box-shadow: 0px 1px 4px 0px rgba(0, 21, 41, 0.12);
|
|
|
overflow: hidden;
|
|
|
- color: #0070f7;
|
|
|
+ color: #ffffff;
|
|
|
+ background: #2780ff;
|
|
|
|
|
|
.logo {
|
|
|
float: left;
|
|
|
@@ -135,9 +137,20 @@ export default {
|
|
|
overflow: hidden;
|
|
|
height: 100%;
|
|
|
line-height: 60px;
|
|
|
- font-size: 24px;
|
|
|
+ font-size: 20px;
|
|
|
padding-left: 30px;
|
|
|
+ letter-spacing:3px;
|
|
|
+ background: linear-gradient(to bottom, #a8b6c9, white);
|
|
|
+ -webkit-text-fill-color: transparent;
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ font-weight: bolder;
|
|
|
/*font-weight: bold;*/
|
|
|
+
|
|
|
+ .logo-img{
|
|
|
+ width: 35px;
|
|
|
+ vertical-align: middle;
|
|
|
+ margin-right: 15px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.info-box {
|
|
|
@@ -157,24 +170,28 @@ export default {
|
|
|
|
|
|
.user-name-label {
|
|
|
height: 100%;
|
|
|
- font-size: 16px;
|
|
|
- color: rgb(170, 170, 170);
|
|
|
+ color: #d9d9d9;
|
|
|
margin-left: 20px;
|
|
|
float: right;
|
|
|
line-height: 70px;
|
|
|
+ i{
|
|
|
+ margin-right: 5px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.btn-logout {
|
|
|
border-radius: 5px;
|
|
|
/*border: 1px solid rgb(167, 210, 249);*/
|
|
|
- color: rgb(0, 153, 255);
|
|
|
- background-color: rgba(236, 245, 255, 1);
|
|
|
+ color: #ffffff;
|
|
|
margin-left: 15px;
|
|
|
margin-top: 20px;
|
|
|
margin-right: 20px;
|
|
|
float: right;
|
|
|
padding: 6px 10px;
|
|
|
cursor: pointer;
|
|
|
+ i{
|
|
|
+ margin-right: 5px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -217,26 +234,77 @@ export default {
|
|
|
|
|
|
.el-menu-item-group {
|
|
|
.el-menu-item {
|
|
|
- color: rgba(175, 169, 169, 0.76);
|
|
|
+ color: #999999;
|
|
|
}
|
|
|
|
|
|
.el-menu-item.is-active {
|
|
|
- color: #fff !important;
|
|
|
+ color: #2780ff !important;
|
|
|
+ border-left: 5px solid #2780ff;
|
|
|
+ i{
|
|
|
+ color: #2780ff !important;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.el-menu-item-group:hover {
|
|
|
- background: #eeeeee;
|
|
|
- color: #fff !important;
|
|
|
+ background: rgba(240, 245, 250, 1);
|
|
|
+ color: #2780ff !important;
|
|
|
}
|
|
|
|
|
|
.menu-box {
|
|
|
- width: 290px;
|
|
|
- height: calc(100% - 60px);
|
|
|
- background: #2780ff;
|
|
|
+ width: 260px;
|
|
|
+ height: 100%;
|
|
|
+ //background: #2780ff;
|
|
|
+ color: #333333;
|
|
|
float: left;
|
|
|
+ //overflow-y: auto;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .out-login{
|
|
|
+ position: absolute;
|
|
|
+ bottom:0px;
|
|
|
+ left: 0px;
|
|
|
+ right: 0px;
|
|
|
+ height: 80px;
|
|
|
+ text-align: center;
|
|
|
+ background: #ffffff;
|
|
|
+ }
|
|
|
|
|
|
- overflow-y: auto;
|
|
|
+ .el-menu-vertical-demo{
|
|
|
+ height: calc(100% - 300px);
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .content-title{
|
|
|
+ height: 220px;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+
|
|
|
+ .content-logo{
|
|
|
+ text-align: center;
|
|
|
+ width: 60px;
|
|
|
+ margin-top: 40px;
|
|
|
+ margin-bottom: 30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .first-title{
|
|
|
+ font-size: 20px;
|
|
|
+ letter-spacing:3px;
|
|
|
+ font-weight: bold;
|
|
|
+ background: linear-gradient(to bottom, #1652D5, cornflowerblue);
|
|
|
+ -webkit-text-fill-color: transparent;
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ padding-bottom: 30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .user-name{
|
|
|
+ font-weight: normal;
|
|
|
+ font-size: 14px;
|
|
|
+ text-align: left;
|
|
|
+ margin: 0 30px;
|
|
|
+ color: brown;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
.system-title {
|
|
|
height: 70px;
|
|
|
@@ -250,49 +318,56 @@ export default {
|
|
|
|
|
|
|
|
|
ul {
|
|
|
- background: rgba(42, 70, 170, 0.3);
|
|
|
+ //background: rgba(42, 70, 170, 0.3);
|
|
|
|
|
|
+ .el-menu-item{
|
|
|
+ border-left: 5px solid transparent;
|
|
|
+ }
|
|
|
.el-menu-item:hover {
|
|
|
- background: #1c4ec8;
|
|
|
+ background: rgba(240, 245, 250, 1);
|
|
|
}
|
|
|
|
|
|
.el-menu-item.is-active {
|
|
|
- background: #1c4ec8;
|
|
|
- color: #ffffff;
|
|
|
+ background: rgba(240, 245, 250, 1);
|
|
|
+ color: #2780ff;
|
|
|
+ border-left: 5px solid #2780ff;
|
|
|
+ i{
|
|
|
+ color: #2780ff;
|
|
|
+ }
|
|
|
|
|
|
span {
|
|
|
- color: #ffffff;
|
|
|
+ color: #2780ff;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.el-submenu.is-active .el-submenu__title i, .el-submenu.is-active .el-submenu__title span {
|
|
|
- color: #ffffff !important;
|
|
|
+ color: #2780ff !important;
|
|
|
}
|
|
|
|
|
|
li {
|
|
|
.el-menu {
|
|
|
- background: #1652D5;
|
|
|
+ background: #ffffff;
|
|
|
|
|
|
li {
|
|
|
- background: #1652D5;
|
|
|
+ background: #ffffff;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
span {
|
|
|
- color: rgba(255, 255, 255, 0.76);
|
|
|
+ color: #666666;
|
|
|
}
|
|
|
|
|
|
i {
|
|
|
- color: rgba(255, 255, 255, 0.76);
|
|
|
+ color: #666666;
|
|
|
}
|
|
|
|
|
|
.el-submenu__title {
|
|
|
i {
|
|
|
- color: rgba(255, 255, 255, 0.76);
|
|
|
+ color: #666666;
|
|
|
}
|
|
|
|
|
|
span {
|
|
|
- color: rgba(255, 255, 255, 0.76);
|
|
|
+ color: #666666;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -309,7 +384,7 @@ export default {
|
|
|
|
|
|
.content-box {
|
|
|
float: left;
|
|
|
- width: calc(100% - 15.10417vw);
|
|
|
+ width: calc(100% - 13.54167vw);
|
|
|
height: 100%;
|
|
|
display: block;
|
|
|
background: #F0F2F5;
|
|
|
@@ -318,14 +393,23 @@ export default {
|
|
|
.menu-title {
|
|
|
width: 100%;
|
|
|
/*background: #FFFFFF;*/
|
|
|
- height: 68px;
|
|
|
- line-height: 68px;
|
|
|
+ //height: 68px;
|
|
|
+ //line-height: 68px;
|
|
|
/*border-top: 1px solid rgb(233, 233, 233);*/
|
|
|
/*border-bottom: 1px solid rgb(233, 233, 233);*/
|
|
|
padding: 0 30px;
|
|
|
font-size: 18px;
|
|
|
font-weight: bold;
|
|
|
color: #4E5054;
|
|
|
+ padding-top: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .menu-title::after {
|
|
|
+ content: "";
|
|
|
+ display: block;
|
|
|
+ width: 20px;
|
|
|
+ height: 5px;
|
|
|
+ background: #2780ff;
|
|
|
}
|
|
|
}
|
|
|
|