菜单修改

This commit is contained in:
chengdandan 2025-10-13 16:46:37 +08:00
parent 87dd5041d9
commit 94a0f5a1c9
5 changed files with 154 additions and 129 deletions

View File

@ -107,7 +107,7 @@ export const constantRoutes = [
icon: "device",
link: null,
noCache: false,
title: "设备管理",
title: "信息管理",
},
children: [
{
@ -127,47 +127,47 @@ export const constantRoutes = [
},
{
name: "areaManage",
alwaysShow: true,
component: Layout,
hidden: false,
name: "areaManage",
path: "/areaManage",
redirect: "noRedirect",
meta: {
icon: "qygl",
link: null,
noCache: false,
title: "区域管理",
},
children: [
{
component: () => import('@/views/areaManage/area'),
hidden: false,
name: "area",
path: "area",
meta: {
icon: "areai",
link: null,
noCache: false,
title: "分区管理",
},
},
{
component: () => import('@/views/areaManage/cabin'),
hidden: false,
name: "cabin",
path: "cabin",
meta: {
icon: "cabini",
link: null,
noCache: false,
title: "舱室管理",
},
},
]
},
// {
// name: "areaManage",
// alwaysShow: true,
// component: Layout,
// hidden: false,
// name: "areaManage",
// path: "/areaManage",
// redirect: "noRedirect",
// meta: {
// icon: "qygl",
// link: null,
// noCache: false,
// title: "区域管理",
// },
// children: [
// {
// component: () => import('@/views/areaManage/area'),
// hidden: false,
// name: "area",
// path: "area",
// meta: {
// icon: "areai",
// link: null,
// noCache: false,
// title: "分区管理",
// },
// },
// {
// component: () => import('@/views/areaManage/cabin'),
// hidden: false,
// name: "cabin",
// path: "cabin",
// meta: {
// icon: "cabini",
// link: null,
// noCache: false,
// title: "舱室管理",
// },
// },
// ]
// },
{
name: "operationManage",
@ -181,7 +181,7 @@ export const constantRoutes = [
icon: "ywgl",
link: null,
noCache: false,
title: "运维管理",
title: "数据管理",
},
children: [
{
@ -196,30 +196,19 @@ export const constantRoutes = [
title: "维保管理",
},
},
{
component: () => import('@/views/operationManage/patrol'),
hidden: false,
name: "patrol",
path: "patrol",
meta: {
icon: "xjgl",
link: null,
noCache: false,
title: "巡检管理",
},
},
{
component: () => import('@/views/operationManage/alarm'),
hidden: false,
name: "alarm",
path: "alarm",
meta: {
icon: "bjgl",
link: null,
noCache: false,
title: "报警管理",
},
},
// {
// component: () => import('@/views/operationManage/patrol'),
// hidden: false,
// name: "patrol",
// path: "patrol",
// meta: {
// icon: "xjgl",
// link: null,
// noCache: false,
// title: "巡检管理",
// },
// },
//
{
component: () => import('@/views/operationManage/report'),
hidden: false,
@ -247,7 +236,7 @@ export const constantRoutes = [
icon: "xtjk",
link: null,
noCache: false,
title: "智能化控制系统",
title: "运行监测",
},
children: [
{
@ -327,79 +316,103 @@ export const constantRoutes = [
icon: "gongc",
link: null,
noCache: false,
title: "工程保障系统",
title: "联动管理",
},
children: [
// {
// component: () => import('@/views/EngineerSupport/etherphone'),
// hidden: false,
// name: "etherphone",
// path: "etherphone",
// meta: {
// icon: "guangb",
// link: null,
// noCache: false,
// title: "广播电话",
// },
// },
// {
// component: () => import('@/views/EngineerSupport/visualizedDispatch'),
// hidden: false,
// name: "visualizedDispatch",
// path: "visualizedDispatch",
// meta: {
// icon: "kshtd",
// link: null,
// noCache: false,
// title: "可视化调度",
// },
// },
{
component: () => import('@/views/EngineerSupport/etherphone'),
hidden: false,
name: "etherphone",
path: "etherphone",
meta: {
icon: "guangb",
link: null,
noCache: false,
title: "广播电话",
},
},
{
component: () => import('@/views/EngineerSupport/visualizedDispatch'),
hidden: false,
name: "visualizedDispatch",
path: "visualizedDispatch",
meta: {
icon: "kshtd",
link: null,
noCache: false,
title: "可视化调度",
},
},
component: () => import('@/views/equipment/ventilation'),
]
},
{
name: "Security",
alwaysShow: true,
component: Layout,
hidden: false,
name: "Security",
path: "/Security",
redirect: "noRedirect",
name: "ventilation",
path: "ventilation",
meta: {
icon: "afxt",
icon: "tongf",
link: null,
noCache: false,
title: "安防系统",
},
children: [
{
component: () => import('@/views/Security/videoSurveillance'),
hidden: false,
name: "videoSurveillance",
path: "videoSurveillance",
meta: {
icon: "afmj",
link: null,
noCache: false,
title: "视频监控",
title: "风机联动",
},
},
{
component: () => import('@/views/Security/doorControl'),
component: () => import('@/views/equipment/electric'),
hidden: false,
name: "doorControl",
path: "doorControl",
name: "electric",
path: "electric",
meta: {
icon: "spjk",
icon: "dianli",
link: null,
noCache: false,
title: "门禁",
title: "三防联通",
},
},
]
},
// {
// name: "Security",
// alwaysShow: true,
// component: Layout,
// hidden: false,
// name: "Security",
// path: "/Security",
// redirect: "noRedirect",
// meta: {
// icon: "afxt",
// link: null,
// noCache: false,
// title: "安防系统",
// },
// children: [
// {
// component: () => import('@/views/Security/videoSurveillance'),
// hidden: false,
// name: "videoSurveillance",
// path: "videoSurveillance",
// meta: {
// icon: "afmj",
// link: null,
// noCache: false,
// title: "视频监控",
// },
// },
// {
// component: () => import('@/views/Security/doorControl'),
// hidden: false,
// name: "doorControl",
// path: "doorControl",
// meta: {
// icon: "spjk",
// link: null,
// noCache: false,
// title: "门禁",
// },
// },
// ]
//
// },
{
name: "System",
alwaysShow: true,
@ -412,7 +425,7 @@ export const constantRoutes = [
icon: "xtgl",
link: null,
noCache: false,
title: "系统管理",
title: "运维管理",
},
children: [
{
@ -450,6 +463,18 @@ export const constantRoutes = [
noCache: false,
title: "日志管理",
},
},
{
component: () => import('@/views/operationManage/alarm'),
hidden: false,
name: "alarm",
path: "alarm",
meta: {
icon: "bjgl",
link: null,
noCache: false,
title: "报警管理",
},
},
]

View File

@ -173,9 +173,9 @@ const faultData = reactive({
//
const quickEntries = ref([
{ id: 1, name: "智能化控制系统", icon: "el-icon-cpu" },
{ id: 1, name: "数据管理", icon: "el-icon-cpu" },
{ id: 2, name: "信息化管理系统", icon: "el-icon-document" },
{ id: 3, name: "工程保障系统", icon: "el-icon-s-tools" },
{ id: 3, name: "联动管理", icon: "el-icon-s-tools" },
{ id: 4, name: "安防系统", icon: "el-icon-lock" },
])

View File

@ -173,9 +173,9 @@ export default {
},
// 快捷入口数据
quickEntries: [
{ id: 1, name: "智能化控制系统", icon: "el-icon-cpu" },
{ id: 1, name: "数据管理", icon: "el-icon-cpu" },
{ id: 2, name: "信息化管理系统", icon: "el-icon-document" },
{ id: 3, name: "工程保障系统", icon: "el-icon-s-tools" },
{ id: 3, name: "联动管理", icon: "el-icon-s-tools" },
{ id: 4, name: "安防系统", icon: "el-icon-lock" },
],
// 视频监控数据

View File

@ -87,7 +87,7 @@
<el-form-item>
<template #label>
上级菜单
<el-tooltip content="分配到指定菜单下,例如 系统管理" placement="top">
<el-tooltip content="分配到指定菜单下,例如 运维管理" placement="top">
<el-icon><question-filled /></el-icon>
</el-tooltip>
</template>

View File

@ -47,7 +47,7 @@ export default defineConfig(({ mode, command }) => {
},
// vite 相关配置
server: {
port: 80,
port: 8080,
host: true,
open: true,
proxy: {