|
|
|
@ -1175,6 +1175,11 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
this.snackBar.open(`搜索目标结果为${data.items.length}个`, '确定', config); |
|
|
|
|
} else { //高德api 搜索
|
|
|
|
|
placeSearch.search(that.searchText, (status, result)=>{ |
|
|
|
|
if (status != "complete") { |
|
|
|
|
this.snackBar.open(`搜索目标结果为0个`, '确定', config); |
|
|
|
|
console.log(status,result) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (result.poiList.pois.length) { |
|
|
|
|
let resultList = [] |
|
|
|
|
result.poiList.pois.forEach((element: any) => { |
|
|
|
@ -1295,6 +1300,13 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//基本信息
|
|
|
|
|
baseInformation(e) { |
|
|
|
|
if (!e.id) { |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('暂无单位数据', '确定', config); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.leftDivState = true |
|
|
|
|
this.showLeftDiv = true |
|
|
|
|
this.appLeft.selectBaseInfo(e) //调用子组件方法
|
|
|
|
|