|
@@ -14,13 +14,20 @@
|
|
|
<el-image :src="menu.url"></el-image>
|
|
|
<span>{{ menu.name }}</span>
|
|
|
</template>
|
|
|
- <el-menu-item-group v-for="(submenu, index2) in menu.submenus" :key="index2">
|
|
|
+ <el-menu-item-group
|
|
|
+ v-for="(submenu, index2) in menu.submenus"
|
|
|
+ :key="index2"
|
|
|
+ >
|
|
|
<el-menu-item :index="submenu.path">
|
|
|
<span class="subMenu" style="margin-left:40px">{{ submenu.name }}</span>
|
|
|
</el-menu-item>
|
|
|
</el-menu-item-group>
|
|
|
</el-submenu>
|
|
|
- <el-menu-item v-if="menu.submenus == null" :key="menu.path" :index="menu.path">
|
|
|
+ <el-menu-item
|
|
|
+ v-if="menu.submenus == null"
|
|
|
+ :key="menu.path"
|
|
|
+ :index="menu.path"
|
|
|
+ >
|
|
|
<el-image :src="menu.url"></el-image>
|
|
|
<span slot="title">
|
|
|
{{ menu.name }}
|
|
@@ -39,23 +46,23 @@ export default {
|
|
|
return {
|
|
|
menus: [
|
|
|
{
|
|
|
- url: require('@/assets/images/userManagement@3x.png'),
|
|
|
- name: '用户管理',
|
|
|
+ url: require("@/assets/images/userManagement@3x.png"),
|
|
|
+ name: "用户管理",
|
|
|
submenus: [
|
|
|
{
|
|
|
- name: '人员管理',
|
|
|
- path: '/home/user/person',
|
|
|
+ name: "人员管理",
|
|
|
+ path: "/home/user/person",
|
|
|
},
|
|
|
{
|
|
|
- name: '组织管理',
|
|
|
- path: '/home/user/group',
|
|
|
+ name: "组织管理",
|
|
|
+ path: "/home/user/group",
|
|
|
},
|
|
|
- ]
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
- url: require('@/assets/images/roleManagement@3x.png'),
|
|
|
- name: '角色管理',
|
|
|
- path: '/home/role',
|
|
|
+ url: require("@/assets/images/roleManagement@3x.png"),
|
|
|
+ name: "角色管理",
|
|
|
+ path: "/home/role",
|
|
|
},
|
|
|
{
|
|
|
url: require('@/assets/images/systemConfiguration@3x.png'),
|
|
@@ -63,91 +70,77 @@ export default {
|
|
|
path: '/home/system',
|
|
|
submenus: [
|
|
|
{
|
|
|
- name: '策略配置',
|
|
|
- path: '/home/system/strategy',
|
|
|
+ name: "策略配置",
|
|
|
+ path: "/home/system/strategy",
|
|
|
},
|
|
|
{
|
|
|
- name: '消息配置',
|
|
|
- path: '/home/system/message',
|
|
|
+ name: "消息配置",
|
|
|
+ path: "/home/system/message",
|
|
|
},
|
|
|
{
|
|
|
- name: '信息配置',
|
|
|
- path: '/home/system/info',
|
|
|
+ name: "信息配置",
|
|
|
+ path: "/home/system/info",
|
|
|
},
|
|
|
{
|
|
|
- name: '指标配置',
|
|
|
- path: '/home/system/index',
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- url: require('@/assets/images/deviceManagement@3x.png'),
|
|
|
- name: '设备管理',
|
|
|
- path: '/home/device',
|
|
|
- submenus: [
|
|
|
- {
|
|
|
- name: '设备配置',
|
|
|
- path: '/home/device/config',
|
|
|
+ name: "指标配置",
|
|
|
+ path: "/home/system/index",
|
|
|
},
|
|
|
- {
|
|
|
- name: '设备告警',
|
|
|
- path: '/home/device/warning',
|
|
|
- }
|
|
|
- ]
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
- url: require('@/assets/images/dataManagement@3x.png'),
|
|
|
- name: '数据管理',
|
|
|
- path: '/home/data',
|
|
|
+ url: require("@/assets/images/deviceManagement@3x.png"),
|
|
|
+ name: "设备管理",
|
|
|
+ path: "/home/device",
|
|
|
submenus: [
|
|
|
{
|
|
|
- name: '报表配置',
|
|
|
- path: '/home/data/statement',
|
|
|
+ name: "设备配置",
|
|
|
+ path: "/home/device/config",
|
|
|
},
|
|
|
{
|
|
|
- name: '报告配置',
|
|
|
- path: '/home/data/report',
|
|
|
+ name: "设备告警",
|
|
|
+ path: "/home/device/warning",
|
|
|
},
|
|
|
- {
|
|
|
- name: '基础信息',
|
|
|
- path: '/home/data/basicInfo',
|
|
|
- }
|
|
|
- ]
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
- url: require('@/assets/images/serviceManagement@3x.png'),
|
|
|
- name: '服务管理',
|
|
|
- path: '/home/service',
|
|
|
+ url: require("@/assets/images/dataManagement@3x.png"),
|
|
|
+ name: "数据管理",
|
|
|
+ path: "/home/data",
|
|
|
submenus: [
|
|
|
{
|
|
|
- name: '全部服务',
|
|
|
- path: '/home/service/all',
|
|
|
+ name: "报表配置",
|
|
|
+ path: "/home/data/statement",
|
|
|
},
|
|
|
{
|
|
|
- name: '已安装服务',
|
|
|
- path: '/home/service/installed',
|
|
|
+ name: "报告配置",
|
|
|
+ path: "/home/data/report",
|
|
|
},
|
|
|
{
|
|
|
- name: '未安装服务',
|
|
|
- path: '/home/service/uninstall',
|
|
|
+ name: "基础信息",
|
|
|
+ path: "/home/data/basicInfo",
|
|
|
},
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ url: require("@/assets/images/serviceManagement@3x.png"),
|
|
|
+ name: "服务管理",
|
|
|
+ path: "/home/service",
|
|
|
},
|
|
|
{
|
|
|
- url: require('@/assets/images/securityManagement@3x.png'),
|
|
|
- name: '安全管理',
|
|
|
- path: '/home/security',
|
|
|
+ url: require("@/assets/images/securityManagement@3x.png"),
|
|
|
+ name: "安全管理",
|
|
|
+ path: "/home/security",
|
|
|
submenus: [
|
|
|
{
|
|
|
- name: '日志监控',
|
|
|
- path: '/home/security/logMonitor',
|
|
|
+ name: "日志监控",
|
|
|
+ path: "/home/security/logMonitor",
|
|
|
},
|
|
|
{
|
|
|
- name: '系统监控',
|
|
|
- path: '/home/security/systemMonitor',
|
|
|
+ name: "系统监控",
|
|
|
+ path: "/home/security/systemMonitor",
|
|
|
},
|
|
|
- ]
|
|
|
- }
|
|
|
+ ],
|
|
|
+ },
|
|
|
],
|
|
|
}
|
|
|
},
|
|
@@ -176,11 +169,11 @@ export default {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
-.el-menu-item-group>.span {
|
|
|
+.el-menu-item-group > .span {
|
|
|
margin-left: 70px;
|
|
|
}
|
|
|
|
|
|
-/deep/.el-menu--inline> {
|
|
|
+/deep/.el-menu--inline > {
|
|
|
border: none;
|
|
|
text-align: -webkit-right;
|
|
|
}
|