|
|
|
@ -1,42 +1,43 @@ |
|
|
|
|
<template> |
|
|
|
|
<!-- 商业银行系统菜单文件 --> |
|
|
|
|
<el-menu class="sidebar-el-menu" :default-active="onRoutes" router background-color="#313540" text-color="#fff" active-text-color="#ffd04b" unique-opened> |
|
|
|
|
<template v-for="(item,index) in menus"> |
|
|
|
|
<template v-if="item.children"> |
|
|
|
|
<el-submenu :index="item.index" :key="item.index"> |
|
|
|
|
<template slot="title"> |
|
|
|
|
<template v-for="(item,index) in menus"> |
|
|
|
|
<template v-if="item.children"> |
|
|
|
|
<el-submenu :index="item.index" :key="item.index"> |
|
|
|
|
<template slot="title"> |
|
|
|
|
<i :class="item.icon"></i> |
|
|
|
|
<span slot="title">{{ item.title }}</span> |
|
|
|
|
</template> |
|
|
|
|
<template v-for="(subItem,index) in item.children"> |
|
|
|
|
<el-submenu |
|
|
|
|
v-if="subItem.children" |
|
|
|
|
:index="subItem.index" |
|
|
|
|
:key="subItem.index" |
|
|
|
|
> |
|
|
|
|
<template slot="title">{{ subItem.title }}</template> |
|
|
|
|
<el-menu-item |
|
|
|
|
v-for="(threeItem,i) in subItem.children" |
|
|
|
|
:key="i" |
|
|
|
|
:index="threeItem.index" |
|
|
|
|
>{{ threeItem.title }}</el-menu-item> |
|
|
|
|
</el-submenu> |
|
|
|
|
<el-menu-item |
|
|
|
|
v-else |
|
|
|
|
:index="subItem.index" |
|
|
|
|
:key="subItem.index" |
|
|
|
|
>{{ subItem.title }}</el-menu-item> |
|
|
|
|
</template> |
|
|
|
|
</el-submenu> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<el-menu-item :index="item.index" :key="item.index"> |
|
|
|
|
<i :class="item.icon"></i> |
|
|
|
|
<span slot="title">{{ item.title }}</span> |
|
|
|
|
</template> |
|
|
|
|
<template v-for="(subItem,index) in item.children"> |
|
|
|
|
<el-submenu |
|
|
|
|
v-if="subItem.children" |
|
|
|
|
:index="subItem.index" |
|
|
|
|
:key="subItem.index" |
|
|
|
|
> |
|
|
|
|
<template slot="title">{{ subItem.title }}</template> |
|
|
|
|
<el-menu-item |
|
|
|
|
v-for="(threeItem,i) in subItem.children" |
|
|
|
|
:key="i" |
|
|
|
|
:index="threeItem.index" |
|
|
|
|
>{{ threeItem.title }}</el-menu-item> |
|
|
|
|
</el-submenu> |
|
|
|
|
<el-menu-item |
|
|
|
|
v-else |
|
|
|
|
:index="subItem.index" |
|
|
|
|
:key="subItem.index" |
|
|
|
|
>{{ subItem.title }}</el-menu-item> |
|
|
|
|
</template> |
|
|
|
|
</el-submenu> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<el-menu-item :index="item.index" :key="item.index"> |
|
|
|
|
<i :class="item.icon"></i> |
|
|
|
|
<span slot="title">{{ item.title }}</span> |
|
|
|
|
</el-menu-item> |
|
|
|
|
</el-menu-item> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</el-menu> |
|
|
|
|
</el-menu> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -214,6 +215,15 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
// /dee/ .el-menu { |
|
|
|
|
// color: red!important; |
|
|
|
|
// overflow: auto; |
|
|
|
|
// } |
|
|
|
|
// .sidebar-el-menu { |
|
|
|
|
// // max-height: calc(100vh - 110px); |
|
|
|
|
// overflow: auto; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// .nav{ |
|
|
|
|
// background-color: #141414; |
|
|
|
|
// overflow: auto; |
|
|
|
@ -265,7 +275,7 @@ export default { |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar::-webkit-scrollbar { |
|
|
|
|
width: 0; |
|
|
|
|
} |
|
|
|
@ -288,4 +298,7 @@ export default { |
|
|
|
|
/deep/.el-menu-item { |
|
|
|
|
font-size: 18px!important; |
|
|
|
|
} |
|
|
|
|
// .myOver { |
|
|
|
|
// overflow: hidden; |
|
|
|
|
// } |
|
|
|
|
</style> |