From e1aa0ecffbabd618c71e4ad94370fb8dffe6ee1c Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期日, 21 一月 2024 20:54:49 +0800
Subject: [PATCH] 优化
---
src/views/layout/components/Main/index.vue | 210 +++++++++++++++++++++++++++-------------------------
1 files changed, 109 insertions(+), 101 deletions(-)
diff --git a/src/views/layout/components/Main/index.vue b/src/views/layout/components/Main/index.vue
index 2818d88..c49658f 100644
--- a/src/views/layout/components/Main/index.vue
+++ b/src/views/layout/components/Main/index.vue
@@ -15,7 +15,7 @@
</div>
</div>
</div>
- <router-view v-else></router-view>
+ <router-view v-else :key="$route.fullpath"></router-view>
<!-- 搴曢儴鍖哄煙 -->
<!-- <MyFooter/> -->
</div>
@@ -36,79 +36,6 @@
return {
navFlag: true,
navList: [
- {
- id: 1,
- title: '绯荤粺璁剧疆',
- icon:'icon_xitongshezhi',
- children: [
- {
- id: 2,
- label: '鐢ㄦ埛绠$悊',
- link: '/system/userSetting/user',
- icon:'icon_yonghuguanli'
- },
- {
- id: 3,
- label: '瑙掕壊绠$悊',
- link: '/system/userSetting/role',
- icon: 'icon_jiaoseguanli'
- },
- {
- id: 4,
- label: '閮ㄩ棬绠$悊',
- link: '/system/userSetting/department',
- icon: 'icon_bumenguanli'
- },
- {
- id: 5,
- label: '鑷畾涔夎彍鍗�',
- link: '/system/platform/mySetting',
- icon: 'icon_zidinyicaidan'
- },
- {
- id: 6,
- label: 'logo绠$悊',
- link: '/system/platform/portalSetting',
- icon: 'icon_logoguanli'
- },
- {
- id: 7,
- label: '椹鹃┒鑸辩鐞�',
- link: '/system/platform/cockpitManage',
- icon: 'icon_jiashicangguanli'
- },
- {
- id: 8,
- label: '鍗″彛璁惧绠$悊',
- link: '/system/device/bayonet',
- icon: 'icon_kakoushebeiguanli'
- },
- {
- id: 9,
- label: '鐐逛綅绠$悊',
- link: '/system/device/point',
- icon: 'icon_dianweiguanli'
- },
- {
- id: 10,
- label: '缃戞牸绠$悊',
- link: '/system/device/grid',
- icon: 'icon_wanggeguanli'
- },
- {
- id: 11,
- label: '闊虫煴璁惧绠$悊',
- link: '/system/device/loudspeaker',
- icon: 'icon_yinzhushebeiguanli'
- },
- {
- id: 12,
- label: '鎵嬫寔璁惧绠$悊',
- link: '/system/device/handheldTerminal',
- icon: 'icon_shouchishebeiguanli'
- },
- ]
- },
{
id: 13,
title: '杩愯惀绠$悊',
@@ -256,25 +183,6 @@
]
},
{
- id: 38,
- title: '瀹℃牳绠$悊',
- icon: 'icon_shenheguanli',
- children: [
- {
- id: 39,
- label: '瀹℃牳绠$悊',
- link: '/operate/management/myIndex',
- icon: 'icon_shenheguanlileft'
- },
- {
- id: 40,
- label: '鐭俊瀹℃牳绠$悊',
- link: '/operate/management/managementMessage',
- icon: 'icon_duanxinshenheguanli'
- },
- ]
- },
- {
id: 41,
title: '瑙嗛宸℃煡',
icon: 'icon_shipingxuncha',
@@ -282,7 +190,13 @@
{
id: 42,
label: '瑙嗛宸℃煡',
- link: '/video',
+ link: '/video_0',
+ icon: 'icon_shipinxuncha'
+ },
+ {
+ id: 80,
+ label: '100璺棰戝贰鏌�',
+ link: '/video_1',
icon: 'icon_shipinxuncha'
},
]
@@ -295,7 +209,13 @@
{
id: 44,
label: '棰勮鐮斿垽',
- link: '/studyJudge',
+ link: '/studyJudge_0',
+ icon: 'icon_yujingyanpan'
+ },
+ {
+ id: 81,
+ label: '100璺璀︾爺鍒�',
+ link: '/studyJudge_1',
icon: 'icon_yujingyanpan'
},
{
@@ -324,6 +244,98 @@
},
]
},
+ {
+ id: 38,
+ title: '瀹℃牳绠$悊',
+ icon: 'icon_shenheguanli',
+ children: [
+ {
+ id: 39,
+ label: '瀹℃牳绠$悊',
+ link: '/operate/management/myIndex',
+ icon: 'icon_shenheguanlileft'
+ },
+ {
+ id: 40,
+ label: '鐭俊瀹℃牳绠$悊',
+ link: '/operate/management/managementMessage',
+ icon: 'icon_duanxinshenheguanli'
+ },
+ ]
+ },
+ {
+ id: 1,
+ title: '绯荤粺璁剧疆',
+ icon:'icon_xitongshezhi',
+ children: [
+ {
+ id: 2,
+ label: '鐢ㄦ埛绠$悊',
+ link: '/system/userSetting/user',
+ icon:'icon_yonghuguanli'
+ },
+ {
+ id: 3,
+ label: '瑙掕壊绠$悊',
+ link: '/system/userSetting/role',
+ icon: 'icon_jiaoseguanli'
+ },
+ {
+ id: 4,
+ label: '閮ㄩ棬绠$悊',
+ link: '/system/userSetting/department',
+ icon: 'icon_bumenguanli'
+ },
+ {
+ id: 5,
+ label: '鑷畾涔夎彍鍗�',
+ link: '/system/platform/mySetting',
+ icon: 'icon_zidinyicaidan'
+ },
+ {
+ id: 6,
+ label: 'logo绠$悊',
+ link: '/system/platform/portalSetting',
+ icon: 'icon_logoguanli'
+ },
+ {
+ id: 7,
+ label: '椹鹃┒鑸辩鐞�',
+ link: '/system/platform/cockpitManage',
+ icon: 'icon_jiashicangguanli'
+ },
+ {
+ id: 8,
+ label: '鍗″彛璁惧绠$悊',
+ link: '/system/device/bayonet',
+ icon: 'icon_kakoushebeiguanli'
+ },
+ {
+ id: 9,
+ label: '鐐逛綅绠$悊',
+ link: '/system/device/point',
+ icon: 'icon_dianweiguanli'
+ },
+ {
+ id: 10,
+ label: '缃戞牸绠$悊',
+ link: '/system/device/grid',
+ icon: 'icon_wanggeguanli'
+ },
+ {
+ id: 11,
+ label: '闊虫煴璁惧绠$悊',
+ link: '/system/device/loudspeaker',
+ icon: 'icon_yinzhushebeiguanli'
+ },
+ {
+ id: 12,
+ label: '鎵嬫寔璁惧绠$悊',
+ link: '/system/device/handheldTerminal',
+ icon: 'icon_shouchishebeiguanli'
+ },
+ ]
+ }
]
}
},
@@ -348,19 +360,16 @@
.el-main {
min-width: 1024px;
padding: 0;
-
.content {
padding: 11px;
- //height: 100%;
+ height: 100%;
background-color: #F5F9FA;
+ overflow: auto;
.page-nav {
padding: 40px 100px;
text-align: left;
-
.nav-item {
line-height: 60px;
-
-
.nav-title {
color: #4178FE;
display: flex;
@@ -416,7 +425,6 @@
transform: none;
}
}
-
}
}
}
--
Gitblit v1.8.0