| | |
| | | </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> |
| | |
| | | <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> |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | } |
| | | else { |
| | | clearInterval(timer) |
| | | clockNum.value = patientInfoStore().viewNumber |
| | | patientInfoStore().setpatientInfo({ |
| | | id: 0, |
| | | code: '', |
| | |
| | | }) |
| | | sockteStore().setxyjSockte({ |
| | | type: '血压计', |
| | | deviceName: '', |
| | | result: '', |
| | | resultTime: '', |
| | | state: 2 |
| | | }) |
| | | sockteStore().setfaceSockte({ |
| | | type: '人脸识别', |
| | | deviceName: '', |
| | | result: '', |
| | | resultTime: '', |
| | |
| | | onMounted(() => { |
| | | console.log('页面初始化', os.hostname()) |
| | | setTimeout(()=>{ |
| | | console.log('3秒后执行') |
| | | console.log('5秒后执行') |
| | | console.log('打印设置文件') |
| | | console.log(configData.value) |
| | | // 是否开启脸识别 |
| | |
| | | speech.value?.init().then(() => { |
| | | console.log('语音初始化成功') |
| | | }) |
| | | },3000) |
| | | },8000) |
| | | }) |
| | | |
| | | |