diff --git a/src/views/projectFront/laborManage/personDetails.vue b/src/views/projectFront/laborManage/personDetails.vue index b6b6c288..1b399baf 100644 --- a/src/views/projectFront/laborManage/personDetails.vue +++ b/src/views/projectFront/laborManage/personDetails.vue @@ -3420,7 +3420,22 @@ export default { // } if (res.data.status == "SUCCESS") { if ((this.cropperEditTitle = "现场采集照裁剪")) { - this.workerInfo.fieldAcquisitionUrl = res.data.data[0].imageUrl; + 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; + } } else if ((this.cropperEditTitle = "身份证头像裁剪")) { this.workerInfo.idCardBigPhotoUrl = res.data.data[0].imageUrl; }