From 73b4da2eafad34d54fd33b261d49bcc1877ab26a Mon Sep 17 00:00:00 2001
From: bibi <541660090@qq.com>
Date: Thu, 3 Mar 2022 16:18:07 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BD=8F=E6=88=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../_houseHoldInfo/depend/config.js | 36 +-
.../Basic/EstateInfo/_houseHoldInfo/index.vue | 469 +++++++++---------
2 files changed, 275 insertions(+), 230 deletions(-)
diff --git a/src/views/Basic/EstateInfo/_houseHoldInfo/depend/config.js b/src/views/Basic/EstateInfo/_houseHoldInfo/depend/config.js
index cd5c628..c9e1e3e 100644
--- a/src/views/Basic/EstateInfo/_houseHoldInfo/depend/config.js
+++ b/src/views/Basic/EstateInfo/_houseHoldInfo/depend/config.js
@@ -6,17 +6,14 @@ export const columns = [
{
title: "住户姓名",
dataIndex: "name",
- width: "8%",
},
{
title: "住户手机号",
dataIndex: "tel",
- width: "10%",
},
{
title: "住户性别",
dataIndex: "sex",
- width: "7%",
customRender:function(sex){
switch (sex) {
case 1:
@@ -33,24 +30,45 @@ export const columns = [
{
title: "住户身份证号",
dataIndex: "idCard",
- width: "14%",
},
+ {
+ title: "操作",
+ dataIndex: "action",
+ key: "action",
+ width: "180",
+ fixed: "right",
+ scopedSlots: { customRender: "action" },
+ },
+]
+export const columns_house = [
{
title: "房屋名称",
dataIndex: "manageBuildingName",
scopedSlots: { customRender: "name" },
- width: "25%",
+ width: "44%",
},
{
title: "房屋类型",
dataIndex: "manageEstateTypeName",
- width: "10%",
+ width: "20%",
},
{
- title: "用户身份",
- key: "tags",
+ title: "住户身份",
dataIndex: "identity",
- scopedSlots: { customRender: "tags" },
+ customRender:function(identity){
+ switch (identity) {
+ case 1:
+ return '业主'
+ case 2:
+ return '业主亲属'
+ case 3:
+ return '租户'
+ case 4:
+ return '租户亲属'
+ default:
+ break;
+ }
+ },width: "20%",
},
{
title: "操作",
diff --git a/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue b/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue
index c535883..f276802 100644
--- a/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue
+++ b/src/views/Basic/EstateInfo/_houseHoldInfo/index.vue
@@ -5,14 +5,22 @@