diff --git a/src/components/device-page/device-card/history-diag-card/camera-history-diag-card.vue b/src/components/device-page/device-card/history-diag-card/camera-history-diag-card.vue
index 7d0ffb5..c4d1cce 100644
--- a/src/components/device-page/device-card/history-diag-card/camera-history-diag-card.vue
+++ b/src/components/device-page/device-card/history-diag-card/camera-history-diag-card.vue
@@ -1,8 +1,8 @@
@@ -51,15 +58,27 @@ onMounted(() => {
-
+
刷新数据
-
-
+
+
diff --git a/src/components/device-page/device-card/history-diag-card/decoder-history-diag-card.vue b/src/components/device-page/device-card/history-diag-card/decoder-history-diag-card.vue
index adc755e..5e1d3c6 100644
--- a/src/components/device-page/device-card/history-diag-card/decoder-history-diag-card.vue
+++ b/src/components/device-page/device-card/history-diag-card/decoder-history-diag-card.vue
@@ -1,8 +1,8 @@
@@ -55,16 +63,29 @@ onMounted(() => {
-
+
刷新数据
-
-
+
+
import type { NdmKeyboardResultVO } from '@/apis/models';
import dayjs from 'dayjs';
-import { NButton, NCard, NDatePicker, NFlex, NGi, NGrid, NSelect, type DatePickerProps } from 'naive-ui';
-import { computed, onMounted, reactive, toRefs, useTemplateRef } from 'vue';
+import { NButton, NCard, NDatePicker, NFlex, NGi, NGrid, NSelect, type DatePickerProps, type SelectOption } from 'naive-ui';
+import { computed, onMounted, reactive, ref, toRefs, useTemplateRef } from 'vue';
import DeviceStatusHistoryDiagCard from './device-status-history-diag-card.vue';
@@ -35,6 +35,10 @@ onMounted(() => {
searchFields.dateTimeRange = [weekAgo.valueOf(), todayEnd.valueOf()];
refreshData();
});
+
+const diagCards = ref([{ label: '设备状态', value: 'status' }]);
+
+const selectedCards = ref([...diagCards.value.map((option) => `${option.value ?? ''}`)]);
@@ -47,14 +51,20 @@ onMounted(() => {
-
+
刷新数据
-
+
diff --git a/src/components/device-page/device-card/history-diag-card/nvr-diag-history-card.vue b/src/components/device-page/device-card/history-diag-card/nvr-diag-history-card.vue
index 5a2db2c..75f0f58 100644
--- a/src/components/device-page/device-card/history-diag-card/nvr-diag-history-card.vue
+++ b/src/components/device-page/device-card/history-diag-card/nvr-diag-history-card.vue
@@ -1,8 +1,8 @@
@@ -61,16 +70,29 @@ onMounted(() => {
-
+
刷新数据
-
-
+
+
{
:cpu-usage-field="'stCommonInfo.CPU使用率'"
:mem-usage-field="'stCommonInfo.内存使用率'"
/>
-
+
diff --git a/src/components/device-page/device-card/history-diag-card/security-box-history-diag-card.vue b/src/components/device-page/device-card/history-diag-card/security-box-history-diag-card.vue
index 1f0750b..25d2da1 100644
--- a/src/components/device-page/device-card/history-diag-card/security-box-history-diag-card.vue
+++ b/src/components/device-page/device-card/history-diag-card/security-box-history-diag-card.vue
@@ -1,8 +1,8 @@
@@ -64,16 +73,29 @@ onMounted(() => {
-
+
刷新数据
-
-
+
+
{
:cpu-usage-field="'stCommonInfo.CPU使用率'"
:mem-usage-field="'stCommonInfo.内存使用率'"
/>
-
+
diff --git a/src/components/device-page/device-card/history-diag-card/server-history-diag-card.vue b/src/components/device-page/device-card/history-diag-card/server-history-diag-card.vue
index bab2a6e..f494581 100644
--- a/src/components/device-page/device-card/history-diag-card/server-history-diag-card.vue
+++ b/src/components/device-page/device-card/history-diag-card/server-history-diag-card.vue
@@ -1,8 +1,8 @@
@@ -55,16 +63,29 @@ onMounted(() => {
-
+
刷新数据
-
-
+
+
import type { NdmSwitchResultVO } from '@/apis/models';
import dayjs from 'dayjs';
-import { NButton, NCard, NDatePicker, NFlex, NGi, NGrid, NSelect, type DatePickerProps } from 'naive-ui';
-import { computed, onMounted, reactive, toRefs, useTemplateRef } from 'vue';
+import { NButton, NCard, NDatePicker, NFlex, NGi, NGrid, NSelect, type DatePickerProps, type SelectOption } from 'naive-ui';
+import { computed, onMounted, reactive, ref, toRefs, useTemplateRef } from 'vue';
import DeviceStatusHistoryDiagCard from './device-status-history-diag-card.vue';
import DeviceAlarmHistoryDiagCard from './device-alarm-history-diag-card.vue';
@@ -49,6 +49,15 @@ onMounted(() => {
searchFields.dateTimeRange = [weekAgo.valueOf(), todayEnd.valueOf()];
refreshData();
});
+
+const diagCards = ref([
+ { label: '设备状态', value: 'status' },
+ { label: '设备告警', value: 'alarm' },
+ { label: '硬件使用率', value: 'usage' },
+ { label: '端口状态', value: 'port' },
+]);
+
+const selectedCards = ref([...diagCards.value.map((option) => `${option.value ?? ''}`)]);
@@ -61,16 +70,29 @@ onMounted(() => {
-
+
刷新数据
-
-
+
+
{
:cpu-usage-field="'cpuRatio'"
:mem-usage-field="'memoryRatio'"
/>
-
+