From 983b865ff7f88b05bb56deb66705781ccddbda29 Mon Sep 17 00:00:00 2001 From: yangsy Date: Wed, 20 May 2026 12:52:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=BD=95=E5=83=8F?= =?UTF-8?q?=E6=9C=BA=E7=8E=AF=E5=A2=83=E7=8A=B6=E6=80=81=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E5=92=8C=E7=BD=91=E5=8D=A1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/domain/biz/diag/ndm-nvr-diag-info.ts | 51 ++++++++++++++++--- .../components/current-diag/index.ts | 2 + .../components/current-diag/nvr-env-card.vue | 47 +++++++++++++++++ .../device-card/ndm-nvr/nvr-current-diag.vue | 28 ++++++++-- 4 files changed, 116 insertions(+), 12 deletions(-) create mode 100644 src/components/device/device-card/components/current-diag/nvr-env-card.vue diff --git a/src/apis/domain/biz/diag/ndm-nvr-diag-info.ts b/src/apis/domain/biz/diag/ndm-nvr-diag-info.ts index ce3cd4a..aaf23d4 100644 --- a/src/apis/domain/biz/diag/ndm-nvr-diag-info.ts +++ b/src/apis/domain/biz/diag/ndm-nvr-diag-info.ts @@ -10,6 +10,37 @@ export interface NdmNvrDiagInfo { totalSize?: number; }[]; }; + ethInfo: { + adminStatus?: string; // '1' + desc?: string; // 'bond1' + ifType?: string; // '6' + inDiscards?: string; // '17931688' + inErrors?: string; // '0' + inNUcastPkts?: string; // '40945433' + inOctets?: string; // '3453544614' + inUcastPkts?: string; // '3375411816' + inUnknownProtos?: string; // '0' + index?: string; // '8' + lastChange?: string; // '0:05:42.15' + mTU?: string; // '1500' + macAddress?: string; // '04:7b:cb:69:92:58' + operStatus?: string; // '1' + outDiscards?: string; // '0' + outErrors?: string; // '0' + outNUcastPkts?: string; // '0' + outOctets?: string; // '3443476717' + outQLen?: string; // '0' + outUcastPkts?: string; // '415381735' + specific?: string; // '0.0' + speed?: string; // '2000000000' + }; + ipInfo: { + broadcastAddress?: string; // '1' + iPAddress?: string; // '10.14.1.22' + index?: string; // '8' + mASK?: string; // '255.255.255.0' + reasmMaxSize?: string; // '0' + }; stCommonInfo?: { 设备ID?: string; 软件版本?: string; @@ -20,12 +51,16 @@ export interface NdmNvrDiagInfo { 内存使用率?: string; CPU使用率?: string; }; - cdFanInfo?: { - 索引号?: string; - '风扇转速(rpm)'?: string; - }[]; - cdPowerSupplyInfo?: { - 索引号?: string; - 电源状态?: string; - }[]; + cdFanInfo?: NdmNvrFanInfo[]; + cdPowerSupplyInfo?: NdmNvrPowerSupplyInfo[]; +} + +export interface NdmNvrFanInfo { + 索引号?: string; + '风扇转速(rpm)'?: string; +} + +export interface NdmNvrPowerSupplyInfo { + 索引号?: string; + 电源状态?: string; } diff --git a/src/components/device/device-card/components/current-diag/index.ts b/src/components/device/device-card/components/current-diag/index.ts index f6b2f90..f5cc9c7 100644 --- a/src/components/device/device-card/components/current-diag/index.ts +++ b/src/components/device/device-card/components/current-diag/index.ts @@ -2,6 +2,7 @@ import type { ComponentInstance } from 'vue'; import DeviceCommonCard from './device-common-card.vue'; import DeviceHardwareCard from './device-hardware-card.vue'; import DeviceHeaderCard from './device-header-card.vue'; +import NvrEnvCard from './nvr-env-card.vue'; import NvrDiskCard from './nvr-disk-card.vue'; import NvrRecordCheckCard from './nvr-record-check-card.vue'; import SecurityBoxCircuitCard from './security-box-circuit-card.vue'; @@ -16,6 +17,7 @@ export { DeviceCommonCard, DeviceHardwareCard, DeviceHeaderCard, + NvrEnvCard, NvrDiskCard, NvrRecordCheckCard, SecurityBoxCircuitCard, diff --git a/src/components/device/device-card/components/current-diag/nvr-env-card.vue b/src/components/device/device-card/components/current-diag/nvr-env-card.vue new file mode 100644 index 0000000..5aff2ed --- /dev/null +++ b/src/components/device/device-card/components/current-diag/nvr-env-card.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/src/components/device/device-card/ndm-nvr/nvr-current-diag.vue b/src/components/device/device-card/ndm-nvr/nvr-current-diag.vue index d555832..4aefbc8 100644 --- a/src/components/device/device-card/ndm-nvr/nvr-current-diag.vue +++ b/src/components/device/device-card/ndm-nvr/nvr-current-diag.vue @@ -1,6 +1,6 @@