From d18297a6e9777e7ee6741b1804b29b932092b000 Mon Sep 17 00:00:00 2001 From: Vce Date: Mon, 24 Jun 2024 11:14:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=AD=E7=BC=96=E8=BE=91=E8=A3=81=E5=89=AA?= =?UTF-8?q?=E7=85=A7=E7=89=87=E6=97=B6=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=B8=BA=E6=B5=B7=E5=BA=B7=E8=AE=BE=E5=A4=87=EF=BC=8C=E6=98=AF?= =?UTF-8?q?=E7=9A=84=E8=AF=9D=E8=B0=83=E7=94=A8=E4=BA=BA=E8=84=B8=E8=AF=84?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectFront/laborManage/personDetails.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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; }