From 7db10f956d97ae2bd1fe97eb87603020f17bc59f Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期一, 10 二月 2025 15:08:19 +0800
Subject: [PATCH] 34

---
 src/views/Home.vue |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/views/Home.vue b/src/views/Home.vue
index a4baed2..2b725eb 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -191,6 +191,7 @@
                   <el-progress
                     :text-inside="true"
                     :stroke-width="26"
+                    :show-text="false"
                     :percentage=" Number(deviceData.iot_当前脱水量)/Number(deviceData.处方脱水量)*100"
                   />
                 </div>
@@ -210,6 +211,7 @@
                   <el-progress
                     :text-inside="true"
                     :stroke-width="26"
+                    :show-text="false"
                     :percentage="(Number(deviceData.iot_透析时间)/(Number(deviceData.透析处方的时长)*60))*100"
                     status="success"
                   />
@@ -325,7 +327,7 @@
           </div>
         </el-col>
       </el-row>
-      <el-row style="height: 20%;background-color: #ffffff; line-height: 50px;">
+      <el-row style="height: 20%;background-color: #ffffff; ">
       
         <div v-if="床旁血压计.zuihouTime>shishiTime" style="color: cornflowerblue;height: 20%; width: 100%;" class="grid-container">
             <div style="text-align: center;width: 100%; color: #909399;">
@@ -574,15 +576,9 @@
   血压高值列表: "152,133,116",
   设备分区类型: 0,
   设备号: "23",
-  设备名称: "23",
+  设备名称: "初始化。。。",
   设备序列号: "B97AP002",
   设备状态列表: [
-    {
-      是否为警告标记: 0,
-      状态名称: "待机",
-      状态类型: "待机",
-      状态颜色: "#13CE66",
-    },
   ],
   设备编号: "DEVICE9195233509924hOHL",
   超滤速度过快: null,
@@ -867,6 +863,7 @@
     centerDialogVisible.value=false
     Local.set('devcieCode',deviceCode.value)
     sourceInit()
+    window.location.reload();
   }else{
     ElMessage.warning('请先输入设备编号')
   }
@@ -928,7 +925,13 @@
                     }
                   }else if(dataBody.推送类型==='中央监控大屏信息'){
                     console.log(Date.now() + 'DEV')
-                    deviceData.value=dataBody?.透析状态
+                    if(dataBody?.透析状态){
+                      deviceData.value=dataBody?.透析状态
+                    }else{
+                      deviceData.value.设备名称=dataBody.IOT信息.床号
+                      deviceData.value.患者姓名=''
+                    }
+                    
                     deviceData.value.设备变化=Date.now() + 'DEV'
                     console.log(1)
                     console.log(2)
@@ -938,9 +941,7 @@
                     console.log(4)
                     console.log(deviceData.value.设备变化)
                     deviceData.value.设备状态列表=dataBody.IOT信息.状态列表
-                    if(!dataBody.透析状态){
-                      deviceData.value.患者姓名=''
-                    }
+                    
                   }
                  
                 }

--
Gitblit v1.8.0