From 1cd1e5874bc98333c895cd561d4c22ecb4e36031 Mon Sep 17 00:00:00 2001 From: heyanlong Date: Thu, 16 Dec 2021 14:22:18 +0800 Subject: [PATCH] alert: add view and router --- src/locales/lang/zh.ts | 3 ++ src/router/alert.ts | 6 +-- src/views/Alert.vue | 102 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 src/views/Alert.vue diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 6e5912fb..91ef3646 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -27,7 +27,10 @@ const msg = { dashboardList: "仪表盘列表", log: "日志", events: "事件", + // 警告 alerts: "警告", + alertName: "警告名称", + startedTime: "开始时间", settings: "设置", dashboards: "仪表盘", profiles: "性能剖析", diff --git a/src/router/alert.ts b/src/router/alert.ts index c0e27fb2..1e3f4f3a 100644 --- a/src/router/alert.ts +++ b/src/router/alert.ts @@ -24,8 +24,8 @@ export const routesAlert: Array = [ meta: { title: "alerts", icon: "notification_important", - hasGroup: false, - exact: false, + hasGroup: true, + exact: true, }, component: Layout, children: [ @@ -38,7 +38,7 @@ export const routesAlert: Array = [ hasGroup: false, exact: false, }, - component: () => import("@/views/Log.vue"), + component: () => import("@/views/Alert.vue"), }, ], }, diff --git a/src/views/Alert.vue b/src/views/Alert.vue new file mode 100644 index 00000000..821afa74 --- /dev/null +++ b/src/views/Alert.vue @@ -0,0 +1,102 @@ + + + + + \ No newline at end of file