From d22f9b9278303f340e2f8efd6f5a98f0b614c05c Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 17 十月 2022 18:03:36 +0800 Subject: [PATCH] 部门功能修改 --- src/views/layout/components/Menu/index.vue | 105 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 63 insertions(+), 42 deletions(-) diff --git a/src/views/layout/components/Menu/index.vue b/src/views/layout/components/Menu/index.vue index 06a2df9..635f444 100644 --- a/src/views/layout/components/Menu/index.vue +++ b/src/views/layout/components/Menu/index.vue @@ -5,7 +5,7 @@ <h2 class="siderbar-title">閬傛槍鎵ф硶骞冲彴</h2> <el-scrollbar> <!-- 璺敱 --> - <el-menu router class="el-menu-vertical" :default-active="$route.path"> + <el-menu router class="el-menu-vertical" :default-active="$route.path" > <!-- 绯荤粺璁剧疆妯″潡 --> <el-submenu index="/home/system" class="firstMenu"> <template slot="title"> @@ -16,51 +16,34 @@ <span class="fisrtSpan">绯荤粺璁剧疆</span> </template> <!-- 鍩烘湰璁剧疆 --> - <el-submenu index="/home/system/base" class="secondMenu"> + <el-submenu index="/home/system/userSetting" 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/userSetting/user">鐢ㄦ埛绠$悊</el-menu-item> <!-- 瑙掕壊绠$悊 --> - <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/userSetting/role">瑙掕壊绠$悊</el-menu-item> <!-- 閮ㄩ棬绠$悊 --> - <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-menu-item index="/home/system/userSetting/department">閮ㄩ棬绠$悊</el-menu-item> </el-submenu> <!-- 骞冲彴璁剧疆 --> - <el-submenu index="/home/operate/add" class="secondMenu"> + <el-submenu index="/home/system/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 index="/home/system/device" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">璁惧绠$悊</span> + </template> + <el-menu-item index="/home/system/device/bayonet">鍗″彛璁惧绠$悊</el-menu-item> + <el-menu-item index="/home/system/device/point">鐐逛綅绠$悊</el-menu-item> + <el-menu-item index="/home/system/device/grid">缃戞牸绠$悊</el-menu-item> </el-submenu> </el-submenu> <!-- 杩愯惀绠$悊妯″潡 --> @@ -77,7 +60,7 @@ </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-menu-item index="/home/operate/baseSetting/threepack">闂ㄥ墠涓夊寘璁剧疆</el-menu-item> --> </el-submenu> <el-submenu index="/home/operate/disposal" class="secondMenu"> <template slot="title"> @@ -86,17 +69,18 @@ <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/learn">鍐嶅涔犵鐞�</el-menu-item> <el-menu-item index="/home/operate/casepool/notDeal">鏆備笉澶勭悊</el-menu-item> </el-submenu> + <el-menu-item index="/home/operate/management">瀹℃牳绠$悊</el-menu-item> <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-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> @@ -108,10 +92,23 @@ <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-submenu index="/home/operate/car" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">杞﹁締绠$悊</span> + </template> + <el-menu-item index="/home/operate/car/carIndex">杞﹁締绠$悊</el-menu-item> + <el-menu-item index="/home/operate/car/lawTrajectory">杞ㄨ抗鍒嗘瀽(鎵ф硶杞�)</el-menu-item> + <el-menu-item index="/home/operate/car/soilTrajectory">杞ㄨ抗鍒嗘瀽(娓e湡杞�)</el-menu-item> + </el-submenu> <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 index="/home/operate/message" class="secondMenu"> + <template slot="title"> + <span class="secondSpan">娑堟伅绠$悊</span> + </template> + <el-menu-item index="/home/operate/message/messageIndex">娑堟伅绠$悊</el-menu-item> + <el-menu-item index="/home/operate/message/mycontrol">鏍忕洰绠$悊</el-menu-item> + </el-submenu> <el-menu-item index="/home/operate">鐭俊绠$悊</el-menu-item> <el-menu-item index="/home/operate">鏃ュ織绠$悊</el-menu-item> </el-submenu> @@ -189,7 +186,27 @@ <script> export default { + data(){ + return{ + } + }, + created(){ + // this.getMenuList(); + }, + methods:{ + // 鑾峰彇鑿滃崟鍒楄〃 + getMenuList(){ + let arr; + this.$axios({ + method:'get', + url:'sccg/system/portal/menu/search_myself' + }) + .then(res=>{ + console.log(res); + }) + } + } }; </script> @@ -230,9 +247,11 @@ .firstMenu { background: #07162e; text-align: left; - &:hover>.el-submenu__title{ + + &:hover>.el-submenu__title { background-color: #092c4a; } + &:hover .fisrtSpan { color: #22d3eb; } @@ -259,18 +278,20 @@ } .secondMenu { - &:hover>.el-submenu__title{ + &:hover>.el-submenu__title { background-color: #092c4a; } + &:hover .secondSpan { color: #22d3eb; } } .thirdMenu { - &:hover>.el-submenu__title{ + &:hover>.el-submenu__title { background-color: #092c4a; } + &:hover .thirdSpan { color: #22d3eb; } -- Gitblit v1.8.0