|
@@ -1687,6 +1687,8 @@ export default {
|
|
|
|
|
|
|
|
if (this.term) {
|
|
if (this.term) {
|
|
|
this.form.scyEndTime = "长期";
|
|
this.form.scyEndTime = "长期";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.form.scyEndTime = null;
|
|
|
}
|
|
}
|
|
|
if (!this.legalHandle) {
|
|
if (!this.legalHandle) {
|
|
|
this.form.legalHandles = "1";
|
|
this.form.legalHandles = "1";
|
|
@@ -1789,18 +1791,18 @@ export default {
|
|
|
handleAvatarSuccess(res, file) {
|
|
handleAvatarSuccess(res, file) {
|
|
|
this.imageUrl = URL.createObjectURL(file.raw);
|
|
this.imageUrl = URL.createObjectURL(file.raw);
|
|
|
},
|
|
},
|
|
|
- beforeAvatarUpload(file) {
|
|
|
|
|
- const isJPG = file.type === "image/jpeg";
|
|
|
|
|
- const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
|
|
|
|
+ // beforeAvatarUpload(file) {
|
|
|
|
|
+ // const isJPG = file.type === "image/jpeg";
|
|
|
|
|
+ // const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
|
|
|
|
|
- if (!isJPG) {
|
|
|
|
|
- this.$message.error("上传头像图片只能是 JPG 格式!");
|
|
|
|
|
- }
|
|
|
|
|
- if (!isLt2M) {
|
|
|
|
|
- this.$message.error("上传头像图片大小不能超过 2MB!");
|
|
|
|
|
- }
|
|
|
|
|
- return isJPG && isLt2M;
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // if (!isJPG) {
|
|
|
|
|
+ // this.$message.error("上传头像图片只能是 JPG 格式!");
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if (!isLt2M) {
|
|
|
|
|
+ // this.$message.error("上传头像图片大小不能超过 2MB!");
|
|
|
|
|
+ // }
|
|
|
|
|
+ // return isJPG && isLt2M;
|
|
|
|
|
+ // },
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|