| | |
| | | {{patientInfo.pureWeight}} |
| | | </template> |
| | | |
| | | </template> |
| | | <template v-else> |
| | | <!-- 显示干体重 --> |
| | | <template v-if="configData.gantiziShow"> |
| | | {{patientInfo.pureWeight}} |
| | | |
| | | |
| | | </template> |
| | | <!-- 显示分区 --> |
| | | <template v-else> |
| | | <template v-if="patientInfo.isAfterMed===0"> |
| | | <div style="font-size: 50px"> {{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div> |
| | | </template> |
| | | <template v-else> |
| | | {{patientInfo.pureWeight}} |
| | | </template> |
| | | |
| | | <div style="font-size: 50px"> {{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div> |
| | | </template> |
| | | |
| | | </template> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | |
| | | <!-- 目标脱水量(L) --> |
| | | {{aimTSL}} |
| | | </template> |
| | | <template v-else> {{patientInfo.actuallyClliang}}</template> |
| | | <template v-else> |
| | | <span v-if="configData.isHiddenActuallyClliang" >/</span> |
| | | <span v-else>{{patientInfo.actuallyClliang}}</span> |
| | | </template> |
| | | <!-- 实际超滤量(L) --> |
| | | |
| | | </template> |
| | |
| | | const getUserMediaFail = ref(false) // 获取用户媒体失败 |
| | | let lsDateTime:any=new Date() |
| | | const msg = ref<string>("没识别到人脸..."); |
| | | const datetext=computed(()=>{ |
| | | return formatDate(new Date(),'YYYY-mm-dd WWW') |
| | | }) |
| | | const datetext=ref(formatDate(new Date(),'YYYY-mm-dd WWW')) |
| | | /**体重发送时候显示在界面的体重 */ |
| | | const weightInfoResult=ref() |
| | | let timer:any=new Date() |
| | |
| | | const clockNum=ref(60) |
| | | const timerNum=ref(0)//定时器数 |
| | | const aimTSL=ref('')// 目标脱水量, |
| | | const actuallyClliang=ref('') //实际超滤量 |
| | | const gao_ya=ref("")//高压 |
| | | const di_ya=ref("")//低压 |
| | | const mai_bu=ref("")//脉搏, |
| | |
| | | id: 0, |
| | | code: '', |
| | | name: '', |
| | | patientNamePyFull:'', |
| | | patientAvatarIcon: '', |
| | | deviceCode: '', |
| | | hemoCode: '', |
| | |
| | | }) |
| | | clockNum.value = patientInfoStore().viewNumber |
| | | aimTSL.value = '' |
| | | |
| | | gao_ya.value = '' |
| | | di_ya.value = '' |
| | | mai_bu.value = '' |
| | |
| | | // 人脸识别成功后 1查看是否开启测温 |
| | | // console.log(`患者信息识别成功:${patientInfo.value.name}`) |
| | | ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`) |
| | | let str = `${patientInfo.value.name}识别成功,分区:${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},` |
| | | let str = `${patientInfo.value.patientNamePyFull?patientInfo.value.patientNamePyFull:patientInfo.value.name}识别成功,分区 ${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},` |
| | | dialogVisible.value = false |
| | | speech.value?.speak({ text: str }).then(() => { |
| | | }) |
| | |
| | | else if (patientInfo.value.name === '') { |
| | | timer=new Date() |
| | | ipcRenderer.invoke('logger', '接收到的患者为空') |
| | | console.log('接收到的患者为空') |
| | | if (isUseFaceRecogService.value) { |
| | | dialogVisible.value = true |
| | | } |
| | |
| | | }).catch(re=>{ |
| | | ElMessage('结果发送失败') |
| | | console.log('结果发送失败') |
| | | ipcRenderer.invoke('logger', `结果发送失败:第${fasongNum.value}次,3秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `结果发送失败:${patientInfo.value.name}第${fasongNum.value}次,3秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `发送失败服务器返回异常:${JSON.stringify(re)}`) |
| | | if(fasongNum.value<3){ |
| | | setTimeout(sundModeTz,5000); |
| | | } |
| | |
| | | }).catch(re=>{ |
| | | ElMessage('结果发送失败') |
| | | console.log('结果发送失败') |
| | | ipcRenderer.invoke('logger', `结果发送失败:第${fasongNum.value}次,2秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `结果发送失败:${patientInfo.value.name}第${fasongNum.value}次,3秒后重新发送`) |
| | | ipcRenderer.invoke('logger', `发送失败服务器返回异常:${JSON.stringify(re)}`) |
| | | if(fasongNum.value<3){ |
| | | setTimeout(sundModeXyj,2000); |
| | | } |
| | |
| | | if(clockNum.value===0){ |
| | | fuxuan() |
| | | } |
| | | datetext.value= formatDate(new Date(),'YYYY-mm-dd WWW') |
| | | date.value=formatDate(new Date(),'YYYY-mm-dd HH:MM') |
| | | if(Number(date.value.substring(11,13))<12){ |
| | | timeShidaun.value='上午好!' |
| | |
| | | canvas.height = video.videoHeight |
| | | // 参数:图片,裁剪开始x坐标,裁剪开始y坐标,裁剪宽度,裁剪高度,目标x坐标,目标y坐标,目标宽度,目标高度 |
| | | // context.drawImage(image, 100, 100, 200, 200, 0, 0, 200, 200); |
| | | canvas.getContext('2d')?.drawImage(video, startPoint.x-10,startPoint.y-10,width+20,height+20,0,0,width+10,height+10) |
| | | canvas.getContext('2d')?.drawImage(video, startPoint.x-20,startPoint.y-20,width+60,height+60,20,20,width+60,height+60) |
| | | const imgSrc = canvas?.toDataURL('image/png'); |
| | | |
| | | return imgSrc |