|
|
|
@ -15,10 +15,12 @@ export class WaterAuditComponent implements OnInit {
|
|
|
|
|
' <img style="width:20px;height:24px" src="/assets/images/定位.png">' + |
|
|
|
|
'</div>' |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
console.log(7777,this.waterData) |
|
|
|
|
|
|
|
|
|
this.selectedWaterTypeIndex = this.waterData.waterSourceType |
|
|
|
|
this.waterData.detailData = JSON.parse(this.waterData.detailData) |
|
|
|
|
this.fireCockData = this.waterData.detailData |
|
|
|
|
console.log(789, this.fireCockData) |
|
|
|
|
this.poolData = this.waterData.detailData |
|
|
|
|
this.naturalWaterData = this.waterData.detailData |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.map = new AMap.Map('container', { |
|
|
|
|
zoom:18 |
|
|
|
@ -39,7 +41,7 @@ export class WaterAuditComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
}, 0); |
|
|
|
|
} |
|
|
|
|
selectedWaterTypeIndex:number = 0//选择的水源类型 0消火栓 1水池 2天然水源
|
|
|
|
|
selectedWaterTypeIndex:number //选择的水源类型 0消火栓 1水池 2天然水源
|
|
|
|
|
fireCockData:any = []//消火栓详情
|
|
|
|
|
poolData:any = []//水池详情
|
|
|
|
|
naturalWaterData:any = []//天然水源详情
|
|
|
|
|