From 306657b7909983c4eb9694fb7e623d6bd2be5195 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Tue, 12 Jan 2021 09:08:26 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=88=A0=E9=99=A4=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/basicinfo/basicinfo.component.ts | 13 ++++++------- .../collection-tools/collection-tools.component.ts | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/app/ui/basicinfo/basicinfo.component.ts b/src/app/ui/basicinfo/basicinfo.component.ts index c1cf5b0..f4876ab 100644 --- a/src/app/ui/basicinfo/basicinfo.component.ts +++ b/src/app/ui/basicinfo/basicinfo.component.ts @@ -148,8 +148,8 @@ export class BasicinfoComponent implements OnInit { var auto = new AMap.AutoComplete(autoOptions); this.placeSearch = new AMap.PlaceSearch(); //构造地点查询类 auto.on("select", (e)=>{ - console.log(e) - console.log( this.newPositionMarker) + // console.log(e) + // console.log( this.newPositionMarker) this.newPositionMarker.setPosition([e.poi.location.lng,e.poi.location.lat]) this.markerPosition2 = {x: e.poi.location.lng, y: e.poi.location.lat} this.map.setCenter([e.poi.location.lng,e.poi.location.lat]); //设置地图中心点 @@ -158,7 +158,7 @@ export class BasicinfoComponent implements OnInit { }); if(this.isMapLabel){//如果已经标注单位坐标 - console.log('已标注单位位置') + // console.log('已标注单位位置') this.map.setCenter([this.unitinfo.location.x,this.unitinfo.location.y]); this.oldPositionMarker = new AMap.Marker({ position: [this.unitinfo.location.x,this.unitinfo.location.y], @@ -168,7 +168,7 @@ export class BasicinfoComponent implements OnInit { // 将 markers 添加到地图 this.map.add(this.oldPositionMarker); }else{ - console.log('未标注单位位置') + // console.log('未标注单位位置') this.map.setCity('广西'); } } @@ -178,7 +178,7 @@ export class BasicinfoComponent implements OnInit { this.isGisTopBox = false this.isGisTopBoxTwo = true if(this.isMapLabel){//如果已经标注单位坐标 - console.log('已标注单位位置') + // console.log('已标注单位位置') if(this.oldPositionMarker){ this.oldPositionMarker.setContent(this.oldPositionMarkerContent) @@ -232,7 +232,7 @@ export class BasicinfoComponent implements OnInit { }) }else{ - console.log('未标注单位位置') + // console.log('未标注单位位置') if(this.newPositionMarker){ this.newPositionMarker.setContent(this.oldPositionMarkerContent) } @@ -364,7 +364,6 @@ export class BasicinfoComponent implements OnInit { this.unitinfo = data resolve(this.unitinfo) - console.log(456789,this.unitinfo) this.selectedorganizationid = data.organizationId if(data.imageUrl){ this.imgsrc = data.imageUrl diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index f2eebc8..73b3c81 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -294,7 +294,7 @@ export class CollectionToolsComponent implements OnInit { formData.append("file",file) await new Promise((resolve,reject)=>{ this.http.delete(`/api/Objects/WebPlan2D/${companyId}/${file.name}?x-oss-process=image/resize,m_fixed,h_100,w_100`).subscribe(data=>{ - console.log('删除缩略图成功') + // console.log('删除缩略图成功') resolve('删除缩略图成功') }) })