billisme 4 سال پیش
والد
کامیت
6d9353e33e
3فایلهای تغییر یافته به همراه26 افزوده شده و 4 حذف شده
  1. 8 0
      src/views/community/residentialManage.vue
  2. 0 1
      src/views/enterprise/staff.vue
  3. 18 3
      src/views/estate/car.vue

+ 8 - 0
src/views/community/residentialManage.vue

@@ -996,6 +996,14 @@ export default {
   },
   methods: {
     init(){
+      const tenantType = localStorage.getItem("tenantType");
+      if (tenantType == 0){
+        let residentialNameProp = this.findObject(this.optionBuilding.column, "residentialName");
+        residentialNameProp.label = "所属小区"
+      }else if (tenantType == 1){
+        let residentialNameProp = this.findObject(this.optionBuilding.column, "residentialName");
+        residentialNameProp.label = "所属区域"
+      }
       this.option = this.optionBuilding;
       this.treeData = [{ id: this.residentialId, type: this.typeParent, name: this.residentialName, children: [] }];
       this.onLoadBuilding(this.residentialId);

+ 0 - 1
src/views/enterprise/staff.vue

@@ -600,7 +600,6 @@
 
       },
       reviewHandler(row) {
-        debugger
         this.reviewDetail = row;
         this.reviewVisible = true;
         // debugger

+ 18 - 3
src/views/estate/car.vue

@@ -341,7 +341,12 @@
               //   ratio: 0.1
               // },
               action: "/api/blade-resource/oss/endpoint/put-file",
-              tip: "只能上传jpg/png图片,且不超过500kb"
+              tip: "只能上传jpg/png图片,且不超过500kb",
+              rules: [{
+                required: true,
+                message: "请上传车辆照片",
+                trigger: "blur"
+              }]
             },
             {
               label: "行驶证正面照",
@@ -360,7 +365,12 @@
               //   ratio: 0.1
               // },
               action: "/api/blade-resource/oss/endpoint/put-file",
-              tip: "只能上传jpg/png图片,且不超过500kb"
+              tip: "只能上传jpg/png图片,且不超过500kb",
+              rules: [{
+                required: true,
+                message: "请上传行驶证正面照",
+                trigger: "blur"
+              }]
             },
             {
               label: "行驶证反面照",
@@ -379,7 +389,12 @@
               //   ratio: 0.1
               // },
               action: "/api/blade-resource/oss/endpoint/put-file",
-              tip: "只能上传jpg/png图片,且不超过500kb"
+              tip: "只能上传jpg/png图片,且不超过500kb",
+              rules: [{
+                required: true,
+                message: "请上传行驶证反面照",
+                trigger: "blur"
+              }],
             }
           ]
         },