From 72ec074601a963f7bf54c7246b83bbe2e502296a Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期五, 17 二月 2023 11:26:25 +0800 Subject: [PATCH] 2023/2/17 肖辉 修改图片管理以及案卷查询,我的代办 --- src/views/layout/components/Menu/index.vue | 71 ++++++++++++++++++++++++----------- 1 files changed, 48 insertions(+), 23 deletions(-) diff --git a/src/views/layout/components/Menu/index.vue b/src/views/layout/components/Menu/index.vue index f7208f3..130e9f4 100644 --- a/src/views/layout/components/Menu/index.vue +++ b/src/views/layout/components/Menu/index.vue @@ -28,6 +28,7 @@ v-if="secondMenu.menuVoArrayList.length > 0" :index="secondMenu.url ? secondMenu.url : secondMenu.id.toString()" class="secondMenu" + :class="secondMenu.menuVoArrayList.length > 0?'is-Active':'none-Active'" > <template slot="title"> <span class="secondSpan">{{ secondMenu.title }}</span> @@ -90,7 +91,6 @@ users.getMenu({ name: userName }) .then(res => { console.log(res) - debugger this.menuList = res.menus; sessionStorage.setItem('user', JSON.stringify(res)); }) @@ -111,14 +111,12 @@ height: 36px; } } - .el-aside { background: #313350; color: #e9eef3; text-align: center; box-sizing: border-box; position: relative; - // 鍥哄畾鏍囬 .siderbar-title { position: fixed; @@ -132,59 +130,87 @@ z-index: 999; cursor: pointer; } - .el-scrollbar { height: calc(100vh - 66px); margin-top: 66px; box-sizing: border-box; - .el-menu { background: linear-gradient(#313350, #0f2b56); border: 0; - + font-size: 16px; + .is-opened{ + .fisrtSpan{ + color: #22d3eb; + } + } .firstMenu { background: #313350; text-align: left; - + //border-bottom:1px solid #ccc ; &:hover > .el-submenu__title { background-color: #092c4a; } - &:hover .fisrtSpan { color: #22d3eb; } - span, span { color: #e9eef3; + font-size: 16px; } - + .el-menu{ + .is-active { + background-color: #409EFF; + color: #fff; + } + .is-Active{ + background-color: #092c4a; + color: #fff; + } + } .el-menu-item { color: #e9eef3; background-color: #313350; + font-size: 16px; + border-bottom: 1px solid #ccc; } - .el-menu-item:hover { background-color: #409EFF; color: #22d3eb; } + .is-opened{ + .secondSpan{ + color: #22d3eb; + } + } + .secondMenu{ + //border-bottom:1px solid #ccc ; + .is-active { + background-color: #409EFF; + color: #22d3eb; + } + } + } + .secondMenu { + &:hover > .el-submenu__title { + background-color: #092c4a; + } + .secondSpan{ + } + &:hover .secondSpan { + color: #22d3eb; + } + .is-opened{ + .el-submenu__title{ + background-color: #fff; + } + } .is-active { background-color: #409EFF; color: #fff; } } - - .secondMenu { - &:hover > .el-submenu__title { - background-color: #092c4a; - } - - &:hover .secondSpan { - color: #22d3eb; - } - } - .thirdMenu { &:hover > .el-submenu__title { background-color: #092c4a; @@ -199,7 +225,6 @@ background-color: #092c4a; } } - .el-scrollbar__wrap { overflow-x: hidden; } -- Gitblit v1.8.0