Shannon_mu hace 2 años
padre
commit
6581d7ea6d
Se han modificado 1 ficheros con 17 adiciones y 22 borrados
  1. 17 22
      operationSupport/src/views/ownerManagement/index.vue

+ 17 - 22
operationSupport/src/views/ownerManagement/index.vue

@@ -68,6 +68,12 @@
                         {{ item.buildingName }}-{{ CheckChinese(item.unitName, '单元') }}-{{ item.roomNumber }}
                     </div>
                 </template>
+                <template slot-scope="scope" slot="householdType">
+                    <div class="table-list" v-for="(item, index) in scope.row.houseList" :key="index">
+                        {{ householdTypefilt(item.householdType) }}
+                    </div>
+                </template>
+
                 <template slot-scope="scope" slot="communityName">
                     <div class="table-list" v-for="(item, index) in scope.row.houseList" :key="index">{{ item.communityName }}</div>
                 </template>
@@ -143,20 +149,7 @@ export default {
                 {
                     label: '住户类型',
                     prop: 'householdType',
-                    width: '100',
-                    format(val) {
-                        if (val == 1) {
-                            return '业主';
-                        } else if (val == 2) {
-                            return '亲属';
-                        } else if (val == 3) {
-                            return '租客';
-                        }else if (val == 4) {
-                            return '租户管理员';
-                        }else if (val == 5) {
-                            return '普通员工';
-                        }
-                    }
+                    slot: 'householdType'
                 },
                 {
                     label: '社区名称',
@@ -171,14 +164,7 @@ export default {
                 {
                     label: '状态',
                     prop: 'residentStatus',
-                    slot: 'residentStatus',
-                    format(val) {
-                        if (val == 1) {
-                            return '在住';
-                        } else {
-                            return '已注销';
-                        }
-                    }
+                    slot: 'residentStatus'
                 },
                 {
                     label: '入住时间',
@@ -362,6 +348,15 @@ export default {
             }
             return newVal;
         },
+        householdTypefilt(val) {
+            let v = '-';
+            this.householdType.map((item) => {
+                if (item.status == val) {
+                    v = item.label;
+                }
+            });
+            return v;
+        },
         checkDateType(time) {
             return !!time ? this.$moment(new Date(time)).format('YYYY-MM-DD') : '--';
         }