|
|
|
@ -1,26 +1,65 @@
|
|
|
|
|
<template>
|
|
|
|
|
<el-aside class="index-aside" width="200px">
|
|
|
|
|
<div class="index-aside-inner menulist">
|
|
|
|
|
<div v-for="item in menuList" :key="item.roleName" v-if="role==item.roleName" class="menulist-item">
|
|
|
|
|
<!-- 动态渲染菜单 -->
|
|
|
|
|
<div v-for="item in menuList" :key="item.roleName" v-if="role == item.roleName" class="menulist-item">
|
|
|
|
|
<!-- 用户头像 -->
|
|
|
|
|
<div class="menulistImg" v-if="false && 2 == 2">
|
|
|
|
|
<el-image :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"solid","height":"auto"}' v-if="'http://codegen.caihongy.cn/20201021/cc7d45d9c8164b58b18351764eba9be1.jpg'" src="http://codegen.caihongy.cn/20201021/cc7d45d9c8164b58b18351764eba9be1.jpg" fit="cover" />
|
|
|
|
|
<el-image
|
|
|
|
|
:style='{
|
|
|
|
|
padding: "0",
|
|
|
|
|
boxShadow: "0 0 6px rgba(0,0,0,0)",
|
|
|
|
|
margin: "0",
|
|
|
|
|
borderColor: "rgba(0,0,0,0)",
|
|
|
|
|
borderRadius: "0",
|
|
|
|
|
borderWidth: "0",
|
|
|
|
|
width: "100%",
|
|
|
|
|
borderStyle: "solid",
|
|
|
|
|
height: "auto"
|
|
|
|
|
}'
|
|
|
|
|
v-if="'http://codegen.caihongy.cn/20201021/cc7d45d9c8164b58b18351764eba9be1.jpg'"
|
|
|
|
|
src="http://codegen.caihongy.cn/20201021/cc7d45d9c8164b58b18351764eba9be1.jpg"
|
|
|
|
|
fit="cover"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<el-menu :mode="2 == 1? 'horizontal':'vertical'" :unique-opened="true" class="el-menu-demo" default-active="0">
|
|
|
|
|
<el-menu-item index="0" @click="menuHandler('')"><i v-if="false" class="el-icon-menu el-icon-s-home" />首页</el-menu-item>
|
|
|
|
|
<el-submenu :index="1+''">
|
|
|
|
|
|
|
|
|
|
<!-- 主菜单 -->
|
|
|
|
|
<el-menu
|
|
|
|
|
:mode="2 == 1 ? 'horizontal' : 'vertical'"
|
|
|
|
|
:unique-opened="true"
|
|
|
|
|
class="el-menu-demo"
|
|
|
|
|
default-active="0"
|
|
|
|
|
>
|
|
|
|
|
<!-- 首页菜单项 -->
|
|
|
|
|
<el-menu-item index="0" @click="menuHandler('')">
|
|
|
|
|
<i v-if="false" class="el-icon-menu el-icon-s-home" />
|
|
|
|
|
首页
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
|
|
|
|
<!-- 个人中心子菜单 -->
|
|
|
|
|
<el-submenu :index="1 + ''">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<i v-if="false" class="el-icon-menu el-icon-user-solid" />
|
|
|
|
|
<span>个人中心</span>
|
|
|
|
|
<i v-if="false" class="el-icon-menu el-icon-user-solid" />
|
|
|
|
|
<span>个人中心</span>
|
|
|
|
|
</template>
|
|
|
|
|
<el-menu-item :index="1-1" @click="menuHandler('updatePassword')">修改密码</el-menu-item>
|
|
|
|
|
<el-menu-item :index="1-2" @click="menuHandler('center')">个人信息</el-menu-item>
|
|
|
|
|
<el-menu-item :index="1 - 1" @click="menuHandler('updatePassword')">修改密码</el-menu-item>
|
|
|
|
|
<el-menu-item :index="1 - 2" @click="menuHandler('center')">个人信息</el-menu-item>
|
|
|
|
|
</el-submenu>
|
|
|
|
|
<el-submenu v-for=" (menu,index) in item.backMenu" :key="menu.menu" :index="index+2+''">
|
|
|
|
|
|
|
|
|
|
<!-- 动态渲染子菜单 -->
|
|
|
|
|
<el-submenu v-for="(menu, index) in item.backMenu" :key="menu.menu" :index="index + 2 + ''">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<i v-if="false" class="el-icon-menu" :class="icons[index]" />
|
|
|
|
|
<span>{{ menu.menu }}</span>
|
|
|
|
|
<i v-if="false" class="el-icon-menu" :class="icons[index]" />
|
|
|
|
|
<span>{{ menu.menu }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
<el-menu-item v-for=" (child,sort) in menu.child" :key="sort" :index="(index+2)+'-'+sort" @click="menuHandler(child.tableName)">{{ child.menu }}</el-menu-item>
|
|
|
|
|
<el-menu-item
|
|
|
|
|
v-for="(child, sort) in menu.child"
|
|
|
|
|
:key="sort"
|
|
|
|
|
:index="(index + 2) + '-' + sort"
|
|
|
|
|
@click="menuHandler(child.tableName)"
|
|
|
|
|
>
|
|
|
|
|
{{ child.menu }}
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
</el-submenu>
|
|
|
|
|
</el-menu>
|
|
|
|
|
</div>
|
|
|
|
@ -30,12 +69,13 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import menu from '@/utils/menu'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
menuList: [],
|
|
|
|
|
dynamicMenuRoutes: [],
|
|
|
|
|
role: '',
|
|
|
|
|
menuList: [], // 动态菜单数据
|
|
|
|
|
dynamicMenuRoutes: [], // 动态路由数据
|
|
|
|
|
role: '', // 当前用户角色
|
|
|
|
|
icons: [
|
|
|
|
|
'el-icon-s-cooperation',
|
|
|
|
|
'el-icon-s-order',
|
|
|
|
@ -78,146 +118,144 @@ export default {
|
|
|
|
|
'el-icon-stopwatch',
|
|
|
|
|
],
|
|
|
|
|
menulistStyle: '${template.back.menulist.menulistStyle}',
|
|
|
|
|
menulistBorderBottom: {},
|
|
|
|
|
menulistBorderBottom: {}, // 边框样式
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
// 初始化菜单数据
|
|
|
|
|
const menus = menu.list()
|
|
|
|
|
if(menus) {
|
|
|
|
|
this.menuList = menus
|
|
|
|
|
if (menus) {
|
|
|
|
|
this.menuList = menus
|
|
|
|
|
} else {
|
|
|
|
|
let params = {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 1,
|
|
|
|
|
sort: 'id',
|
|
|
|
|
let params = {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 1,
|
|
|
|
|
sort: 'id',
|
|
|
|
|
}
|
|
|
|
|
this.$http({
|
|
|
|
|
url: "menu/list",
|
|
|
|
|
method: "get",
|
|
|
|
|
params: params
|
|
|
|
|
}).then(({ data }) => {
|
|
|
|
|
if (data && data.code === 0) {
|
|
|
|
|
this.menuList = JSON.parse(data.data.list[0].menujson)
|
|
|
|
|
this.$storage.set("menus", this.menuList)
|
|
|
|
|
}
|
|
|
|
|
this.$http({
|
|
|
|
|
url: "menu/list",
|
|
|
|
|
method: "get",
|
|
|
|
|
params: params
|
|
|
|
|
}).then(({
|
|
|
|
|
data
|
|
|
|
|
}) => {
|
|
|
|
|
if (data && data.code === 0) {
|
|
|
|
|
this.menuList = JSON.parse(data.data.list[0].menujson);
|
|
|
|
|
this.$storage.set("menus", this.menuList);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 获取当前用户角色
|
|
|
|
|
this.role = this.$storage.get('role')
|
|
|
|
|
},
|
|
|
|
|
created(){
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
created() {
|
|
|
|
|
// 延迟加载样式
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.menulistStyleChange()
|
|
|
|
|
},10)
|
|
|
|
|
this.icons.sort(()=>{
|
|
|
|
|
return (0.5-Math.random())
|
|
|
|
|
})
|
|
|
|
|
this.lineBorder()
|
|
|
|
|
}, 10)
|
|
|
|
|
// 随机排序图标
|
|
|
|
|
this.icons.sort(() => 0.5 - Math.random())
|
|
|
|
|
this.lineBorder()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
lineBorder() {
|
|
|
|
|
let style = '${template.back.menulist.menulistStyle}'
|
|
|
|
|
let w = '${template.back.menulist.menulistLineWidth}'
|
|
|
|
|
let s = '${template.back.menulist.menulistLineStyle}'
|
|
|
|
|
let c = '${template.back.menulist.menulistLineColor}'
|
|
|
|
|
if(style == 'vertical') {
|
|
|
|
|
this.menulistBorderBottom = {
|
|
|
|
|
borderBottomWidth: w,
|
|
|
|
|
borderBottomStyle: s,
|
|
|
|
|
borderBottomColor: c
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.menulistBorderBottom = {
|
|
|
|
|
borderRightWidth: w,
|
|
|
|
|
borderRightStyle: s,
|
|
|
|
|
borderRightColor: c
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
lineBorder() {
|
|
|
|
|
let style = '${template.back.menulist.menulistStyle}'
|
|
|
|
|
let w = '${template.back.menulist.menulistLineWidth}'
|
|
|
|
|
let s = '${template.back.menulist.menulistLineStyle}'
|
|
|
|
|
let c = '${template.back.menulist.menulistLineColor}'
|
|
|
|
|
|
|
|
|
|
if (style == 'vertical') {
|
|
|
|
|
this.menulistBorderBottom = {
|
|
|
|
|
borderBottomWidth: w,
|
|
|
|
|
borderBottomStyle: s,
|
|
|
|
|
borderBottomColor: c
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.menulistBorderBottom = {
|
|
|
|
|
borderRightWidth: w,
|
|
|
|
|
borderRightStyle: s,
|
|
|
|
|
borderRightColor: c
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
menuHandler(name) {
|
|
|
|
|
let router = this.$router
|
|
|
|
|
name = '/'+name
|
|
|
|
|
name = '/' + name
|
|
|
|
|
router.push(name)
|
|
|
|
|
},
|
|
|
|
|
// 菜单
|
|
|
|
|
setMenulistHoverColor(){
|
|
|
|
|
let that = this
|
|
|
|
|
return;
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
document.querySelectorAll('.menulist .el-menu-item').forEach(el=>{
|
|
|
|
|
// 菜单样式调整
|
|
|
|
|
menulistStyleChange() {
|
|
|
|
|
this.setMenulistIconColor()
|
|
|
|
|
this.setMenulistHoverColor()
|
|
|
|
|
this.setMenulistStyleHeightChange()
|
|
|
|
|
let str = "2"
|
|
|
|
|
if (1 == str) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
document.querySelectorAll('.el-container .el-container').forEach(el => {
|
|
|
|
|
el.style.display = "block"
|
|
|
|
|
el.style.paddingTop = "80px" // header 高度
|
|
|
|
|
})
|
|
|
|
|
document.querySelectorAll('.el-aside').forEach(el => {
|
|
|
|
|
el.style.width = "100%"
|
|
|
|
|
el.style.height = "auto"
|
|
|
|
|
el.style.paddingTop = '0'
|
|
|
|
|
})
|
|
|
|
|
document.querySelectorAll('.index-aside .index-aside-inner').forEach(el => {
|
|
|
|
|
el.style.paddingTop = '0'
|
|
|
|
|
el.style.width = "100%"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (2 === str) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
document.querySelectorAll('.index-aside .index-aside-inner').forEach(el => {
|
|
|
|
|
el.style.paddingTop = "80px"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
setMenulistHoverColor() {
|
|
|
|
|
return
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
document.querySelectorAll('.menulist .el-menu-item').forEach(el => {
|
|
|
|
|
el.addEventListener("mouseenter", e => {
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
el.style.backgroundColor = "${template.back.menulist.menulistHoverColor}"
|
|
|
|
|
})
|
|
|
|
|
el.addEventListener("mouseleave", e => {
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
// el.style.backgroundColor = "${template.back.menulist.menulistBgColor}"
|
|
|
|
|
el.style.background = "none"
|
|
|
|
|
el.style.backgroundColor = "none"
|
|
|
|
|
})
|
|
|
|
|
el.addEventListener("focus", e => {
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
el.style.backgroundColor = "${template.back.menulist.menulistHoverColor}"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
document.querySelectorAll('.menulist .el-submenu__title').forEach(el=>{
|
|
|
|
|
document.querySelectorAll('.menulist .el-submenu__title').forEach(el => {
|
|
|
|
|
el.addEventListener("mouseenter", e => {
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
el.style.backgroundColor = "${template.back.menulist.menulistHoverColor}"
|
|
|
|
|
})
|
|
|
|
|
el.addEventListener("mouseleave", e => {
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
// el.style.backgroundColor = "${template.back.menulist.menulistBgColor}"
|
|
|
|
|
el.style.background = "none"
|
|
|
|
|
el.style.backgroundColor = "none"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
setMenulistIconColor() {
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
document.querySelectorAll('.menulist .el-submenu__title .el-submenu__icon-arrow').forEach(el=>{
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
document.querySelectorAll('.menulist .el-submenu__title .el-submenu__icon-arrow').forEach(el => {
|
|
|
|
|
el.style.color = "${template.back.menulist.menulistIconColor}"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
menulistStyleChange() {
|
|
|
|
|
this.setMenulistIconColor()
|
|
|
|
|
this.setMenulistHoverColor()
|
|
|
|
|
this.setMenulistStyleHeightChange()
|
|
|
|
|
let str = "2"
|
|
|
|
|
if(1 == str) {
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
document.querySelectorAll('.el-container .el-container').forEach(el=>{
|
|
|
|
|
el.style.display = "block"
|
|
|
|
|
el.style.paddingTop = "80px" // header 高度
|
|
|
|
|
})
|
|
|
|
|
document.querySelectorAll('.el-aside').forEach(el=>{
|
|
|
|
|
el.style.width = "100%"
|
|
|
|
|
el.style.height = "auto"
|
|
|
|
|
el.style.paddingTop = '0'
|
|
|
|
|
})
|
|
|
|
|
document.querySelectorAll('.index-aside .index-aside-inner').forEach(el=>{
|
|
|
|
|
el.style.paddingTop = '0'
|
|
|
|
|
el.style.width = "100%"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(2 === str) {
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
document.querySelectorAll('.index-aside .index-aside-inner').forEach(el=>{
|
|
|
|
|
el.style.paddingTop = "80px"
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
setMenulistStyleHeightChange() {
|
|
|
|
|
return;
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
document.querySelectorAll('.menulist-item>.el-menu--horizontal>.el-menu-item').forEach(el=>{
|
|
|
|
|
return
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
document.querySelectorAll('.menulist-item>.el-menu--horizontal>.el-menu-item').forEach(el => {
|
|
|
|
|
el.style.height = "${template.back.menulist.menulistHeight}"
|
|
|
|
|
el.style.lineHeight = "${template.back.menulist.menulistHeight}"
|
|
|
|
|
})
|
|
|
|
|
document.querySelectorAll('.menulist-item>.el-menu--horizontal>.el-submenu>.el-submenu__title').forEach(el=>{
|
|
|
|
|
document.querySelectorAll('.menulist-item>.el-menu--horizontal>.el-submenu>.el-submenu__title').forEach(el => {
|
|
|
|
|
el.style.height = "${template.back.menulist.menulistHeight}"
|
|
|
|
|
el.style.lineHeight = "${template.back.menulist.menulistHeight}"
|
|
|
|
|
})
|
|
|
|
@ -226,276 +264,281 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.el-container {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
.index-aside {
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
.el-container {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
.index-aside {
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
.menulistImg {
|
|
|
|
|
font-size: 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
.menulistImg {
|
|
|
|
|
font-size: 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
.el-image {
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
width: 100px;
|
|
|
|
|
height: 100px;
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
display: block;
|
|
|
|
|
.el-image {
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
width: 100px;
|
|
|
|
|
height: 100px;
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.index-aside-inner {
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin-right: -17px;
|
|
|
|
|
margin-bottom: -17px;
|
|
|
|
|
overflow: scroll;
|
|
|
|
|
overflow-x: hidden !important;
|
|
|
|
|
padding-top: 80px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& /deep/ .el-menu {
|
|
|
|
|
border: 0;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.index-aside .index-aside-inner.menulist {
|
|
|
|
|
height: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menulist-item {
|
|
|
|
|
width: 200px;
|
|
|
|
|
padding: 15px 20px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 !important;
|
|
|
|
|
border-style: solid !important;
|
|
|
|
|
border-color: rgba(254, 236, 190, 1) !important;
|
|
|
|
|
background: #FEECBE !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0.2);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-menu-demo {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
min-height: calc(100vh - 80px);
|
|
|
|
|
|
|
|
|
|
& > .el-menu-item {
|
|
|
|
|
width: auto;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
line-height: 24px !important;
|
|
|
|
|
padding: 10px 22px 10px 10px;
|
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 160px;
|
|
|
|
|
border-width: 5px 3px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(79, 150, 68, 1) !important;
|
|
|
|
|
background-color: rgba(98, 190, 84, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(255, 255, 255, 0);
|
|
|
|
|
box-sizing: initial;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
.el-icon-menu {
|
|
|
|
|
margin: 0 5px 0 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 24px;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
color: rgba(199, 21, 133, 1);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: #fff;
|
|
|
|
|
background-color: rgba(255, 255, 255, 0);
|
|
|
|
|
box-shadow: 0 0 6px rgba(255, 255, 255, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.index-aside-inner {
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin-right: -17px;
|
|
|
|
|
margin-bottom: -17px;
|
|
|
|
|
overflow: scroll;
|
|
|
|
|
overflow-x: hidden !important;
|
|
|
|
|
padding-top: 80px;
|
|
|
|
|
|
|
|
|
|
.el-submenu {
|
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& /deep/ .el-submenu__title {
|
|
|
|
|
width: auto;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
line-height: 24px !important;
|
|
|
|
|
padding: 10px 22px 10px 10px;
|
|
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 160px;
|
|
|
|
|
border-width: 5px 3px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(79, 150, 68, 1) !important;
|
|
|
|
|
background-color: rgba(98, 190, 84, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(255, 255, 255, 0);
|
|
|
|
|
box-sizing: initial;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
.el-icon-menu {
|
|
|
|
|
margin: 0 5px 0 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 24px;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
color: rgba(199, 21, 133, 1);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: #fff;
|
|
|
|
|
background-color: rgba(255, 255, 255, 0);
|
|
|
|
|
box-shadow: 0 0 6px rgba(255, 255, 255, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& /deep/ .el-menu {
|
|
|
|
|
border: 0;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 12px;
|
|
|
|
|
line-height: 12px;
|
|
|
|
|
color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: #fff;
|
|
|
|
|
background-color: rgba(255, 255, 255, 0);
|
|
|
|
|
box-shadow: 0 0 6px rgba(255, 255, 255, 0);
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
right: 0;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& /deep/ .el-menu.el-menu--inline {
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: auto;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0 auto 5px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0.3);
|
|
|
|
|
background-color: rgba(88, 171, 75, 1);
|
|
|
|
|
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
|
|
.el-menu-item {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(249, 249, 249, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.75);
|
|
|
|
|
background-color: rgba(255, 255, 255, 0) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
min-width: auto;
|
|
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(88, 171, 75, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0);
|
|
|
|
|
background-color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(88, 171, 75, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0);
|
|
|
|
|
background-color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.index-aside .index-aside-inner.menulist {
|
|
|
|
|
height: auto !important;
|
|
|
|
|
}
|
|
|
|
|
.menulist-item {
|
|
|
|
|
width: 200px;
|
|
|
|
|
padding: 15px 20px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 !important;
|
|
|
|
|
border-style: solid !important;
|
|
|
|
|
border-color: rgba(254, 236, 190, 1) !important;
|
|
|
|
|
background: #FEECBE !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, .2);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
.el-menu-demo {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
min-height: calc(100vh - 80px);
|
|
|
|
|
|
|
|
|
|
&>.el-menu-item {
|
|
|
|
|
width: auto;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
line-height: 24px !important;
|
|
|
|
|
padding: 10px 22px 10px 10px;
|
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 160px;
|
|
|
|
|
border-width: 5px 3px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(79, 150, 68, 1) !important;
|
|
|
|
|
background-color: rgba(98, 190, 84, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
|
|
|
box-sizing: initial;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
.el-icon-menu {
|
|
|
|
|
margin: 0 5px 0 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 24px;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
color: rgba(199, 21, 133, 1);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: #fff;
|
|
|
|
|
background-color: rgba(255,255,255,0);
|
|
|
|
|
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-submenu {
|
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& /deep/ .el-submenu__title {
|
|
|
|
|
width: auto;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
line-height: 24px !important;
|
|
|
|
|
padding: 10px 22px 10px 10px;
|
|
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 160px;
|
|
|
|
|
border-width: 5px 3px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(79, 150, 68, 1) !important;
|
|
|
|
|
background-color: rgba(98, 190, 84, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
|
|
|
box-sizing: initial;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
.el-icon-menu {
|
|
|
|
|
margin: 0 5px 0 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 24px;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
color: rgba(199, 21, 133, 1);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: #fff;
|
|
|
|
|
background-color: rgba(255,255,255,0);
|
|
|
|
|
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 12px;
|
|
|
|
|
line-height: 12px;
|
|
|
|
|
color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: #fff;
|
|
|
|
|
background-color: rgba(255,255,255,0);
|
|
|
|
|
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
right: 0;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& /deep/ .el-menu.el-menu--inline {
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: auto;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0 auto 5px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0,0,0,.3);
|
|
|
|
|
background-color: rgba(88, 171, 75, 1);
|
|
|
|
|
box-shadow: 0 0 6px rgba(0, 0, 0, .3);
|
|
|
|
|
|
|
|
|
|
.el-menu-item {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(249, 249, 249, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.75);
|
|
|
|
|
background-color: rgba(255, 255, 255, 0) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
min-width: auto;
|
|
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(88, 171, 75, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0);
|
|
|
|
|
background-color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(88, 171, 75, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0);
|
|
|
|
|
background-color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<style>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 弹出菜单样式 */
|
|
|
|
|
<style>
|
|
|
|
|
.el-menu--horizontal .el-menu--popup {
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: auto;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0 auto 5px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0,0,0,.3);
|
|
|
|
|
background-color: rgba(88, 171, 75, 1);
|
|
|
|
|
box-shadow: 0 0 6px rgba(0, 0, 0, .3);
|
|
|
|
|
min-width: auto;
|
|
|
|
|
}
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: auto;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0 auto 5px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0.3);
|
|
|
|
|
background-color: rgba(88, 171, 75, 1);
|
|
|
|
|
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
|
|
|
|
|
min-width: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-menu--horizontal .el-menu--popup .el-menu-item {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(249, 249, 249, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.75);
|
|
|
|
|
background-color: rgba(255, 255, 255, 0) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
min-width: auto;
|
|
|
|
|
}
|
|
|
|
|
.el-menu--horizontal .el-menu--popup .el-menu-item:hover {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(88, 171, 75, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0);
|
|
|
|
|
background-color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(249, 249, 249, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.75);
|
|
|
|
|
background-color: rgba(255, 255, 255, 0) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
min-width: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-menu--horizontal .el-menu--popup .el-menu-item:hover {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: rgba(88, 171, 75, 1) !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-width: 0;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: rgba(0, 0, 0, 0);
|
|
|
|
|
background-color: rgba(255, 255, 255, 1) !important;
|
|
|
|
|
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
</style>
|