From 68c9c462845e3bde04f34e88187b0b559ceffda5 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 20 六月 2023 14:58:17 +0800
Subject: [PATCH] 完善配置信息使用

---
 src/views/home/index.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index fc46c7f..889188e 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -141,7 +141,7 @@
               </div>
               <div style="height: 75%;">
                 <div style="background: rgba(243, 247, 243, 0.3); height: 100%; width: 100%; font-size: 1.3rem; font-weight: 800; color: #FFFFFF;">
-                  <div class="textjuzhong" style="height: 25%;  width: 100%;">干体重  {{patientInfo.preWeight}}  kg</div>
+                  <div class="textjuzhong" style="height: 25%;  width: 100%;">干体重  {{patientInfo.pureWeight}}  kg</div>
                   <div class="textjuzhong" style="height: 25%;  width: 100%;">透析器  {{patientInfo.txq}}</div>
                   <div class="textjuzhong" style="height: 25%;  width: 100%;">治疗模式  {{patientInfo.medMethod}}</div>
                   <div class="textjuzhong" style="height: 25%;  width: 100%;">灌流器  {{patientInfo.glq}}</div>
@@ -183,7 +183,6 @@
         <div class="footer" style="text-align: right;">
           <div class="fanhuikey" v-if="!dialogVisible" @click="fuxuan">
            返回
-            <!-- <el-button type="primary" :icon="RefreshRight" circle /> -->
           </div>
         </div>
     </div>
@@ -201,12 +200,11 @@
 import os from "os"
 import Speech from 'speak-tts'
 import { reactive,computed, toRefs, onMounted, watch, ref } from "vue"
-import { RefreshRight } from '@element-plus/icons-vue'
 import { sendPationCodeApi } from '../../samples/httpApi'
 import { formatDate } from '@/utils/formatTime'
 import { confingInfoStore } from '@/stores/StoresConfing'
 import {base64toFile} from '@/samples/faceApi'
-import { ElMessage } from 'element-plus'
+import { ElLoading, ElMessage } from 'element-plus'
 let trackerTask: any = null;
 // 标识用的画布
 const myCanvas = ref<HTMLCanvasElement | null>(null);
@@ -239,9 +237,9 @@
       base64toFile(imgSrc)
     }
     setTimeout(() => {
-      console.log('监测到人脸后3s')
+      console.log(configData.value.face_push+'秒跑一次人脸识别')
       trackerTask.run();
-    }, 3000);
+    }, configData.value.face_push*1000);
     // @ts-ignore
     if (typeof window.stream === "object") {
       myVideo.srcObject = null;
@@ -335,6 +333,7 @@
     }
     else {
       clearInterval(timer)
+      clockNum.value = patientInfoStore().viewNumber
       patientInfoStore().setpatientInfo({
         id: 0,
         code: '',
@@ -354,6 +353,13 @@
       })
       sockteStore().setxyjSockte({
         type: '血压计',
+        deviceName: '',
+        result: '',
+        resultTime: '',
+        state: 2
+      })
+      sockteStore().setfaceSockte({
+        type: '人脸识别',
         deviceName: '',
         result: '',
         resultTime: '',
@@ -672,7 +678,7 @@
 onMounted(() => {
   console.log('页面初始化', os.hostname())
   setTimeout(()=>{
-    console.log('3秒后执行')
+    console.log('5秒后执行')
     console.log('打印设置文件')
     console.log(configData.value)
       // 是否开启脸识别
@@ -703,7 +709,7 @@
     speech.value?.init().then(() => {
       console.log('语音初始化成功')
     })
-  },3000)
+  },8000)
 })
 
 

--
Gitblit v1.8.0