| | |
| | | <img class="image_1" style="margin-left: 20px;display: inline-block;" referrerpolicy="no-referrer" src="@/assets/logo.png" /> |
| | | |
| | | </div> |
| | | <div class="titlecss">自助签到系统</div> |
| | | <div @click="yanzhengTUpian" class="titlecss">自助签到系统</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col v-if="dialogVisible" :span="12" style="text-align: right;padding-top: 10px;"> |
| | |
| | | 返回 |
| | | </div> |
| | | </div> |
| | | <el-dialog |
| | | v-model="centerDialogVisible" |
| | | title="" |
| | | width="40%" |
| | | align-center |
| | | > |
| | | <span> |
| | | <div> |
| | | 找到该程序根目录下imgs/1708401593426.png下路径 把图片名改成一致 就可以测试了, |
| | | </div> |
| | | |
| | | <el-button @click="yanzhengTUpianClick">验证</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | |
| | | </div> |
| | |
| | | import { sendPationCodeApi } from '../../samples/httpApi' |
| | | import { formatDate,jgTime,isworkTime } from '@/utils/formatTime' |
| | | import { confingInfoStore } from '@/stores/StoresConfing' |
| | | import {base64toFile} from '@/samples/faceApi' |
| | | import {base64toFile,yanzhengimg} from '@/samples/faceApi' |
| | | import{initPort} from '@/samples/portApi' |
| | | import{initPort as oumulongHbp9030 } from '@/samples/deviceApi/oumulong-HBP-9030' |
| | | import{initPort as TM2655VP} from '@/samples/deviceApi/TM2655VP' |
| | |
| | | import{initPort as taiHengM523 } from '@/samples/deviceApi/taiHengM523' |
| | | import{initPort as XK3190A12 } from '@/samples/deviceApi/XK3190A12' |
| | | import {initPort as mbp7000} from '@/samples/deviceApi/mbp7000' |
| | | import {initPort as mbp9020} from '@/samples/deviceApi/mbp-9020' |
| | | import {initPort as rbp9000c} from '@/samples/deviceApi/RBP-9000c' |
| | | |
| | | import {initPort as M503} from '@/samples/deviceApi/M503' |
| | | import {initPort as seca102} from '@/samples/deviceApi/seca102' |
| | | // 引入模块 |
| | | import config from '../../../package.json' |
| | | import { Delete, Download, Plus, ZoomIn } from '@element-plus/icons-vue' |
| | | |
| | | |
| | | // 读取体重文件 |
| | | import{todatatzs } from '@/samples/deviceApi/seca101' |
| | | import {ElMessage } from 'element-plus' |
| | | import {ElMessage, UploadFile, UploadInstance, UploadProps } from 'element-plus' |
| | | const { proxy } = getCurrentInstance() as any; |
| | | // 人脸检测对象 |
| | | const options = new SsdMobilenetv1Options({ |
| | |
| | | const gao_ya=ref("")//高压 |
| | | const di_ya=ref("")//低压 |
| | | const mai_bu=ref("")//脉搏, |
| | | |
| | | const tupianpath=ref('') //验证图片地址 |
| | | const centerDialogVisible=ref(false) |
| | | const uploadRef = ref<UploadInstance>() |
| | | const fileList=ref([]) |
| | | const imageUrl = ref('') |
| | | const dialogImageUrl = ref('') |
| | | // 打开图片验证 |
| | | const yanzhengTUpian=()=>{ |
| | | |
| | | centerDialogVisible.value=true |
| | | } |
| | | //验证图片 |
| | | const yanzhengTUpianClick=()=>{ |
| | | const path = './imgs/1708401593426.png' |
| | | yanzhengimg(path) |
| | | } |
| | | const tzjs=computed(()=>{ |
| | | if(weightInfo.value.result!=='0'&&weightInfo.value.result!==undefined&&weightInfo.value.result!==null){ |
| | | return (patientInfo.value.preWeight-Number(weightInfo.value.result)).toFixed(1) |
| | |
| | | } |
| | | const updateChengxu=()=>{ |
| | | console.log('检查更新') |
| | | ipcRenderer.invoke("check-update"); |
| | | if(configData.value.isLanFace){ |
| | | console.log('是内网不能检查更新') |
| | | }else{ |
| | | ipcRenderer.invoke("check-update"); |
| | | } |
| | | |
| | | } |
| | | onMounted(() => { |
| | | console.log('页面初始化', os.hostname()) |
| | |
| | | TM2655VP(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | | }else if(configData.value.xyj_type==='mbp7000'){ |
| | | mbp7000(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | | }else if(configData.value.xyj_type==='mbp9020'){ |
| | | mbp9020(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | | } |
| | | else if(configData.value.xyj_type==='RBP-9000c'){ |
| | | rbp9000c(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | | } |
| | | else{ |
| | | oumulongHbp9030(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate) |
| | |
| | | const resizedResult = resizeResults(result, dims) |
| | | const box = resizedResult.box |
| | | // 不要小头像 |
| | | if(box._height<120) return detectFace() |
| | | console.log('000') |
| | | const h=configData.value.imgHeight===undefined?140:configData.value.imgHeight |
| | | console.log('000',h) |
| | | if(box._height<h) return detectFace() |
| | | //检测框是否在取景框内 |
| | | // if (!checkInViewFinder(box)) return detectFace() |
| | | // drawViewFinder() |
| | |
| | | // console.log(image) |
| | | if(dialogVisible.value&&X>configData.value.face_push&&isworkTime(new Date())){ |
| | | lsDateTime=new Date() |
| | | console.log(X,'上传阿里识别间隔') |
| | | console.log(X,'上传图片间隔') |
| | | base64toFile(image) |
| | | } |
| | | return detectFace() |