fix:添加人员管理中编辑裁剪照片时判断是否为海康设备,是的话调用人脸评分
This commit is contained in:
parent
131ee75ea1
commit
d18297a6e9
@ -3420,7 +3420,22 @@ export default {
|
|||||||
// }
|
// }
|
||||||
if (res.data.status == "SUCCESS") {
|
if (res.data.status == "SUCCESS") {
|
||||||
if ((this.cropperEditTitle = "现场采集照裁剪")) {
|
if ((this.cropperEditTitle = "现场采集照裁剪")) {
|
||||||
|
if(this.isIscDevice){
|
||||||
|
let imgSize = Number(res.data.data[0].fileInfo.size / 1024);
|
||||||
|
console.log('经过vueCropper裁剪后', imgSize);
|
||||||
|
if (imgSize <= 10 || imgSize >= 200) {
|
||||||
|
this.$message.error("图片裁剪后大小不能超过200kb小于10kb,请重新裁剪或重新上传图片!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// this.checkImgLibrary(res.data.data[0].imageUrl);
|
||||||
|
if (this.isSzProject == 1) {
|
||||||
|
this.checkImgLibrary(res.data.data[0].imageUrl);
|
||||||
|
} else {
|
||||||
|
this.checkFace2(res.data.data[0].imageUrl);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
this.workerInfo.fieldAcquisitionUrl = res.data.data[0].imageUrl;
|
this.workerInfo.fieldAcquisitionUrl = res.data.data[0].imageUrl;
|
||||||
|
}
|
||||||
} else if ((this.cropperEditTitle = "身份证头像裁剪")) {
|
} else if ((this.cropperEditTitle = "身份证头像裁剪")) {
|
||||||
this.workerInfo.idCardBigPhotoUrl = res.data.data[0].imageUrl;
|
this.workerInfo.idCardBigPhotoUrl = res.data.data[0].imageUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user