-
@@ -74,7 +71,7 @@
-->
@@ -328,9 +325,6 @@ const vueGis = {
},
- handleSearch () {
- this.toSubAgency('search')
- },
//获取右侧infolist数据
async loadList () {
@@ -390,7 +384,7 @@ const vueGis = {
this.toSubAgency('polygon', e)
},
- //下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区) search 点击搜索 people 点击详情
+ //下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区) people 点击详情
async toSubAgency (type, e, searchName) {
//点击小区neighborHood显示楼栋,点击非小区,进入下一级地图
@@ -407,20 +401,6 @@ const vueGis = {
}
this.searchName = searchName
- } else if (type === 'search') {
- this.runNum++
- this.runAgencyArray.push(this.orgData)
- this.orgLevel = 'search'
- this.orgId = ''
- this.orgData = {
- id: '',
- level: 'search',
- name: '搜索'
- }
- this.$nextTick(() => {
- this.$refs.ref_search.reset();
- });
-
} else {
if (!e) {
@@ -552,12 +532,9 @@ const vueGis = {
if (this.orgLevel === 'people') {
- } else if (this.orgLevel === 'search') {
- this.$nextTick(() => {
- this.$refs.ref_search.loadByName(this.searchName);
- });
+ }
- } else if (this.orgLevel === 'neighborHood') {//显示小区
+ else if (this.orgLevel === 'neighborHood') {//显示小区
} else {
diff --git a/src/views/modules/visual/basicinfo/peopleSearch.vue b/src/views/modules/visual/basicinfo/peopleSearch.vue
index 7e44c6d3b..19c2d9bcd 100644
--- a/src/views/modules/visual/basicinfo/peopleSearch.vue
+++ b/src/views/modules/visual/basicinfo/peopleSearch.vue
@@ -92,9 +92,9 @@ export default {
loadByName (searchName) {
this.searchName = searchName
- if (this.searchName) {
- this.loadList()
- }
+ // if (this.searchName) {
+ this.loadList()
+ // }
},
reset () {
@@ -120,7 +120,7 @@ export default {
this.$message.error(msg)
}
} else {
-
+ this.$message.info('请输入姓名')
}
},