From 02cda108e3d49036fbfd628458e84ca9c360d257 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 10 六月 2025 10:56:50 +0800
Subject: [PATCH] 优化细节
---
src/views/home/index.vue | 38 ++++++++++++--------------------------
1 files changed, 12 insertions(+), 26 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 1412579..1d6f471 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -56,7 +56,7 @@
{{patientInfo.name}}
</div>
</div>
- <div style="display: grid;place-items: center;font-size: 120px;font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;font-weight: 800;color: #65AAF6;">
+ <div style="display: grid;place-items: center;font-size: 120px;font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;font-weight: 800;color: black;">
<template v-if="configData.deviceType==='体重秤'">
<!-- {{ weightInfo.result }} -->
{{weightInfoResult}}
@@ -90,7 +90,7 @@
</template>
</div>
- <div class="textwenben" style="height: 70%; font-size: 80px; color: #9F61DC;font-weight: 1000;text-align: center;">
+ <div class="textwenben" style="height: 70%; font-size: 80px; color: black;font-weight: 1000;text-align: center;">
<template v-if="configData.deviceType==='体重秤'">
<template v-if="patientInfo.isAfterMed===0&&!configData.gantiziShow">
<div style="font-size: 50px"> {{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div>
@@ -131,7 +131,7 @@
</template>
</div>
- <div class="textwenben" style="height: 70%; font-size: 80px; color: #41B593; font-weight: 1000;
+ <div class="textwenben" style="height: 70%; font-size: 80px; color: black; font-weight: 1000;
border-left: #FFFFFF solid 2px;border-right: #FFFFFF solid 2px;">
<template v-if="configData.deviceType==='体重秤'">
<template v-if="patientInfo.isAfterMed===0">
@@ -156,7 +156,7 @@
</div>
</el-col>
<el-col :span="8">
- <div class="textwenben" style="height: 28%; font-size: 25px;background-color: #65AAF6;border-radius: 0 12px 0 0 ">
+ <div class="textwenben" style="height: 28%; font-size: 25px;background-color: #65AAF6; border-radius: 0 12px 0 0 ">
<template v-if="configData.deviceType==='体重秤'">
<template v-if="patientInfo.isAfterMed===0">
目标脱水量(L)
@@ -174,7 +174,7 @@
</template>
</div>
- <div class="textwenben" style="height: 70%; font-size: 80px; color: #65AAF6;">
+ <div class="textwenben" style="height: 70%; font-size: 80px; color:black ;">
<template v-if="configData.deviceType==='体重秤'">
<template v-if="patientInfo.isAfterMed===0">
<!-- 目标脱水量(L) -->
@@ -372,31 +372,18 @@
const configData=computed(()=>{
return confingInfoStore().confingInfo
})
-const isLink = computed(() => {
- return !sockte.isLink
-})
// 网络链接
const netLink = computed(() => {
- if(!sockte.netLink){
- ipcRenderer.invoke('logger', '网络已经断开')
- }else{
- ipcRenderer.invoke('logger', '网络已经恢复')
-
- }
- return !sockte.netLink
+ return sockte.netLink
})
watch(netLink,()=>{
- if(!netLink.value){
+ if(netLink.value){
+ ipcRenderer.invoke('logger', `检查网络状态True`)
ElMessage.success('网络已经连接')
}else{
- // ElNotification({
- // title: '异常',
- // message: '网络已断开,等待重连',
- // type: 'warning',
- // duration:10000
- // })
- // ElMessage.warning('网络已断开,等待重连')
+ // ElMessage.warning('网络已经断开')
+ ipcRenderer.invoke('logger', `检查网络状态Fales`)
}
})
@@ -1083,6 +1070,7 @@
// 获取用户媒体流
getUserMedia(
(streams: null) => {
+ console.log('打开视频流')
//后续用于停止视频流
stream.value = streams
//显示视频
@@ -1171,16 +1159,14 @@
if (!image) {
drawBox(box, '识别失败')
// 开启识别
- video.value.play()
+ // video.value.play()
return detectFace()
}
const X= jgTime(lsDateTime,new Date())
//人脸上传到阿里云
// 只有是结果归零状态才能进行识别
- console.log(`检查人脸是否要上传到阿里云识别:归零状态${sockteStore().is测量准备},`)
if(dialogVisible.value&&X>configData.value.face_push&&sockteStore().is测量准备){
lsDateTime=new Date()
- // console.log(X,'上传图片间隔')
base64toFile(image)
}
return detectFace()
--
Gitblit v1.8.0