禅道bug修复

This commit is contained in:
BianLzhaoMin 2025-08-29 15:32:12 +08:00
parent 0f0656d42f
commit e06bb354e8
1 changed files with 9 additions and 9 deletions

View File

@ -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 = []
})
}
},
},