+
{{userData.userTotal}}
居民总数
-
+
{{userData.czUserTotal}}
常住人口数
-
+
{{userData.ldUserTotal}}
流动人口数
@@ -196,6 +205,21 @@
+
+
+
+
+
+
+
@@ -208,6 +232,8 @@ import screenEchartsFrame from "../../components/screen-echarts-frame";
import ScreenLoading from "@/views/modules/visual/components/screen-loading";
import { housePieOption } from './options'
import { userPieOption } from './userOptions'
+import houseList from './houseList'
+import peopleList from './peopleList'
import * as echarts from 'echarts';
export default {
@@ -216,7 +242,9 @@ export default {
cptCard,
screenTable,
screenEchartsFrame,
- ScreenLoading
+ ScreenLoading,
+ houseList,
+ peopleList
},
data () {
return {
@@ -293,6 +321,11 @@ export default {
zoom: null,
parentPolygon: [],
+ rentType: '',//点击房屋数类型
+ type: '',//点击人员数类型
+ showPeopleList: false,
+ showHouseList: false
+
};
},
async mounted () {
@@ -316,9 +349,21 @@ export default {
this.getHousePie()
this.getUserPie()
+ },
-
+ //点击房屋数
+ handleClickHouse (rentType) {
+ this.toSubAgency('house')
+ this.rentType = rentType
+ this.showHouseList = true
+ },
+ //点击人员数
+ handleClickPeople (type) {
+ this.toSubAgency('people')
+ this.type = type
+ this.showPeopleList = true
},
+
housePieInitOk (dom) {
console.log('pie准备好了', dom)
this.housePieChartS = dom
@@ -350,6 +395,9 @@ export default {
this.$refs.housePieChart.hideLoading()
}
+ this.orgId = data.orgId
+ this.orgType = data.orgType
+
} else {
this.houseData = {}
@@ -595,33 +643,36 @@ export default {
async handleToSubAgency (item) {
if (!this.dataLoading) {
- this.toSubAgency(item)
+ this.toSubAgency('subAgency', item)
await this.getApiData()
}
-
-
-
},
//下钻到下一级
- async toSubAgency (item) {
-
+ async toSubAgency (type, item) {
this.runNum++
let obj = {
orgId: this.orgId,
orgType: this.orgType,
orgName: this.orgName,
+ type: type
}
+ this.runAgencyArray.push(obj)
+ if (type === 'subAgency') {
- this.runAgencyArray.push(obj)
+ this.orgId = item.orgId
+ this.orgType = item.orgType
+ this.orgName = item.orgName
- this.orgId = item.orgId
- this.orgType = item.orgType
- this.orgName = item.orgName
+ } else if (type === 'house') {
+ this.orgName = '房屋列表'
+ } else if (type === 'people') {
+ this.orgName = '人员列表'
+ }
},
@@ -629,6 +680,7 @@ export default {
//返回所选组织
handleClickAgency (index) {
+
const cutNum = this.runAgencyArray.length - index//要减去的长度
this.runNum = this.runNum - cutNum
@@ -642,6 +694,14 @@ export default {
this.orgId = orgData.orgId
this.orgType = orgData.orgType
this.orgName = orgData.orgName
+ this.showHouseList = false
+ this.showPeopleList = false
+ // if (orgData.type === 'house') {
+ // this.showHouseList = false
+ // }
+ // if (orgData.type === 'people') {
+ // this.showPeopleList = false
+ // }
this.getApiData()
diff --git a/src/views/modules/visual/basicinfo/houseStatic/peopleList.vue b/src/views/modules/visual/basicinfo/houseStatic/peopleList.vue
new file mode 100644
index 000000000..edb79cf8d
--- /dev/null
+++ b/src/views/modules/visual/basicinfo/houseStatic/peopleList.vue
@@ -0,0 +1,235 @@
+
+
+
+
+
+

+
{{tableTitle}}
+
+
+
+
+
+
+
{{item.sort}}
+
{{item.name}}
+
{{item.gridName}}
+
{{item.neighborHoodName + item.buildNum}}
+
+
{{item.mobile}}
+
{{item.idCard}}
+
{{item.gender}}
+
{{item.birthday}}
+
{{'查看'}}
+
+
+
+
+
+ 加载中
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 69c109df78eab5e7db8c3733ec66cd0aad81bad4 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Thu, 8 Sep 2022 09:14:31 +0800
Subject: [PATCH 08/17] =?UTF-8?q?=E4=BA=BA=E6=88=BF=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../scss/modules/visual/houseStatic.scss | 2 +
src/assets/scss/modules/visual/people.scss | 4 ++
.../basicinfo/houseStatic/houseList.vue | 1 +
.../basicinfo/houseStatic/houseMore.vue | 59 +++++++++++--------
4 files changed, 43 insertions(+), 23 deletions(-)
diff --git a/src/assets/scss/modules/visual/houseStatic.scss b/src/assets/scss/modules/visual/houseStatic.scss
index 084e53f0e..d02c6e7fa 100644
--- a/src/assets/scss/modules/visual/houseStatic.scss
+++ b/src/assets/scss/modules/visual/houseStatic.scss
@@ -298,6 +298,7 @@
font-family: PingFang SC;
font-weight: bold;
color: #FFFFFF;
+ cursor: pointer;
}
.zz{
@@ -342,6 +343,7 @@
font-weight: 400;
color: #FFFFFF;
min-width:62px;
+
}
.table-table-title{
diff --git a/src/assets/scss/modules/visual/people.scss b/src/assets/scss/modules/visual/people.scss
index 1d0bc4fa8..b624578ba 100644
--- a/src/assets/scss/modules/visual/people.scss
+++ b/src/assets/scss/modules/visual/people.scss
@@ -243,6 +243,10 @@
border-radius: 3px;
}
}
+
+ .item2{
+ width: 49%;
+ }
}
.line {
diff --git a/src/views/modules/visual/basicinfo/houseStatic/houseList.vue b/src/views/modules/visual/basicinfo/houseStatic/houseList.vue
index 72abe99c1..162621949 100644
--- a/src/views/modules/visual/basicinfo/houseStatic/houseList.vue
+++ b/src/views/modules/visual/basicinfo/houseStatic/houseList.vue
@@ -76,6 +76,7 @@