From 3b2e941a83ad49d3167df864a5a06a81ef944470 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期三, 24 九月 2025 23:55:45 +0800
Subject: [PATCH] Merge branch 'ID2130-未签到页面优化' into test

---
 src/views/mobile/bedsideAuxiliaryScreen/pages/UnderTreatment.vue |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/src/views/mobile/bedsideAuxiliaryScreen/pages/UnderTreatment.vue b/src/views/mobile/bedsideAuxiliaryScreen/pages/UnderTreatment.vue
index ab2a2e0..382aa15 100644
--- a/src/views/mobile/bedsideAuxiliaryScreen/pages/UnderTreatment.vue
+++ b/src/views/mobile/bedsideAuxiliaryScreen/pages/UnderTreatment.vue
@@ -241,7 +241,7 @@
             header-class-name="mini-header"
           >
             <div class="progress-box">
-              <div class="item-num">
+              <div class="item-num item-num-2">
                 {{ jgTime4(pageData.dialysisDuration) }}/{{
                   pageData.prescriptionDialysisDurationHour
                 }}:{{ pageData.prescriptionDialysisDurationMin }}
@@ -256,6 +256,7 @@
                 backgroundColor="#D6DEF1"
                 borderRadius="50%"
               />
+              <div class="cftsl-text">当前时间:<span class="">{{ time }}</span></div>
             </div>
           </Card>
           <Card
@@ -266,7 +267,7 @@
             header-class-name="mini-header"
           >
             <div class="progress-box">
-              <div class="item-num">
+              <div class="item-num item-num-2">
                 {{ pageData.currentDehydrationVolume }}/{{
                   pageData.prescriptionDehydrationVolume
                 }}({{ pageData.currentUltrafiltrationRate }})
@@ -281,6 +282,7 @@
                 backgroundColor="#D6DEF1"
                 borderRadius="50%"
               />
+              <div class="cftsl-text">处方脱水量:<span class="cftsl-num">{{ pageData.处方脱水量 }}L</span></div>
             </div>
           </Card>
         </div>
@@ -398,6 +400,9 @@
 const ktvListEchartRef = ref<HTMLElement | null>(null);
 // 血压脉搏趋势图的
 const bloodPressureAndPulseEchartRef = ref<HTMLElement | null>(null);
+
+const time = ref(dayjs().format("HH:mm"))
+let timer: number | undefined
 
 const pageData = computed(() => {
   return Object.assign(bedsideAuxiliaryScreenStore.deviceData.underTreatment, {
@@ -804,9 +809,17 @@
   // 生成ktv趋势图
   generateKtvListEchart(pageData.value.ktvList);
   generatBloodPressureAndPulseEchart(pageData.value.monitoringRecord);
+  // 初始化
+  time.value = dayjs().format("HH:mm")
+
+  // 每分钟刷新一次
+  timer = window.setInterval(() => {
+    time.value = dayjs().format("HH:mm")
+  }, 1000 * 1)
 });
 
 onBeforeUnmount(() => {
+  if (timer) clearInterval(timer)
   // 销毁图表实例
   if (ktvListEchartRef.value) {
     const chart = echarts.getInstanceByDom(ktvListEchartRef.value);
@@ -989,7 +1002,7 @@
     }
   }
 
-  .progress-box {
+.progress-box {
     display: flex;
     align-items: center;
     flex-direction: column;
@@ -1001,6 +1014,20 @@
       color: #333333;
       text-align: left;
       font-style: normal;
+      &.item-num-2 {
+        margin-bottom: 2px;
+      }
+    }
+    .cftsl-text {
+      font-family: PingFangSC, PingFang SC;
+      font-weight: 600;
+      font-size: 5px;
+      color: #333333;
+      text-align: left;
+      font-style: normal;
+      .cftsl-num {
+        color: #a91a1a;
+      }
     }
   }
 

--
Gitblit v1.8.0