From 676722551d0bc2f8caa0644961e60deef3f0d532 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期一, 10 十月 2022 18:08:27 +0800
Subject: [PATCH] 修改遗留问题,新增店铺管理删除、编辑,新增车辆管理模块
---
src/views/layout/components/Menu/index.vue | 283 +++++++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 228 insertions(+), 55 deletions(-)
diff --git a/src/views/layout/components/Menu/index.vue b/src/views/layout/components/Menu/index.vue
index 8ad84aa..3ee22e5 100644
--- a/src/views/layout/components/Menu/index.vue
+++ b/src/views/layout/components/Menu/index.vue
@@ -1,19 +1,194 @@
<template>
- <div class="Menu">
- <!-- 鑿滃崟鏍� -->
- <el-aside width="200px" class="menu">
+ <div>
+ <!-- 渚ц竟瀵艰埅鏍� -->
+ <el-aside width="200px">
<h2 class="siderbar-title">閬傛槍鎵ф硶骞冲彴</h2>
- <el-scrollbar class="MenuScroll">
+ <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/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-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-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>
@@ -22,38 +197,7 @@
<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>
@@ -61,12 +205,14 @@
.icon-padding {
padding-right: 10px;
}
-.menu {
+
+.el-aside {
background: #07162e;
color: #e9eef3;
text-align: center;
box-sizing: border-box;
position: relative;
+
// 鍥哄畾鏍囬
.siderbar-title {
position: fixed;
@@ -78,35 +224,42 @@
top: 0;
left: 0;
z-index: 999;
- background-color: #08162f;
}
- .MenuScroll {
+ .el-scrollbar {
height: calc(100vh - 66px);
- box-sizing: border-box;
margin-top: 66px;
+ box-sizing: border-box;
+
.el-menu {
background: linear-gradient(#07162e, #0f2b56);
border: 0;
.firstMenu {
- background: #07162e;
+ background: #07162e;
text-align: left;
- &:hover .fisrtSpan {
- color: #fff;
+
+ &:hover>.el-submenu__title {
+ background-color: #092c4a;
}
+ &:hover .fisrtSpan {
+ color: #22d3eb;
+ }
+
+ span,
span {
color: #e9eef3;
}
.el-menu-item {
- color: #c3c3c4;
+ color: #e9eef3;
background-color: #07162e;
- &:hover {
- color: #fff;
- background-color: #0c2c4c;
- }
+ }
+
+ .el-menu-item:hover {
+ background-color: #092c4a;
+ color: #22d3eb;
}
.is-active {
@@ -115,8 +268,28 @@
}
}
+ .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: #07162e;
+ background-color: #092c4a;
}
}
--
Gitblit v1.8.0