From dc04c05b22a5323925218092a0687555a2a5c9c1 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期四, 29 九月 2022 18:39:31 +0800 Subject: [PATCH] 上报管理界面,案件池的违规、违建登记页面 --- src/views/layout/components/Menu/index.vue | 270 +++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 216 insertions(+), 54 deletions(-) diff --git a/src/views/layout/components/Menu/index.vue b/src/views/layout/components/Menu/index.vue index 60751bd..57e0180 100644 --- a/src/views/layout/components/Menu/index.vue +++ b/src/views/layout/components/Menu/index.vue @@ -1,18 +1,186 @@ <template> - <div class="Menu"> - <!-- 鑿滃崟鏍� --> - <el-aside width="160px" class="menu"> - <el-scrollbar class="MenuScroll"> + <div> + <!-- 渚ц竟瀵艰埅鏍� --> + <el-aside width="200px"> + <h2 class="siderbar-title">閬傛槍鎵ф硶骞冲彴</h2> + <el-scrollbar> <!-- 璺敱 --> - <el-menu class="el-menu-vertical"> - <el-menu-item v-for="item in menu" :key="item.name" class="firstMenu" @click="Jump(item.index)"> - <template slot="title" class="firstSpan"> + <el-menu router class="el-menu-vertical" :default-active="$route.path"> + <!-- 绯荤粺璁剧疆妯″潡 --> + <el-submenu index="/home/system" class="firstMenu"> + <template slot="title"> + <!-- <i class="el-icon-reading"></i> --> <span slot="prefix" class="icon-padding fisrtSpan"> - <svg-icon :icon-class="item.icon"></svg-icon> + <svg-icon icon-class="system"></svg-icon> </span> - <span class="fisrtSpan">{{item.name}}</span> + <span class="fisrtSpan">绯荤粺璁剧疆</span> </template> - </el-menu-item> + <!-- 鍩烘湰璁剧疆 --> + <el-submenu index="/home/system/base" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">鍩烘湰璁剧疆</span> + </template> + <!-- 鐢ㄦ埛绠$悊 --> + <el-menu-item index="/home/system/user">鐢ㄦ埛绠$悊</el-menu-item> + <!-- <el-submenu index="/home/system/base/user" class="thirdMenu"> + <template slot="title"> + <span class="thirdSpan">鐢ㄦ埛绠$悊</span> + </template> + <el-menu-item index="/home/system/user">鐢ㄦ埛鍒楄〃</el-menu-item> + </el-submenu> --> + <!-- 瑙掕壊绠$悊 --> + <el-menu-item index="/home/system/role">瑙掕壊绠$悊</el-menu-item> + <!-- <el-submenu index="/home/system/base/role" class="thirdMenu"> + <template slot="title"> + <span class="thirdSpan">瑙掕壊绠$悊</span> + </template> + <el-menu-item index="/home/system/role">瑙掕壊绠$悊鍒楄〃</el-menu-item> + </el-submenu> --> + <!-- 鏉冮檺绠$悊 --> + <!-- <el-menu-item index="/home/system/authority">鏉冮檺绠$悊</el-menu-item> --> + <!-- <el-submenu index="/home/system/base/authority" class="thirdMenu"> + <template slot="title"> + <span class="thirdSpan">鏉冮檺绠$悊</span> + </template> + <el-menu-item index="/home/system/authority">璁剧疆鏉冮檺</el-menu-item> + </el-submenu> --> + <!-- 閮ㄩ棬绠$悊 --> + <el-menu-item index="/home/system/department">閮ㄩ棬绠$悊</el-menu-item> + <!-- <el-submenu index="/home/system/base/department" class="thirdMenu"> + <template slot="title"> + <span class="thirdSpan">閮ㄩ棬绠$悊</span> + </template> + <el-menu-item index="/home/system/department">閮ㄩ棬绠$悊</el-menu-item> + </el-submenu> --> + </el-submenu> + <!-- 骞冲彴璁剧疆 --> + <el-submenu index="/home/operate/add" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">闂ㄦ埛绠$悊</span> + </template> + <el-menu-item index="/home/system/mySetting">鑷畾涔夎彍鍗�</el-menu-item> + <el-menu-item index="/home/system/portalSetting">logo绠$悊</el-menu-item> + <el-menu-item index="/home/system/otherInterface">绗笁鏂规帴鍙g鐞�</el-menu-item> + </el-submenu> + </el-submenu> + <!-- 杩愯惀绠$悊妯″潡 --> + <el-submenu index="/home/operate" class="firstMenu"> + <template slot="title"> + <span slot="prefix" class="icon-padding fisrtSpan"> + <svg-icon icon-class="operate"></svg-icon> + </span> + <span class="fisrtSpan">杩愯惀绠$悊</span> + </template> + <el-submenu index="/home/operate/baseSetting" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">鍩虹璁剧疆</span> + </template> + <el-menu-item index="/home/operate/baseSetting/violation">杩濊浜嬮」璁剧疆</el-menu-item> + <el-menu-item index="/home/operate/baseSetting/illegalBuild">杩濆缓浜嬮」璁剧疆</el-menu-item> + <el-menu-item index="/home/operate/baseSetting/threepack">闂ㄥ墠涓夊寘璁剧疆</el-menu-item> + </el-submenu> + <el-submenu index="/home/operate/disposal" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">浜嬮」澶勭悊绠$悊</span> + </template> + <el-menu-item index="/home/operate/casepool/pool">妗堜欢姹�</el-menu-item> + <el-menu-item index="/home/operate/casepool/escalation">涓婃姤绠$悊</el-menu-item> + <el-menu-item index="/home/operate/casepool/dispatch">璋冨害绠$悊</el-menu-item> + <el-menu-item index="/home/operate/casepool">鍐嶅涔犵鐞�</el-menu-item> + <el-menu-item index="/home/operate/casepool/notDeal">鏆備笉澶勭悊</el-menu-item> + </el-submenu> + <el-menu-item index="/home/operate/myWait">鎴戠殑寰呭姙</el-menu-item> + <el-submenu index="/home/operate/rectification" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">涓撻」鏁存不</span> + </template> + <el-menu-item index="/home/operate/rectification/taskList">浠诲姟鍒楄〃</el-menu-item> + <el-menu-item index="/home/operate/rectification/surveyList">鏅煡鍒楄〃</el-menu-item> + <el-menu-item index="/home/operate/rectification/renovationList">鏁存不鍒楄〃</el-menu-item> + </el-submenu> + <el-menu-item index="/home/operate/lawEnforcement">宸℃煡鎵ф硶</el-menu-item> + <el-menu-item index="/home/operate/dasds">妗堝嵎鏌ヨ</el-menu-item> + <el-submenu index="/home/operate/fivepack" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">闂ㄥ墠浜斿寘澶勭疆绠$悊</span> + </template> + <el-menu-item index="/home/operate/fivepack/threepackage">闂ㄥ墠涓夊寘</el-menu-item> + <el-menu-item index="/home/operate/fivepack/shop">搴楅摵绠$悊</el-menu-item> + </el-submenu> + <el-menu-item index="/home/operate/dasdas">绠楁硶妯″瀷绠$悊</el-menu-item> + <el-menu-item index="/home/operate/dasdas">杞﹁締绠$悊</el-menu-item> + <el-menu-item index="/home/operate">鍥剧墖绠$悊</el-menu-item> + <el-menu-item index="/home/operate">瑙嗛绠$悊</el-menu-item> + <el-menu-item index="/home/operate">娑堟伅绠$悊</el-menu-item> + <el-menu-item index="/home/operate">鐭俊绠$悊</el-menu-item> + <el-menu-item index="/home/operate">鏃ュ織绠$悊</el-menu-item> + </el-submenu> + <!-- 瑙嗛宸℃煡妯″潡 --> + <el-submenu index="/home/video" class="firstMenu"> + <template slot="title"> + <span slot="prefix" class="icon-padding fisrtSpan"> + <svg-icon icon-class="video"></svg-icon> + </span> + <span slot="title" class="fisrtSpan">瑙嗛宸℃煡</span> + </template> + <el-menu-item index="/home/video">瑙嗛宸℃煡</el-menu-item> + </el-submenu> + <!-- 娌圭儫淇℃伅鏌ヨ妯″潡 --> + <el-submenu index="/home/lampblack" class="firstMenu"> + <template slot="title"> + <span slot="prefix" class="icon-padding fisrtSpan"> + <svg-icon icon-class="intelligence"></svg-icon> + </span> + <span class="fisrtSpan">娌圭儫淇℃伅鏌ヨ</span> + </template> + <el-menu-item index="/home/operate/add">棰勮鐮斿垽</el-menu-item> + <el-menu-item index="/home/operate">杩濊妫�绱�</el-menu-item> + <el-menu-item index="/home/operate">瓒嬪娍鍒嗘瀽</el-menu-item> + <el-menu-item index="/home/operate">鏁版嵁缁熻</el-menu-item> + <el-menu-item index="/home/operate">杩愯鎶ュ憡</el-menu-item> + </el-submenu> + <!-- 鎵ф硶绠$悊妯″潡 --> + <el-submenu index="/home/law" class="firstMenu"> + <template slot="title"> + <span slot="prefix" class="icon-padding fisrtSpan"> + <svg-icon icon-class="intelligence"></svg-icon> + </span> + <span class="fisrtSpan">鎵ф硶绠$悊</span> + </template> + <el-menu-item index="/home/operate/add">棰勮鐮斿垽</el-menu-item> + <el-menu-item index="/home/operate">杩濊妫�绱�</el-menu-item> + <el-menu-item index="/home/operate">瓒嬪娍鍒嗘瀽</el-menu-item> + <el-menu-item index="/home/operate">鏁版嵁缁熻</el-menu-item> + <el-menu-item index="/home/operate">杩愯鎶ュ憡</el-menu-item> + </el-submenu> + <!-- 鏅鸿兘宸℃煡妯″潡 --> + <el-submenu index="/home/intellect" class="firstMenu"> + <template slot="title"> + <span slot="prefix" class="icon-padding fisrtSpan"> + <svg-icon icon-class="intelligence"></svg-icon> + </span> + <span class="fisrtSpan">鏅鸿兘宸℃煡</span> + </template> + <el-menu-item index="/home/operate/add">棰勮鐮斿垽</el-menu-item> + <el-menu-item index="/home/operate">杩濊妫�绱�</el-menu-item> + <el-menu-item index="/home/operate">瓒嬪娍鍒嗘瀽</el-menu-item> + <el-menu-item index="/home/operate">鏁版嵁缁熻</el-menu-item> + <el-menu-item index="/home/operate">杩愯鎶ュ憡</el-menu-item> + </el-submenu> + <!-- 骞冲彴鍩烘湰淇℃伅 --> + <el-submenu index="/home/info" class="firstMenu"> + <template slot="title"> + <span slot="prefix" class="icon-padding fisrtSpan"> + <svg-icon icon-class="intelligence"></svg-icon> + </span> + <span class="fisrtSpan">骞冲彴鍩烘湰淇℃伅</span> + </template> + <el-menu-item index="/home/operate/add">棰勮鐮斿垽</el-menu-item> + <el-menu-item index="/home/operate">杩濊妫�绱�</el-menu-item> + <el-menu-item index="/home/operate">瓒嬪娍鍒嗘瀽</el-menu-item> + <el-menu-item index="/home/operate">鏁版嵁缁熻</el-menu-item> + <el-menu-item index="/home/operate">杩愯鎶ュ憡</el-menu-item> + </el-submenu> </el-menu> </el-scrollbar> </el-aside> @@ -21,52 +189,22 @@ <script> export default { - data() { - return { - menu: [ - { - name: "绯荤粺璁剧疆", icon: "system", index: "/home/system", - }, - { - name: "杩愯惀绠$悊", icon: "operate", index: "/home/operate", - }, - { - name: "瑙嗛宸℃煡", icon: "video", index: "/home/video", - }, - { - name: "娌圭儫淇℃伅鏌ヨ", icon: "intelligence", index: "/home/lampblack", - }, - { - name: "鎵ф硶绠$悊", icon: "intelligence", index: "/home/law", - }, - { - name: "鏅鸿兘宸℃煡", icon: "intelligence", index: "/home/intellect", - }, - { - name: "骞冲彴鍩烘湰淇℃伅", icon: "intelligence", index: "/home/info", - } - ], - } - }, - methods:{ - Jump(url){ - this.$router.push(url); - } - } + }; </script> <style lang="scss" scpoed> -$bk:#333744; .icon-padding { padding-right: 10px; } -.menu { - background: $bk; + +.el-aside { + background: #07162e; color: #e9eef3; text-align: center; box-sizing: border-box; position: relative; + // 鍥哄畾鏍囬 .siderbar-title { position: fixed; @@ -78,34 +216,40 @@ top: 0; left: 0; z-index: 999; - box-shadow: 0 -5px 5px #0ff inset; } - .MenuScroll { + .el-scrollbar { height: calc(100vh - 66px); + margin-top: 66px; box-sizing: border-box; + .el-menu { background: linear-gradient(#07162e, #0f2b56); border: 0; .firstMenu { - background: $bk; + background: #07162e; text-align: left; + &:hover>.el-submenu__title{ + background-color: #092c4a; + } &:hover .fisrtSpan { - color: #fff; + color: #22d3eb; } + span, span { color: #e9eef3; } .el-menu-item { - color: #c3c3c4; - background-color: #333744; + color: #e9eef3; + background-color: #07162e; + } - &:hover { - color: #fff; - } + .el-menu-item:hover { + background-color: #092c4a; + color: #22d3eb; } .is-active { @@ -114,6 +258,24 @@ } } + .secondMenu { + &:hover>.el-submenu__title{ + background-color: #092c4a; + } + &:hover .secondSpan { + color: #22d3eb; + } + } + + .thirdMenu { + &:hover>.el-submenu__title{ + background-color: #092c4a; + } + &:hover .thirdSpan { + color: #22d3eb; + } + } + .is-active { background-color: #092c4a; } -- Gitblit v1.8.0