From 97c1a703d72bc15f152a50aeb30dae0631067fe6 Mon Sep 17 00:00:00 2001
From: luojiayi <1712054227@qq.com>
Date: Wed, 21 May 2025 17:43:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=9F=E8=AE=A1=E4=B8=AD?=
=?UTF-8?q?=E5=BF=83bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/monitoringCenter/deviceRecord.vue | 52 +++++++++----------
.../statisticalCenter/onLineStatistics.vue | 6 +--
.../statisticalCenter/statisticsWarning.vue | 12 ++---
3 files changed, 34 insertions(+), 36 deletions(-)
diff --git a/src/views/monitoringCenter/deviceRecord.vue b/src/views/monitoringCenter/deviceRecord.vue
index 53636f5..d2128c2 100644
--- a/src/views/monitoringCenter/deviceRecord.vue
+++ b/src/views/monitoringCenter/deviceRecord.vue
@@ -3,16 +3,14 @@
当前设备告警记录
-
-
-
+
+
+
-
-
-
-
+
+
+
+
@@ -32,10 +30,10 @@
diff --git a/src/views/statisticalCenter/onLineStatistics.vue b/src/views/statisticalCenter/onLineStatistics.vue
index 106165a..b390b00 100644
--- a/src/views/statisticalCenter/onLineStatistics.vue
+++ b/src/views/statisticalCenter/onLineStatistics.vue
@@ -37,9 +37,9 @@ let option = ref({
const getStatisticsUseCount = () => {
statisticsUseCount().then((res) => {
option.value.series.data = [
- { value: res.defaultCount, name: "常规模式" },
- { value: res.outsideCount, name: "户外押送" },
- { value: res.monitorCount, name: "审讯模式" },
+ { value: res.defaultCount || 0, name: "常规模式" },
+ { value: res.outsideCount || 0, name: "户外押送" },
+ { value: res.monitorCount || 0, name: "审讯模式" },
];
myChart.setOption(option.value);
});
diff --git a/src/views/statisticalCenter/statisticsWarning.vue b/src/views/statisticalCenter/statisticsWarning.vue
index 4372067..17fe748 100644
--- a/src/views/statisticalCenter/statisticsWarning.vue
+++ b/src/views/statisticalCenter/statisticsWarning.vue
@@ -39,12 +39,12 @@ let option = ref({
const getStatisticsWarningApi = () => {
statisticsWarningapi().then((res) => {
option.value.series.data = [
- { value: res?.sosCount, name: "SOS告警" },
- { value: res?.railCount, name: "围栏告警" },
- { value: res?.destroyCount, name: "破坏告警" },
- { value: res?.heartRateCount, name: "心率告警" },
- { value: res?.bloodOxygenCount, name: "血氧告警" },
- { value: res?.tempCount, name: "体温告警" },
+ { value: res?.sosCount || 0, name: "SOS告警" },
+ { value: res?.railCount || 0, name: "围栏告警" },
+ { value: res?.destroyCount || 0, name: "破坏告警" },
+ { value: res?.heartRateCount || 0, name: "心率告警" },
+ { value: res?.bloodOxygenCount || 0, name: "血氧告警" },
+ { value: res?.tempCount || 0, name: "体温告警" },
];
myChart.setOption(option.value);
});