| | |
| | | data() { |
| | | return { |
| | | dialogFlag: false, |
| | | status: '' |
| | | status: '', |
| | | url: '' |
| | | } |
| | | }, |
| | | props: { |
| | |
| | | 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 || "人脸比对失败") |
| | |
| | | }, |
| | | handlerSuccess() { |
| | | this.dialogFlag = false |
| | | this.$emit('handlerSuccess') |
| | | this.$emit('handlerSuccess', this.url) |
| | | } |
| | | } |
| | | } |