|
@@ -1,8 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
<el-row :class="[{'shortnav':isCollapse},{'longNav':!isCollapse}]">
|
|
<el-row :class="[{'shortnav':isCollapse},{'longNav':!isCollapse}]">
|
|
|
- <img src="../assets/logo.png" class="logo" width="100%" height="60px" alt="" v-if="!isCollapse">
|
|
|
|
|
- <img src="../assets/logo.png" class="littleLogo" width="65px" height="60px" alt="" v-if="isCollapse">
|
|
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-menu
|
|
<el-menu
|
|
|
default-active="2"
|
|
default-active="2"
|
|
@@ -17,12 +15,12 @@
|
|
|
:collapse="isCollapse"
|
|
:collapse="isCollapse"
|
|
|
>
|
|
>
|
|
|
<el-menu-item index="1" route="/" title="系统首页">
|
|
<el-menu-item index="1" route="/" title="系统首页">
|
|
|
- <i class="el-icon-location"></i>
|
|
|
|
|
|
|
+ <i class="icon-home"></i>
|
|
|
<span slot="title">系统首页</span>
|
|
<span slot="title">系统首页</span>
|
|
|
</el-menu-item>
|
|
</el-menu-item>
|
|
|
<el-submenu :index="nav.clmid" :route="nav.clmurl" v-for="nav in navs">
|
|
<el-submenu :index="nav.clmid" :route="nav.clmurl" v-for="nav in navs">
|
|
|
<template slot="title">
|
|
<template slot="title">
|
|
|
- <i class="el-icon-location"></i>
|
|
|
|
|
|
|
+ <i :class="nav.icon"></i>
|
|
|
<span>{{nav.clmname}}</span>
|
|
<span>{{nav.clmname}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<el-menu-item-group v-for="(child,j) in nav.childs">
|
|
<el-menu-item-group v-for="(child,j) in nav.childs">
|
|
@@ -31,7 +29,7 @@
|
|
|
</el-menu-item-group>
|
|
</el-menu-item-group>
|
|
|
</el-submenu>
|
|
</el-submenu>
|
|
|
<el-menu-item index="99" route="#" title="退出登陆" @click="clickLogout">
|
|
<el-menu-item index="99" route="#" title="退出登陆" @click="clickLogout">
|
|
|
- <i class="el-icon-location"></i>
|
|
|
|
|
|
|
+ <i class="icon-logout"></i>
|
|
|
<span slot="title">退出登陆</span>
|
|
<span slot="title">退出登陆</span>
|
|
|
</el-menu-item>
|
|
</el-menu-item>
|
|
|
</el-menu>
|
|
</el-menu>
|
|
@@ -90,7 +88,7 @@
|
|
|
.shortnav {
|
|
.shortnav {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
width: 65px;
|
|
width: 65px;
|
|
|
- top: 0;
|
|
|
|
|
|
|
+ top: 40px;
|
|
|
bottom: 0;
|
|
bottom: 0;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
display: block;
|
|
display: block;
|
|
@@ -112,7 +110,12 @@
|
|
|
.el-col, .el-menu {
|
|
.el-col, .el-menu {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ .el-menu-item, /deep/.el-menu {
|
|
|
|
|
+ background-color: rgba(255,255,255,0.4)!important;
|
|
|
|
|
+ }
|
|
|
|
|
+ /deep/ .el-submenu__title {
|
|
|
|
|
+ background-color: rgba(255,255,255,0.4)!important;
|
|
|
|
|
+ }
|
|
|
.logout {
|
|
.logout {
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -127,4 +130,59 @@
|
|
|
.littleLogo {
|
|
.littleLogo {
|
|
|
float: left;
|
|
float: left;
|
|
|
}
|
|
}
|
|
|
|
|
+ .icon-home {
|
|
|
|
|
+ width: 18px;
|
|
|
|
|
+ height: 18px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ background: url("../assets/img/icon/home.png") top center no-repeat;
|
|
|
|
|
+ background-size: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .icon-location {
|
|
|
|
|
+ width: 18px;
|
|
|
|
|
+ height: 18px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ background: url("../assets/img/icon/location.png") top center no-repeat;
|
|
|
|
|
+ background-size: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .icon-list {
|
|
|
|
|
+ width: 18px;
|
|
|
|
|
+ height: 18px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ background: url("../assets/img/icon/list.png") top center no-repeat;
|
|
|
|
|
+ background-size: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .icon-equip {
|
|
|
|
|
+ width: 18px;
|
|
|
|
|
+ height: 18px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ background: url("../assets/img/icon/equip.png") top center no-repeat;
|
|
|
|
|
+ background-size: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .icon-qrcode {
|
|
|
|
|
+ width: 18px;
|
|
|
|
|
+ height: 18px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ background: url("../assets/img/icon/qrcode.png") top center no-repeat;
|
|
|
|
|
+ background-size: 100%;
|
|
|
|
|
+ } .icon-setting {
|
|
|
|
|
+ width: 18px;
|
|
|
|
|
+ height: 18px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ background: url("../assets/img/icon/setting.png") top center no-repeat;
|
|
|
|
|
+ background-size: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .icon-logout {
|
|
|
|
|
+ width: 18px;
|
|
|
|
|
+ height: 18px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ background: url("../assets/img/icon/logout.png") top center no-repeat;
|
|
|
|
|
+ background-size: 100%;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|