34
chenyc
2023-05-19 5f863174c87662b967d4c5e123ea0cd3e6e11ebb
34
3个文件已修改
44 ■■■■ 已修改文件
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -1,6 +1,6 @@
{
  "name": "sign-tool",
  "version": "2.6.2",
  "version": "2.6.3",
  "icon": "public/favicon.ico",
  "main": "dist/electron/main/index.js",
  "author": "",
src/views/home/index.vue
@@ -106,6 +106,7 @@
    }
    //发送消除某些状态
    const fuxuan=()=>{
      console.log('返回---')
      const datetimeCON = patientInfoStore().patientInfo.datetime
      // 获取是否是一台主机连2个设备
      const islinkDouble=confingInfoStore().confingInfo.islinkDouble
@@ -130,6 +131,13 @@
        })
        sockteStore().setxyjSockte({
          type: '血压计',
          deviceName: '',
          result: '',
          resultTime: '',
          state: 2
        })
        sockteStore().setfaceSockte({
          type: '人脸识别',
          deviceName: '',
          result: '',
          resultTime: '',
@@ -181,7 +189,7 @@
        if (patientInfo.value.id !== 0 && patientInfo.value.name !== '' && patientInfo.value.isScheduled === 1) {
          // console.log(`患者信息识别成功:${patientInfo.value.name}`)
          ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`)
          let str = `${patientInfo.value.name}识别成功。`
          let str = `${patientInfo.value.name}识别成功。床号:${patientInfo.value.deviceNo}`
          state.dialogVisible = false
          speech.value?.speak({ text: str }).then(() => {
          })
@@ -440,7 +448,7 @@
      },3000)
    })
    return {
      ...toRefs(state),isUseFaceRecogService, guyanbi, loginRef, isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, inputChabge
      ...toRefs(state),isUseFaceRecogService,fuxuan, guyanbi, loginRef, isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, inputChabge
    }
  }
}
@@ -454,7 +462,7 @@
            <h4>人脸识别中。。。</h4>
          </div>
        </template>
        <login ref="loginRef" />
        <login ref="loginRef" :dialogVisible="dialogVisible" />
      </el-dialog>
    </div>
    <el-dialog title="提示" v-model="netLink" width="30%">
@@ -620,6 +628,9 @@
        </div>
      </el-col>
    </el-row>
    <div class="chongzhi" @click="fuxuan">
      返回
    </div>
  </div>
</template>
@@ -630,6 +641,19 @@
  margin: 0;
}
.chongzhi{
  width: 100px;
  height: 100px;
  background: #769AFF;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 100px;
  text-align: center;
  position:fixed;
    bottom:0px;
    right:0px;
  border-radius: 50px;
}
.devcont{
  width: 100%;
  height: 99%;
src/views/login/index.vue
@@ -26,7 +26,12 @@
import { confingInfoStore } from "@/stores/StoresConfing";
const msg = ref<string>("没识别到人脸...");
const props = defineProps({
  dialogVisible:{
    type:Boolean,
    default:false
  }
})
let trackerTask: any = null;
const inputCode=ref('')
const inputRef = ref()
@@ -57,9 +62,12 @@
    thisContext.drawImage(myVideo, 0,0, 250, 200);
    imgSrc = myCanvas?.toDataURL('image/png');
    // 转文件
    // 识别框显示才能到传阿里云识别
    if(props.dialogVisible){
    base64toFile(imgSrc)
    }
    setTimeout(() => {
      console.log('监测到人脸后1s')
      console.log('监测到人脸后3s')
      trackerTask.run();
    }, 3000);
    // @ts-ignore