diff --git a/hb_client/src/components/faceLogin/faceLogin.vue b/hb_client/src/components/faceLogin/faceLogin.vue index d1aaaf3..5f89627 100644 --- a/hb_client/src/components/faceLogin/faceLogin.vue +++ b/hb_client/src/components/faceLogin/faceLogin.vue @@ -128,7 +128,8 @@ ctx.drawImage(video, 0, 0, canvas.width, canvas.height); let base64Img = canvas.toDataURL('image/jpeg'); let img = base64Img.split(',')[1]; - let imgData = {base64:img}; + // let imgData = {base64:img}; + let imgData = {base64: img,tolerance:0.43}; faceLogin(imgData).then((res) => { if (res.code >= 200) { const isEdit = that.dialogType === "edit"; diff --git a/hb_client/src/components/faceLogin/tracking.vue b/hb_client/src/components/faceLogin/tracking.vue index a5edb53..48eb719 100644 --- a/hb_client/src/components/faceLogin/tracking.vue +++ b/hb_client/src/components/faceLogin/tracking.vue @@ -118,7 +118,9 @@ ctx.drawImage(video, 0, 0, canvas.width, canvas.height); let base64Img = canvas.toDataURL('image/jpeg'); let img = base64Img.split(',')[1]; - let imgData = {base64: img,tolerance:0.42}; + let tolerance = parseFloat(localStorage.getItem('tolerance')); + let imgData = {base64: img,tolerance}; + clockRecord(imgData).then((res) => { debugger; if (res.code === 200 && res.data.id) { diff --git a/hb_client/src/views/login/index.vue b/hb_client/src/views/login/index.vue index 411a472..c92c074 100644 --- a/hb_client/src/views/login/index.vue +++ b/hb_client/src/views/login/index.vue @@ -126,6 +126,7 @@ }, created() { this.getUP(); + localStorage.setItem('tolerance','0.42'); }, watch: { $route: { diff --git a/hb_client/src/views/wpm/firstCheck.vue b/hb_client/src/views/wpm/firstCheck.vue index edbd105..826ad2a 100644 --- a/hb_client/src/views/wpm/firstCheck.vue +++ b/hb_client/src/views/wpm/firstCheck.vue @@ -71,7 +71,7 @@ 首件检验 @@ -310,6 +310,8 @@ changeIndex(item,index) { this.activeIndex = index; this.listQuery.process = item.id; + this.subPlanList = []; + this.count = 0; this.getTableData(); },