+
{{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}}
+
{{'查看'}}
+
+
+
+
+
+ 加载中
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+