From a5673d5a3fb9291054a98e56ab359431433ee5fa Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 18 五月 2023 21:07:51 +0800
Subject: [PATCH] 更新界面显示
---
src/views/home/index.vue | 26 +++++++++++++++++++++++---
src/samples/sockteStomp.ts | 4 +++-
package.json | 2 +-
src/stores/patient.ts | 4 +++-
4 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/package.json b/package.json
index 3ab2169..fb4071d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sign-tool",
- "version": "2.6.0",
+ "version": "2.6.2",
"icon": "public/favicon.ico",
"main": "dist/electron/main/index.js",
"author": "",
diff --git a/src/samples/sockteStomp.ts b/src/samples/sockteStomp.ts
index 372183b..6f5064a 100644
--- a/src/samples/sockteStomp.ts
+++ b/src/samples/sockteStomp.ts
@@ -92,7 +92,9 @@
datetime:da,
clothesWeight:resultInfo.clothesWeight===null?0:resultInfo.clothesWeight,
isScheduled:resultInfo.isScheduled,
- isAfterMed:resultInfo.isAfterMed
+ isAfterMed:resultInfo.isAfterMed,
+ deviceNo:resultInfo.deviceNo,
+ preWeight:resultInfo.preWeight
}
// 写入vuex里
patientInfoStore().setpatientInfo(info)
diff --git a/src/stores/patient.ts b/src/stores/patient.ts
index c2e0903..c930d25 100644
--- a/src/stores/patient.ts
+++ b/src/stores/patient.ts
@@ -14,7 +14,9 @@
datetime:'',
clothesWeight:0,
isScheduled:0,
- isAfterMed:0
+ isAfterMed:0,
+ preWeight:0,
+ deviceNo:'',
})// 初始值
const viewNumber=ref(150)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 5787982..77173cf 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -270,6 +270,8 @@
// 计算目标脱水量
if (Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===0) {
state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
+ }else if(Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===1 && patientInfo.value.preWeight>10){
+ state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.preWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
}
}
}
@@ -480,7 +482,7 @@
<el-col :span="8" class="imgclass">
<el-image style="width: 100%; height: 85%" :src="patientInfo.patientAvatarIcon" fit="cover" />
</el-col>
- <el-col :span="15" class="userinfo">
+ <el-col :span="15" class="userinfo" style="margin-top: -5%;">
<el-row>
<el-col :span="12">
<div class="lableclass">
@@ -503,6 +505,18 @@
<el-col :span="12">
<div class="textclass">
{{ patientInfo.hemoCode }}
+ </div>
+ </el-col>
+ </el-row>
+ <el-row style="margin-top: 10%;">
+ <el-col :span="12">
+ <div class="lableclass">
+ 床号:
+ </div>
+ </el-col>
+ <el-col :span="12">
+ <div class="textclass">
+ {{ patientInfo.deviceNo }}
</div>
</el-col>
</el-row>
@@ -564,8 +578,11 @@
</el-row>
<el-row class="rowdiv">
<el-col :span="12">
- <div class="lableclass">
+ <div v-if="patientInfo.isAfterMed===0" class="lableclass">
目标脱水量(L):
+ </div>
+ <div v-else class="lableclass">
+ 体重减少(kg):
</div>
</el-col>
<el-col :span="12">
@@ -580,9 +597,12 @@
<div class="divcol" :style="{ height: haodu }">
<el-row class="titleHand">
<el-col :span="12">
- <div class="tilaft">
+ <div class="tilaft" v-if="patientInfo.isAfterMed===0">
透前体重(kg):
</div>
+ <div class="tilaft" v-else>
+ 透后体重(kg):
+ </div>
</el-col>
<el-col :span="12">
<div class="tiregth">
--
Gitblit v1.8.0