From 86edf72afc4aa1012c820388e3edcbcde23e90d9 Mon Sep 17 00:00:00 2001 From: LCJ-MinYa <1049468118@qq.com> Date: Fri, 24 Jan 2025 09:38:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=91=8A=E8=AD=A6=E7=BA=A7=E5=88=AB?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../screen/components/AlarmStatistics.vue | 127 ++++++++++++++++++ src/views/screen/index.vue | 15 ++- 2 files changed, 138 insertions(+), 4 deletions(-) create mode 100644 src/views/screen/components/AlarmStatistics.vue diff --git a/src/views/screen/components/AlarmStatistics.vue b/src/views/screen/components/AlarmStatistics.vue new file mode 100644 index 0000000..0baddcc --- /dev/null +++ b/src/views/screen/components/AlarmStatistics.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/views/screen/index.vue b/src/views/screen/index.vue index 387a89a..5f61d2b 100644 --- a/src/views/screen/index.vue +++ b/src/views/screen/index.vue @@ -84,6 +84,7 @@ import AlarmDynamic from './components/AlarmDynamic.vue'; import AccessUsageStatus from './components/AccessUsageStatus.vue'; import ResourceType from './components/ResourceType.vue'; import AlarmTrend from './components/AlarmTrend.vue'; +import AlarmStatistics from './components/AlarmStatistics.vue'; /** 机构切换配置 */ const orgList = ref([ @@ -142,6 +143,9 @@ const getComponent = (componentName) => { case 'AlarmTrend': component = shallowRef(AlarmTrend); break; + case 'AlarmStatistics': + component = shallowRef(AlarmStatistics); + break; } return component; }; @@ -163,6 +167,7 @@ const getComponentClass = computed(() => (componentName) => { break; case 'ResourceType': case 'AlarmTrend': + case 'AlarmStatistics': className = 'content_lr-item'; break; } @@ -188,14 +193,16 @@ const getLayout = (id) => { right: [ { title: '资源类型', componentName: 'ResourceType' }, { title: '告警趋势图', componentName: 'AlarmTrend' }, + { title: '告警级别统计', componentName: 'AlarmStatistics' }, ], }; break; case 'org1': layoutDataValue = { left: [ - { title: '综合看板', componentName: 'AccessStatus' }, - { title: '重要系统健康状态', componentName: 'MajorSystemHealthStatus' }, + { title: '告警级别统计', componentName: 'AlarmStatistics' }, + { title: '告警趋势图', componentName: 'AlarmTrend' }, + { title: '资源类型', componentName: 'ResourceType' }, ], center: [ { title: '重要告警', componentName: 'MajorAlert' }, @@ -203,8 +210,8 @@ const getLayout = (id) => { { title: '各资源接入及使用情况', componentName: 'AccessUsageStatus' }, ], right: [ - { title: '资源类型', componentName: 'ResourceType' }, - { title: '告警趋势图', componentName: 'AlarmTrend' }, + { title: '重要系统健康状态', componentName: 'MajorSystemHealthStatus' }, + { title: '综合看板', componentName: 'AccessStatus' }, ], }; break;