|
|
@ -14,14 +14,19 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="div_content"> |
|
|
|
<people v-if="orgLevel==='people'" |
|
|
|
:uid="selUserId" |
|
|
|
ref="ref_people"></people> |
|
|
|
|
|
|
|
<div v-show="orgLevel!=='people' " |
|
|
|
class="div_content"> |
|
|
|
|
|
|
|
<basic-info-community v-show="orgLevel==='neighborHood'" |
|
|
|
@toSubAgency="toSubAgency" |
|
|
|
ref="ref_community" |
|
|
|
@refreshInfoList="refreshInfoList"></basic-info-community> |
|
|
|
|
|
|
|
<div v-show="orgLevel!=='neighborHood'" |
|
|
|
<div v-show="orgLevel!=='people' && orgLevel!=='neighborHood'" |
|
|
|
class="div_map" |
|
|
|
id="map" |
|
|
|
ref="map"> |
|
|
@ -147,6 +152,7 @@ import { Loading } from 'element-ui'; //引入Loading服务 |
|
|
|
import { requestPost } from "@/js/dai/request"; |
|
|
|
import BasicInfoCommunity from "./basicInfoCommunity"; |
|
|
|
|
|
|
|
import People from "./people"; |
|
|
|
import cptCard from "@/views/modules/visual/cpts/card"; |
|
|
|
import ScreenLoading from "@/views/modules/visual/cpts/loading"; |
|
|
|
|
|
|
@ -378,11 +384,24 @@ const vueGis = { |
|
|
|
this.toSubAgency('polygon', e) |
|
|
|
}, |
|
|
|
|
|
|
|
//下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区) |
|
|
|
//下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区) people 点击详情 |
|
|
|
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 |
|
|
@ -417,7 +436,7 @@ const vueGis = { |
|
|
|
this.refreshMap(true) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
@ -511,7 +530,11 @@ const vueGis = { |
|
|
|
this.center = this.orgData.center |
|
|
|
this.zoom = this.orgData.zoom |
|
|
|
|
|
|
|
if (this.orgLevel === 'neighborHood') {//显示小区 |
|
|
|
if (this.orgLevel === 'people') { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (this.orgLevel === 'neighborHood') {//显示小区 |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
@ -928,7 +951,7 @@ const vueGis = { |
|
|
|
...mapGetters(["clientHeight"]) |
|
|
|
|
|
|
|
}, |
|
|
|
components: { BasicInfoCommunity, cptCard, ScreenLoading }, |
|
|
|
components: { BasicInfoCommunity, People, cptCard, ScreenLoading }, |
|
|
|
} |
|
|
|
export default vueGis; |
|
|
|
</script> |
|
|
|