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