Hwt 3 лет назад
Родитель
Сommit
aaf921696e

+ 23 - 0
operationSupport/src/views/ownerManagement/landlordManagement/stepPage/add.vue

@@ -639,6 +639,29 @@ export default {
     }
   },
   methods: {
+
+    uploadsuccess (response, file, fileList) {
+      this.$refs.uploaduserlogo.clearFiles();
+      if (0 === response.status) {
+
+        this.formData.facePictureUrl = response.data;
+      }
+    },
+    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;
+    },
+
+
+
     shareScopeChange (index) {
 
       var data = this.$refs[`getChecked${index}`][0].getCheckedNodes();

+ 3 - 2
operationSupport/src/views/ownerManagement/stepPage/newAdd.vue

@@ -614,7 +614,7 @@ export default {
   },
   computed: {
     nationArray () {
-      debugger
+
       return this.$store.getters['getNationArray'];
     },
     nativePlaceArray () {
@@ -651,6 +651,7 @@ export default {
     uploadsuccess (response, file, fileList) {
       this.$refs.uploaduserlogo.clearFiles();
       if (0 === response.status) {
+
         this.formData.facePictureUrl = response.data;
       }
     },
@@ -766,7 +767,7 @@ export default {
       }
 
       this.$refs['ruleForm'].validate((valid) => {
-        debugger;
+
         if (valid) {
           let url = '/czc-community/scResident/add';
           let params = this.formData;