From 0878950e171bcaeb0cf8064c72d6f5a330eea4da Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期三, 07 二月 2024 16:41:59 +0800
Subject: [PATCH] g更新设备号和干体重开关

---
 src/views/home/index.vue |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 7023bdc..d656ad0 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -4,7 +4,7 @@
     <div style="height: 10%;padding-top: 20px;">
         <el-row>
             <el-col :span="12" >
-                <div style="display: grid;grid-template-columns: minmax(160px, 25%) 1fr;">
+                <div style="display: grid;grid-template-columns: minmax(200px, 25%) 1fr;">
                     <div style="margin-top: 5px;" @click="guyanbi">
                         <img class="image_1"  style="margin-left: 20px;display: inline-block;"  referrerpolicy="no-referrer" src="@/assets/logo.png" />
                     
@@ -53,8 +53,10 @@
                     <div style="height: 77%;">
                         <div style="display: grid;grid-template-columns: minmax(250px, 40%) 1fr; height: 100%; padding-left: 20px;padding-top: 20px;">
                             <!-- 头像 -->
-                            <div  :style="{backgroundImage:`url(${patientInfo.patientAvatarIcon})`}" style="background-size:100% 100%;height: 100%;">
-
+                            <div  :style="{backgroundImage:`url(${patientInfo.patientAvatarIcon})`}" style="background-size:100% 100%;height: 100%;" >
+                              <div style="width:140px; height: 50px; line-height: 50px; font-size: 25px; background: #DFB144;color: #FFFFFF; font-weight: 500; text-align: center; border-radius: 0px 8px 0px 30px; float: right;">
+                                {{patientInfo.name}}
+                              </div>
                             </div>
                             <div style="display: grid;place-items: center;font-size: 120px;font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;font-weight: 800;color: #65AAF6;">
                                 <template v-if="configData.deviceType==='体重秤'">
@@ -75,25 +77,23 @@
                         <el-col :span="8">
                             <div class="textwenben" style="height: 28%; font-size: 25px;background-color: #DFB144; border-radius: 12px 0 0 0;">
                               <template v-if="configData.deviceType==='体重秤'">
-                                <template v-if="patientInfo.isAfterMed===0">
+                                <template v-if="patientInfo.isAfterMed===0&&!configData.gantiziShow">
                                   机号/床位号
                                 </template>
                                 <template v-else>干体重(kg)</template>
                                   
                               </template>
                               <template v-else>
-                                <template v-if="patientInfo.isAfterMed===0">
+                                <template v-if="!configData.gantiziShow">
                                   机号/床位号
                                 </template>
-                                <template v-else>
-                                  机号/床位号
-                                </template>
+                                <template v-else>干体重(kg)</template>
                                 
                               </template>
                             </div>
                             <div class="textwenben" style="height: 70%; font-size: 80px; color: #DFB144;">
                               <template v-if="configData.deviceType==='体重秤'">
-                                  <template v-if="patientInfo.isAfterMed===0">
+                                  <template v-if="patientInfo.isAfterMed===0&&!configData.gantiziShow">
                                     {{ patientInfo.deviceNo }}
                                   </template>
                                   <template v-else>{{patientInfo.pureWeight}}</template>
@@ -581,7 +581,7 @@
   const xAxisData: any[]=[]
   const series=[
     {
-      name: '透前伸缩压',
+      name: '透前收缩压',
       type: 'line',
       color:'#E6A23C',
       smooth: true,
@@ -595,7 +595,7 @@
       data: <any>[]
     },
     {
-      name: '透后伸缩压',
+      name: '透后收缩压',
       type: 'line',
       color:'#606266',
       smooth: true,
@@ -603,7 +603,7 @@
     },{
       name: '透后舒张压',
       type: 'line',
-      color:'#E6A23C',
+      color:'#F56C6C',
       smooth: true,
       data: []
     }
@@ -619,7 +619,7 @@
         series[2].data.push(e.透后伸缩压)
         series[3].data.push(e.透后舒张压)
       })
-      const legendData=['透前伸缩压', '透前舒张压', '透后伸缩压','透后舒张压']
+      const legendData=['透前收缩压', '透前舒张压', '透后收缩压','透后舒张压']
       huatu2(series,xAxisData,legendData,'血压趋势图')
     }
   })

--
Gitblit v1.8.0