fix:修改花名册临时人员上传现场采集照片时不弹出裁剪的bug

This commit is contained in:
Vce 2024-06-18 16:02:19 +08:00
parent 33dc504ffb
commit b713e9faef
2 changed files with 10 additions and 19 deletions

View File

@ -1784,18 +1784,6 @@ export default {
this.$store.state.FILEURL + imgInfo.imageUrl; this.$store.state.FILEURL + imgInfo.imageUrl;
this.cropperDialog = true; this.cropperDialog = true;
} }
// let imgStatus = result.file.size / 1024 < 500
// if (!imgStatus) {
// this.cropperOption.img =
// this.$store.state.FILEURL + imgInfo.imageUrl
// this.cropperDialog = true
// } else {
// if (this.isSzProject == 1) {
// this.checkImgLibrary(imgInfo.imageUrl)
// } else {
// this.checkFace(imgInfo.imageUrl)
// }
// }
break; break;
} }
} }

View File

@ -1261,13 +1261,16 @@ export default {
loading.close(); loading.close();
}) })
}else{ }else{
if(res.code == 200 && res.result.checkType == "1"){
this.cropperOption.img = this.cropperOption.img =
this.$store.state.FILEURL + imgInfo.imageUrl; this.$store.state.FILEURL + imgInfo.imageUrl;
this.cropperDialog = true; this.cropperDialog = true;
}else{ // if(res.code == 200 && res.result.checkType == "1"){
this.$message.error(res.result.message) // this.cropperOption.img =
} // this.$store.state.FILEURL + imgInfo.imageUrl;
// this.cropperDialog = true;
// }else{
// this.$message.error(res.result.message)
// }
} }
// let imgStatus = result.file.size / 1024 < 500 // let imgStatus = result.file.size / 1024 < 500
// if (!imgStatus) { // if (!imgStatus) {