diff --git a/src/views/dataBoard/overview/familyPortrait/index.vue b/src/views/dataBoard/overview/familyPortrait/index.vue
index ed82a3539..a9449c693 100644
--- a/src/views/dataBoard/overview/familyPortrait/index.vue
+++ b/src/views/dataBoard/overview/familyPortrait/index.vue
@@ -43,11 +43,21 @@ export default {
// },
// },
activated() {
- const { name, name2, id, buId, type } = this.$route.query;
- this.breadcrumbList[1].name = name2;
- this.breadcrumbList[2].name = name;
- const url = type === "building" ? `/homeDetails/index?id=${id}&buId=${buId}&typeB=${type}` : `/homeDetails/index?id=${buId}&buId=${buId}&typeB=${type}`;
- this.breadcrumbList[1].path = url;
+ const { name, name2, id, buId, type, orgId, type_name } = this.$route.query;
+ if (type === 'renfang') {
+ this.breadcrumbList[0].name = '人房数据';
+ this.breadcrumbList[0].path = '/dataBoard/renfang/index';
+ this.breadcrumbList[1].name = name2;
+ const url = `/dataBoard/renfang/house-list?org_id=${orgId}&type_name=${type_name}`;
+ this.breadcrumbList[1].path = url;
+ this.breadcrumbList[2].name = name;
+ } else {
+ this.breadcrumbList[1].name = name2;
+ this.breadcrumbList[2].name = name;
+ const url = type === "building" ? `/homeDetails/index?id=${id}&buId=${buId}&typeB=${type}` : `/homeDetails/index?id=${buId}&buId=${buId}&typeB=${type}`;
+ this.breadcrumbList[1].path = url;
+ }
+
},
};
@@ -62,6 +72,7 @@ export default {
padding-left: 26px;
margin-bottom: 20px;
}
+
.breadcrumb {
margin-bottom: 25px;
}
diff --git a/src/views/dataBoard/overview/resident/index.vue b/src/views/dataBoard/overview/resident/index.vue
index b1815382d..19571129b 100644
--- a/src/views/dataBoard/overview/resident/index.vue
+++ b/src/views/dataBoard/overview/resident/index.vue
@@ -1,10 +1,6 @@
@@ -12,6 +8,7 @@