From 05fed99163a67c4440a6456dfaeb84fd956b7d4d Mon Sep 17 00:00:00 2001 From: Wangxin Date: Thu, 23 Oct 2025 20:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alops-ui/src/views/inMonitoring/devicesState/detail.vue | 2 +- .../alops-ui/src/views/inMonitoring/devicesState/history.vue | 4 ++-- ALOps_sys_fe/alops-ui/src/views/index.vue | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue index a8f3cede..569759eb 100644 --- a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue +++ b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue @@ -972,7 +972,7 @@ mounted() { color: #2d3748; line-height: 1.6; padding: 20px; - min-height: 60vh; + min-height: 50vh; } .dashboard { diff --git a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/history.vue b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/history.vue index 4956198c..81dc58b9 100644 --- a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/history.vue +++ b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/history.vue @@ -66,13 +66,13 @@ export default { handler(val) { this.getList(val) }, - deep: true, - immediate: true + deep: true } }, methods: { /** 查询类型列表 */ getList(id) { + if (!id) return; this.loading = true try { alertmessage(id).then(response => { diff --git a/ALOps_sys_fe/alops-ui/src/views/index.vue b/ALOps_sys_fe/alops-ui/src/views/index.vue index 92c70cec..a534e48e 100644 --- a/ALOps_sys_fe/alops-ui/src/views/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/index.vue @@ -105,10 +105,7 @@ {{ device.temperature || 0 }}°C -
-
-
- {{ device.health || 0 }}% + {{ device.health == '1'?'健康':device.health == '2'?'良好':device.health == '3'?'一般':device.health == '4'?'需维护':'未获取' }} {{ formatDuration(device.contWorkPeriod) }} {{ parseTime(device.gatherTime) || '--' }}