فهرست منبع

园区动态、出入记录根据账号显示字段名

slowslo 4 سال پیش
والد
کامیت
4e32949294
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 4 0
      src/views/estate/accessrecord.vue
  2. 1 1
      src/views/estate/article.vue

+ 4 - 0
src/views/estate/accessrecord.vue

@@ -338,8 +338,12 @@
     created() {
       const tenantType = localStorage.getItem("tenantType");
       if (tenantType == 0){
+        //社区
+        this.option.column[1].label="所属社区";
         // this.option.column.splice(2,0,this.residentialColumn)
       }else if (tenantType == 1){
+        //园区
+        this.option.column[1].label = "所属区域";
         this.option.column.splice(2,0,this.enterpriseColumn)
       }
     },

+ 1 - 1
src/views/estate/article.vue

@@ -175,7 +175,7 @@
               action: '/api/upload/putfile',
               tip: "只能上传jpg/png图片,且不超过500kb",
               rules: [{
-                required: false,
+                required: true,
                 message: "请输入图片",
                 trigger: "blur"
               }]