chenyc
2023-07-26 96882efacd0fd9ce750e1b226fe046b52cd36df0
src/views/home/index.vue
@@ -18,16 +18,22 @@
                    </div>
                </div>
                <div style="width: 100%; height: 20%;" >
                    <div style="font-size: 2rem; color: #FFFFFF;margin-left: 1rem;" >
                    <div style="font-size: 2rem; color: #FFFFFF;margin-left: 0.5rem;" >
                      {{timeShidaun}}
                    </div>
                </div>
                <div style="width: 100%; height: 25%;padding-top: 0.5rem;" >
                    <div style="font-size: 2.5rem; color: #FFFFFF;margin-left: 1rem;">{{ patientInfo.name }}</div>
                <div style="width: 100%; height: 30%;" >
                    <div style="font-size: 2.5rem; color: #FFFFFF;margin-left: 0.5rem;">{{ patientInfo.name }}</div>
                </div>
                <div style="width: 100%; height: 25%; padding-top: 1rem;">
                    <div style="font-size: 1.5rem;  color: #FFFFFF;margin-left: 1rem;">透析号:{{ patientInfo.hemoCode }}</div>
                <div style="width: 100%; height: 20%;">
                    <div style="font-size: 1.5rem;  color: #FFFFFF;margin-left: 0.5rem;">透析号:{{ patientInfo.hemoCode }}</div>
                </div>
                <div v-if="is_ce_wen" style="width: 100%; height: 20%;">
                    <div style="font-size: 1.5rem;  color: #FFFFFF;margin-left: 0.5rem;">
                      体温:<span v-if="dangqian_wendu>30">{{dangqian_wendu}}°C</span>
                      <span v-else>      /</span>
                    </div>
                </div>
              </el-col>
            </el-row> 
            <el-row style="height: 30%;background: rgba(243, 247, 243, 0.3);border-radius: 8px; margin-top: 5%; font-size: 2rem;">
@@ -213,6 +219,7 @@
import { confingInfoStore } from '@/stores/StoresConfing'
import {base64toFile} from '@/samples/faceApi'
import{initPort} from '@/samples/portApi'
import{initPort as oumulongHbp9030 } from '@/samples/deviceApi/oumulong-HBP-9030'
import { ElLoading, ElMessage } from 'element-plus'
let trackerTask: any = null;
// 标识用的画布
@@ -328,6 +335,9 @@
// 患者
const patientInfo = computed(() => {
  return patientInfoStore().patientInfo
})
const dangqian_wendu=computed(()=>{
  return sockte.wendu
})
// 计数
const viewNumber = computed(() => {
@@ -593,6 +603,9 @@
    weight: weightInfo.value.result,
    bloodPressure: ''
  }
  if(dangqian_wendu.value>30){
    mode.temperature=dangqian_wendu.value
  }
  fasongNum.value++
  ipcRenderer.invoke('logger', `患者结果上传,第${fasongNum.value}次`)
  ipcRenderer.invoke('logger', '参数:'+JSON.stringify(mode))
@@ -621,6 +634,9 @@
    patientCode: patientInfo.value.code,
    weight: '',
    bloodPressure: xyjInfo.value.result
  }
  if(dangqian_wendu.value>30){
    mode.temperature=dangqian_wendu.value
  }
  fasongNum.value++
  ipcRenderer.invoke('logger', `患者结果上传,第${fasongNum.value}次`)
@@ -700,6 +716,10 @@
    if(is_ce_wen.value){
      initPort(configData.value.portPath,configData.value.baudRate)
    }
    // 是否开启血压计联机
    if(configData.value.Is_xyj){
      oumulongHbp9030(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate)
    }
      // 是否开启脸识别
    isUseFaceRecogService.value = configData.value.isUseFaceRecogService
    console.log('人脸识别',isUseFaceRecogService.value)