|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import { Component, OnInit } from '@angular/core'; |
|
|
|
|
import { Component, Input, OnInit } from '@angular/core'; |
|
|
|
|
declare var AMap: any; |
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-water-audit', |
|
|
|
@ -6,7 +6,7 @@ declare var AMap: any;
|
|
|
|
|
styleUrls: ['./water-audit.component.scss'] |
|
|
|
|
}) |
|
|
|
|
export class WaterAuditComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
@Input() public waterData: any;//data名字根据引用场景自定义
|
|
|
|
|
constructor() { } |
|
|
|
|
map:any |
|
|
|
|
newPositionMarker:any |
|
|
|
@ -15,6 +15,7 @@ export class WaterAuditComponent implements OnInit {
|
|
|
|
|
' <img style="width:20px;height:24px" src="/assets/images/定位.png">' + |
|
|
|
|
'</div>' |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
console.log(7777,this.waterData) |
|
|
|
|
this.waterData.detailData = JSON.parse(this.waterData.detailData) |
|
|
|
|
this.fireCockData = this.waterData.detailData |
|
|
|
|
console.log(789, this.fireCockData) |
|
|
|
@ -42,23 +43,23 @@ export class WaterAuditComponent implements OnInit {
|
|
|
|
|
fireCockData:any = []//消火栓详情
|
|
|
|
|
poolData:any = []//水池详情
|
|
|
|
|
naturalWaterData:any = []//天然水源详情
|
|
|
|
|
waterData:any = { |
|
|
|
|
id: "60125d31d31fab7de81c56b0", |
|
|
|
|
name: "上海中心消火栓01", |
|
|
|
|
administrativeRegion: "上海区", |
|
|
|
|
governmentLevel: "1", |
|
|
|
|
village: "小高社区", |
|
|
|
|
address: "国际会议中心", |
|
|
|
|
location: { |
|
|
|
|
x: 121.496717, |
|
|
|
|
y: 31.239452 |
|
|
|
|
}, |
|
|
|
|
detailData: "[{\"PropertyName\":\"可用状态\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"放置形式\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"管网形式\",\"PropertyValue\":\"2\"},{\"PropertyName\":\"管网直径\",\"PropertyValue\":\"2\"},{\"PropertyName\":\"管网压力类型\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"管网压力范围\",\"PropertyValue\":\"2222\"},{\"PropertyName\":\"接口形式\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"接口口径\",\"PropertyValue\":\"3\"},{\"PropertyName\":\"最大流量\",\"PropertyValue\":\"333\"},{\"PropertyName\":\"供水单位\",\"PropertyValue\":\"剃剃头\"},{\"PropertyName\":\"联系方式\",\"PropertyValue\":\"119\"},{\"PropertyName\":\"备注\",\"PropertyValue\":\"突突突突突突\"}]", |
|
|
|
|
detailItems: null, |
|
|
|
|
createTime: "2021-02-03T02:36:57.451Z", |
|
|
|
|
creatorId: "5e8eced2aaca5f7c1025309b", |
|
|
|
|
deleted: false, |
|
|
|
|
waterSourceType: 0, |
|
|
|
|
integrityScore: 0.21052632 |
|
|
|
|
} |
|
|
|
|
// waterData:any = {
|
|
|
|
|
// id: "60125d31d31fab7de81c56b0",
|
|
|
|
|
// name: "上海中心消火栓01",
|
|
|
|
|
// administrativeRegion: "上海区",
|
|
|
|
|
// governmentLevel: "1",
|
|
|
|
|
// village: "小高社区",
|
|
|
|
|
// address: "国际会议中心",
|
|
|
|
|
// location: {
|
|
|
|
|
// x: 121.496717,
|
|
|
|
|
// y: 31.239452
|
|
|
|
|
// },
|
|
|
|
|
// detailData: "[{\"PropertyName\":\"可用状态\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"放置形式\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"管网形式\",\"PropertyValue\":\"2\"},{\"PropertyName\":\"管网直径\",\"PropertyValue\":\"2\"},{\"PropertyName\":\"管网压力类型\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"管网压力范围\",\"PropertyValue\":\"2222\"},{\"PropertyName\":\"接口形式\",\"PropertyValue\":\"1\"},{\"PropertyName\":\"接口口径\",\"PropertyValue\":\"3\"},{\"PropertyName\":\"最大流量\",\"PropertyValue\":\"333\"},{\"PropertyName\":\"供水单位\",\"PropertyValue\":\"剃剃头\"},{\"PropertyName\":\"联系方式\",\"PropertyValue\":\"119\"},{\"PropertyName\":\"备注\",\"PropertyValue\":\"突突突突突突\"}]",
|
|
|
|
|
// detailItems: null,
|
|
|
|
|
// createTime: "2021-02-03T02:36:57.451Z",
|
|
|
|
|
// creatorId: "5e8eced2aaca5f7c1025309b",
|
|
|
|
|
// deleted: false,
|
|
|
|
|
// waterSourceType: 0,
|
|
|
|
|
// integrityScore: 0.21052632
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|