-
@@ -151,8 +146,7 @@ import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //引入Loading服务
import { requestPost } from "@/js/dai/request";
import BasicInfoCommunity from "./basicInfoCommunity";
-import PeopleSearch from "./peopleSearch";
-import People from "./people";
+
import cptCard from "@/views/modules/visual/cpts/card";
import ScreenLoading from "@/views/modules/visual/cpts/loading";
@@ -384,59 +378,46 @@ const vueGis = {
this.toSubAgency('polygon', e)
},
- //下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区) people 点击详情
+ //下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区)
async toSubAgency (type, e, searchName) {
//点击小区neighborHood显示楼栋,点击非小区,进入下一级地图
- if (type === 'people') {
- this.runNum++
- this.runAgencyArray.push(this.orgData)
- this.orgLevel = 'people'
- this.selUserId = e
- this.orgId = ''
- this.orgData = {
- id: '',
- level: 'people',
- name: '人员档案'
- }
- this.searchName = searchName
- } else {
- if (!e) {
- return false
- }
- if (!e.selected[0]) {
- return false
+ if (!e) {
+ return false
+ }
+ if (!e.selected[0]) {
+ return false
+ }
+ this.runNum++
+ this.orgData.center = map.getView().getCenter()
+ this.orgData.zoom = map.getView().getZoom()
+ console.log('center', map.getView().getCenter())
+ console.log('zoom', map.getView().getZoom())
+
+ this.runAgencyArray.push(this.orgData)
+
+ this.subAgencyArray.forEach(item => {
+ if (item.id === e.selected[0].values_.id) {
+ this.orgId = item.id
+ this.orgLevel = item.level
+ this.orgData = item
}
- this.runNum++
- this.orgData.center = map.getView().getCenter()
- this.orgData.zoom = map.getView().getZoom()
- console.log('center', map.getView().getCenter())
- console.log('zoom', map.getView().getZoom())
-
- this.runAgencyArray.push(this.orgData)
-
- this.subAgencyArray.forEach(item => {
- if (item.id === e.selected[0].values_.id) {
- this.orgId = item.id
- this.orgLevel = item.level
- this.orgData = item
- }
+ });
+
+ if (this.orgLevel === 'neighborHood') {
+ this.loadList()
+ this.$nextTick(() => {
+ // 小区id,小区名称
+ this.$refs.ref_community.initData(this.orgData.id, this.orgData.name);
});
- if (this.orgLevel === 'neighborHood') {
- this.loadList()
- this.$nextTick(() => {
- // 小区id,小区名称
- this.$refs.ref_community.initData(this.orgData.id, this.orgData.name);
- });
+ } else {
+ this.refreshMap(true)
+ }
- } else {
- this.refreshMap(true)
- }
- }
},
@@ -530,11 +511,7 @@ const vueGis = {
this.center = this.orgData.center
this.zoom = this.orgData.zoom
- if (this.orgLevel === 'people') {
-
- }
-
- else if (this.orgLevel === 'neighborHood') {//显示小区
+ if (this.orgLevel === 'neighborHood') {//显示小区
} else {
@@ -951,7 +928,7 @@ const vueGis = {
...mapGetters(["clientHeight"])
},
- components: { BasicInfoCommunity, PeopleSearch, People, cptCard, ScreenLoading },
+ components: { BasicInfoCommunity, cptCard, ScreenLoading },
}
export default vueGis;
diff --git a/src/views/modules/visual/basicinfo/cpts/people-more.vue b/src/views/modules/visual/basicinfo/cpts/people-more.vue
index 6198cc91..b5a1ca9a 100644
--- a/src/views/modules/visual/basicinfo/cpts/people-more.vue
+++ b/src/views/modules/visual/basicinfo/cpts/people-more.vue
@@ -7,42 +7,45 @@
更多信息
-
+
-
+
-
+
所属网格:
{{ gridName }}
-
+
所属小区:
{{ xiaoquName }}
-
+
所属楼宇:
{{ louName }}-{{ danyuanName }}
-
+
所属家庭:
{{ homeName }}
-
+
{{ field.label }}:
- {{
+ ">{{
info[field.columnName] == null
? "--"
: getOptionLabel(
@@ -50,8 +53,7 @@
info[field.columnName],
field.itemType
)
- }}
+ }}
{{
info[field.columnName] == null ? "--" : info[field.columnName]
@@ -63,57 +65,43 @@
-
+
-
+
{{ item.label }}
-
-
+
-
-
+
+
{{ field.label }}:
- {{
+ ">{{
infoItem[field.columnName] == null
? "--"
: getOptionLabel(
@@ -121,8 +109,7 @@
infoItem[field.columnName],
field.itemType
)
- }}
+ }}
{{
infoItem[field.columnName] == null
@@ -132,21 +119,39 @@
-
-
+
+
+
+
{{ field.label }}:
- {{
+ ">{{
!allInfo[group.tableName] ||
allInfo[group.tableName][0][field.columnName] == null
? "--"
@@ -155,8 +160,7 @@
allInfo[group.tableName][0][field.columnName],
field.itemType
)
- }}
+ }}
{{
!allInfo[group.tableName] ||
@@ -175,6 +179,7 @@
+
+
+
+