From c9b4e430e9bab08d1012713b82115bc9b5232538 Mon Sep 17 00:00:00 2001 From: zhongzm Date: Wed, 11 Jun 2025 11:14:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=9A=90=E8=97=8F=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E3=80=81=E4=BA=A4=E6=8D=A2=E6=9C=BA=E3=80=81OLTs=E9=A1=B9?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=91=8A=E8=AD=A6=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/modules/card-data.vue | 30 +++--- src/views/dashboard/modules/header-banner.vue | 98 ++++++++++--------- 2 files changed, 66 insertions(+), 62 deletions(-) diff --git a/src/views/dashboard/modules/card-data.vue b/src/views/dashboard/modules/card-data.vue index 3493ca5..52741ce 100644 --- a/src/views/dashboard/modules/card-data.vue +++ b/src/views/dashboard/modules/card-data.vue @@ -167,21 +167,21 @@ const columns: TableColumnType[] = [ key: 'alerts', width: 100 }, - { - title: t('page.carddata.gateway'), - key: 'gateway', - width: 100 - }, - { - title: t('page.carddata.switches'), - key: 'switches', - width: 100 - }, - { - title: 'OLTS', - key: 'olts', - width: 100 - }, + // { + // title: t('page.carddata.gateway'), + // key: 'gateway', + // width: 100 + // }, + // { + // title: t('page.carddata.switches'), + // key: 'switches', + // width: 100 + // }, + // { + // title: 'OLTS', + // key: 'olts', + // width: 100 + // }, { title: 'EAPS', key: 'eaps', diff --git a/src/views/dashboard/modules/header-banner.vue b/src/views/dashboard/modules/header-banner.vue index 4331a95..294d761 100644 --- a/src/views/dashboard/modules/header-banner.vue +++ b/src/views/dashboard/modules/header-banner.vue @@ -25,6 +25,10 @@ const handleUserClick = () =>{ const handleterminalClick = () => { router.push('/device/terminal'); }; +//告警跳转 +const handAlertsClick = () => { + router.push('/device/alerts'); +}; defineOptions({ @@ -164,53 +168,53 @@ const otherDevices = computed(() => ({ - -
-
-
- - {{ otherDevices.gateways.connected + otherDevices.gateways.disconnected }} -
-
{{ t('page.headerbanner.gateway') }}
-
-
-
- {{ t('page.headerbanner.connect') }}: {{ otherDevices.gateways.connected }} - {{ t('page.headerbanner.disconnect') }}: {{ otherDevices.gateways.disconnected }} -
-
+ + + + + + + + + + + + + + + - -
-
-
- - {{ otherDevices.switches.connected + otherDevices.switches.disconnected }} -
-
{{ t('page.headerbanner.switches') }}
-
-
-
- {{ t('page.headerbanner.connect') }}: {{ otherDevices.switches.connected }} - {{ t('page.headerbanner.disconnect') }}: {{ otherDevices.switches.disconnected }} -
-
+ + + + + + + + + + + + + + + - -
-
-
- - {{ otherDevices.olts.total }} -
-
OLTs
-
-
-
- {{ t('page.headerbanner.connect') }}: {{ otherDevices.olts.connected }} - {{ t('page.headerbanner.disconnect') }}: {{ otherDevices.olts.disconnected }} -
-
+ + + + + + + + + + + + + + +
@@ -281,8 +285,8 @@ const otherDevices = computed(() => ({
-
- +
+
{{ t('page.headerbanner.alerts') }}