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 @@
+
+
+
+
+
+ 录像机环境状态
+
+
+
+
+
+
+
+
+ 风扇{{ info['索引号'] }}: {{ info['风扇转速(rpm)'] }} RPM
+
+
+
+
+
+
+
+ 电源{{ info['索引号'] }}: {{ info['电源状态'] }}
+
+
+
+
+
+
+
+
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 @@
@@ -52,6 +71,7 @@ const diskArray = computed(() => lastDiagInfo.value?.info?.groupInfoList);
+