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