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