From 0c1471f65155dfe00dd93e6bf43751543d0434e5 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Fri, 15 Nov 2024 09:03:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=AD=A6=E8=AE=B0=E5=BD=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SysMenu.vue | 2 +- src/layouts/MainLayout.vue | 8 + src/pages/AlarmRecord.vue | 294 +++++++++++++++++++++++++++++++++++++ src/router/routes.ts | 15 ++ 4 files changed, 318 insertions(+), 1 deletion(-) create mode 100644 src/pages/AlarmRecord.vue diff --git a/src/components/SysMenu.vue b/src/components/SysMenu.vue index 39e6192..fd6aaa4 100644 --- a/src/components/SysMenu.vue +++ b/src/components/SysMenu.vue @@ -130,7 +130,7 @@ const list = reactive([ }, { show: true, - path: '/sysManage/alarmRecord', + path: '/alarmInfo/list', label: '报警管理', icon: 'alarm_on', }, diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index d2159a7..666dd9c 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -51,6 +51,13 @@ label="返回" @click="backConfirm" /> + route.path, diff --git a/src/pages/AlarmRecord.vue b/src/pages/AlarmRecord.vue new file mode 100644 index 0000000..bbb4b65 --- /dev/null +++ b/src/pages/AlarmRecord.vue @@ -0,0 +1,294 @@ + + + diff --git a/src/router/routes.ts b/src/router/routes.ts index 4ddbeba..74a6f76 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -114,6 +114,21 @@ const routes: RouteRecordRaw[] = [ meta: { description: '报警记录', }, + component: () => import('pages/AlarmRecord.vue'), + }, + ], + }, + { + path: '/alarmInfo', + name: 'alarmInfo', + component: () => import('layouts/MainLayout.vue'), + children: [ + { + path: 'list', + name: 'list', + meta: { + description: '报警信息', + }, component: () => import('pages/AlarmInfoList.vue'), }, ],