From f86cb647ca0ae91519216af19c1ec876874ffb81 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期三, 26 十月 2022 11:24:33 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui into master
---
src/views/layout/components/Menu/index.vue | 185 ++++++++++++++++++++++++++++++++--------------
1 files changed, 128 insertions(+), 57 deletions(-)
diff --git a/src/views/layout/components/Menu/index.vue b/src/views/layout/components/Menu/index.vue
index 55aa1a5..7a0c60f 100644
--- a/src/views/layout/components/Menu/index.vue
+++ b/src/views/layout/components/Menu/index.vue
@@ -8,59 +8,42 @@
<el-menu router class="el-menu-vertical" :default-active="$route.path" >
<!-- 绯荤粺璁剧疆妯″潡 -->
<el-submenu index="/home/system" class="firstMenu">
- <template slot="title" class="firstSpan">
+ <template slot="title">
<!-- <i class="el-icon-reading"></i> -->
- <span slot="prefix" class="icon-padding fisrtSpan">
+ <span slot="prefix" class="icon-padding fisrtSpan">
<svg-icon icon-class="system"></svg-icon>
</span>
<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/platform" 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-menu-item index="/home/system/platform/mySetting">鑷畾涔夎彍鍗�</el-menu-item>
+ <el-menu-item index="/home/system/platform/portalSetting">logo绠$悊</el-menu-item>
+ <el-menu-item index="/home/system/platform/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>
<!-- 杩愯惀绠$悊妯″潡 -->
@@ -71,29 +54,70 @@
</span>
<span class="fisrtSpan">杩愯惀绠$悊</span>
</template>
- <el-menu-item index="/home/operate/baseSetting">鍩虹璁剧疆</el-menu-item>
- <el-submenu index="/home/operate/disposal">
+ <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/learn">鍐嶅涔犵鐞�</el-menu-item>
<el-menu-item index="/home/operate/casepool/notDeal">鏆備笉澶勭悊</el-menu-item>
</el-submenu>
+ <el-submenu index="/home/operate/management" class="secondMenu">
+ <template slot="title">
+ <span class="secondSpan">瀹℃牳绠$悊</span>
+ </template>
+ <el-menu-item index="/home/operate/management">瀹℃牳绠$悊</el-menu-item>
+ <el-menu-item index="/home/operate/management/managementMessage">鐭俊瀹℃牳绠$悊</el-menu-item>
+ <!-- <el-menu-item index="/home/operate/baseSetting/threepack">闂ㄥ墠涓夊寘璁剧疆</el-menu-item> -->
+ </el-submenu>
<el-menu-item index="/home/operate/myWait">鎴戠殑寰呭姙</el-menu-item>
- <el-menu-item index="/home/operate/rectification">涓撻」鏁存不</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 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-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-menu-item index="/home/operate/log">鏃ュ織绠$悊</el-menu-item>
</el-submenu>
<!-- 瑙嗛宸℃煡妯″潡 -->
<el-submenu index="/home/video" class="firstMenu">
@@ -169,7 +193,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>
@@ -177,12 +221,14 @@
.icon-padding {
padding-right: 10px;
}
+
.el-aside {
background: #07162e;
color: #e9eef3;
text-align: center;
box-sizing: border-box;
position: relative;
+
// 鍥哄畾鏍囬
.siderbar-title {
position: fixed;
@@ -194,50 +240,75 @@
top: 0;
left: 0;
z-index: 999;
- // box-shadow: 0 -5px 5px #0ff inset;
}
+
.el-scrollbar {
height: calc(100vh - 66px);
margin-top: 66px;
box-sizing: border-box;
+
.el-menu {
background: linear-gradient(#07162e, #0f2b56);
border: 0;
+
.firstMenu {
background: #07162e;
text-align: left;
- &:hover .fisrtSpan{
+
+ &:hover>.el-submenu__title {
+ background-color: #092c4a;
+ }
+
+ &:hover .fisrtSpan {
color: #22d3eb;
}
- span,span {
+
+ span,
+ span {
color: #e9eef3;
}
+
.el-menu-item {
color: #e9eef3;
background-color: #07162e;
- &:hover {
- color: #22d3eb;
- }
}
+
+ .el-menu-item:hover {
+ background-color: #092c4a;
+ color: #22d3eb;
+ }
+
.is-active {
background-color: #07162e;
color: #22d3eb;
}
}
- .secondMenu{
- &:hover .secondSpan{
+
+ .secondMenu {
+ &:hover>.el-submenu__title {
+ background-color: #092c4a;
+ }
+
+ &:hover .secondSpan {
color: #22d3eb;
}
}
- .thirdMenu{
- &:hover .thirdSpan{
+
+ .thirdMenu {
+ &:hover>.el-submenu__title {
+ background-color: #092c4a;
+ }
+
+ &:hover .thirdSpan {
color: #22d3eb;
}
}
+
.is-active {
background-color: #092c4a;
}
}
+
.el-scrollbar__wrap {
overflow-x: hidden;
}
--
Gitblit v1.8.0