diff --git a/src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue b/src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue index a00a224b1..8cf156b0a 100644 --- a/src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue +++ b/src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue @@ -147,44 +147,52 @@
-
{{item.houseTotal}}
+
{{item.houseTotal}}
房屋总数
-
{{item.zzHouseTotal}}
+
{{item.zzHouseTotal}}
{{item.zzHouseRatio+'%'}}
自住房屋数
-
{{item.czHouseTotal}}
+
{{item.czHouseTotal}}
{{item.czHouseRatio+'%'}}
出租房屋数
-
{{item.xzHouseTotal}}
+
{{item.xzHouseTotal}}
{{item.xzHouseRatio+'%'}}
闲置房屋数
-
{{item.wscHouseTotal}}
+
{{item.wscHouseTotal}}
{{item.wscHouseRatio+'%'}}
未出售房屋数
-
{{item.userTotal}}
+
{{item.userTotal}}
居民总数
-
{{item.czUserTotal}}
+
{{item.czUserTotal}}
{{item.czUserRatio+'%'}}
常住人口数
-
{{item.ldUserTotal}}
+
{{item.ldUserTotal}}
{{item.ldUserRatio+'%'}}
流动人口数
@@ -207,15 +215,15 @@ @@ -324,7 +332,9 @@ export default { rentType: '',//点击房屋数类型 type: '',//点击人员数类型 showPeopleList: false, - showHouseList: false + showHouseList: false, + selOrgId: '', + selOrgType: '', }; }, @@ -352,13 +362,27 @@ export default { }, //点击房屋数 - handleClickHouse (rentType) { + handleClickHouse (rentType, item) { + if (item) { + this.selOrgId = item.orgId + this.selOrgType = item.orgType + } else { + this.selOrgId = this.houseData.orgId + this.selOrgType = this.houseData.orgType + } this.toSubAgency('house') this.rentType = rentType this.showHouseList = true }, //点击人员数 - handleClickPeople (type) { + handleClickPeople (type, item) { + if (item) { + this.selOrgId = item.orgId + this.selOrgType = item.orgType + } else { + this.selOrgId = this.houseData.orgId + this.selOrgType = this.houseData.orgType + } this.toSubAgency('people') this.type = type this.showPeopleList = true @@ -395,10 +419,6 @@ export default { this.$refs.housePieChart.hideLoading() } - this.orgId = data.orgId - this.orgType = data.orgType - - } else { this.houseData = {} this.$message.error(msg);