From 9a6cd220224fd3a9a6c84b5bb37c6410a470969f Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 17 三月 2026 17:53:21 +0800
Subject: [PATCH] 考点核验
---
src/views/h5/faceAuth/components/auditDialog.vue | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/h5/faceAuth/components/auditDialog.vue b/src/views/h5/faceAuth/components/auditDialog.vue
index 15b15e8..e7495eb 100644
--- a/src/views/h5/faceAuth/components/auditDialog.vue
+++ b/src/views/h5/faceAuth/components/auditDialog.vue
@@ -66,7 +66,8 @@
data() {
return {
dialogFlag: false,
- status: ''
+ status: '',
+ url: ''
}
},
props: {
@@ -99,16 +100,15 @@
methods: {
async submitAudit() {
this.status = 'auditing'
- const url = await uploadByBase64(this.base64 ,'浜鸿劯鐓х墖')
- if (!url) {
+ this.url = await uploadByBase64(this.base64 ,'浜鸿劯鐓х墖')
+ if (!this.url) {
this.status = 'fail'
return
}
- const params = { faceImgPath: url }
+ const params = { faceImgPath: this.url }
this.$axios.get('/system/auth/staff/checkin/face-match', { params }).then(res => {
if (res.data.code == 0) {
- // this.status = res.data.data ? 'success' : 'fail'
- this.status = 'success'
+ this.status = res.data.data ? 'success' : 'fail'
} else {
this.status = 'fail'
this.$message.error(res.data.msg || "浜鸿劯姣斿澶辫触")
@@ -119,7 +119,7 @@
},
handlerSuccess() {
this.dialogFlag = false
- this.$emit('handlerSuccess')
+ this.$emit('handlerSuccess', this.url)
}
}
}
--
Gitblit v1.8.0