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'), }, ],