禅道bug修复
This commit is contained in:
parent
0f0656d42f
commit
e06bb354e8
|
|
@ -15,7 +15,7 @@
|
|||
>
|
||||
<el-input
|
||||
clearable
|
||||
style="width: 90%"
|
||||
style="width: 85%"
|
||||
placeholder="请输入身份证读卡器地址"
|
||||
v-model="idCardReaderForm.idCardReaderAddress"
|
||||
/>
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
<span
|
||||
class="tip-text"
|
||||
style="
|
||||
width: 10%;
|
||||
width: 15%;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
"
|
||||
|
|
@ -196,6 +196,7 @@
|
|||
:limit="1"
|
||||
:file-size="10"
|
||||
:multiple="true"
|
||||
ref="faceImgRef"
|
||||
@onUploadChange="onUploadChangeFaceImg"
|
||||
:file-type="['jpg', 'png', 'jpeg']"
|
||||
:file-list.sync="idCardInfoForm.faceImg"
|
||||
|
|
@ -1675,18 +1676,17 @@ export default {
|
|||
},
|
||||
|
||||
// 人脸照片验证
|
||||
async onUploadChangeFaceImg(fileList) {
|
||||
onUploadChangeFaceImg(fileList) {
|
||||
if (fileList.length > 0) {
|
||||
// 走验证逻辑
|
||||
|
||||
const formData = new FormData()
|
||||
formData.append('file', fileList[0].raw)
|
||||
const res = await checkFaceImageAPI(formData)
|
||||
|
||||
if (res.code !== 200) {
|
||||
this.$modal.msgError(res.msg)
|
||||
this.idCardInfoForm.faceImg = []
|
||||
}
|
||||
checkFaceImageAPI(formData)
|
||||
.then((res) => {})
|
||||
.catch((err) => {
|
||||
this.idCardInfoForm.faceImg = []
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue