人员管理(管理人员):新增上传现场采集人脸图片压缩逻辑
This commit is contained in:
parent
7d0ecdebe4
commit
776c34b6b1
@ -1221,7 +1221,6 @@
|
||||
{{ $t('message.laborMange.IdCardHead') }}
|
||||
</div>
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
action="uploadUrl"
|
||||
:on-remove="(file) => handleRemove(file, 3)"
|
||||
:on-preview="(file) => handlePreview(file, 3)"
|
||||
@ -1283,19 +1282,14 @@
|
||||
{{ $t('message.laborMange.spotFaceCollection') }}
|
||||
</div>
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
:action="uploadUrl"
|
||||
action="uploadUrl"
|
||||
:on-remove="(file) => handleRemove(file, 4)"
|
||||
:on-success="
|
||||
(res, file, filelist) => handleSuccess(res, 4, file)
|
||||
"
|
||||
:on-error="(file) => handleError(file, 4)"
|
||||
:on-preview="(file) => handlePreview(file, 4)"
|
||||
:beforeUpload="(file) => handleBeforeUpload(file, 4)"
|
||||
name="files"
|
||||
list-type="picture"
|
||||
:show-file-list="false"
|
||||
:file-list="fieldAcquisitionUrlFile"
|
||||
:http-request="(val) => handleUpload(val, 'livesFace')"
|
||||
>
|
||||
<el-button
|
||||
size="medium"
|
||||
@ -2881,22 +2875,6 @@ export default {
|
||||
this.personForm.idCardDownPhotoUrl = file.data[0].imageUrl
|
||||
this.idCardDownPhotoUrlFile = [arr]
|
||||
this.discernId(file.data[0].imageUrl, 1)
|
||||
} else if (type == 3) {
|
||||
this.personForm.idCardBigPhotoUrl = file.data[0].imageUrl
|
||||
this.idCardBigPhotoUrlFile = [arr]
|
||||
} else if (type == 4) {
|
||||
let imgStatus = file2.size / 1024 < 500
|
||||
if (!imgStatus) {
|
||||
this.cropperOption.img =
|
||||
this.$store.state.FILEURL + file.data[0].imageUrl
|
||||
this.cropperDialog = true
|
||||
} else {
|
||||
if (this.isSzProject == 1) {
|
||||
this.checkImgLibrary(file.data[0].imageUrl)
|
||||
} else {
|
||||
this.checkFace(file.data[0].imageUrl)
|
||||
}
|
||||
}
|
||||
} else if (type == 5) {
|
||||
this.contractImageFile.push(arr)
|
||||
let arrJoin = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user