|
|
|
@ -402,7 +402,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
this.unitCluster = MapFactory.MarkerClusterInstance(this.map, unitMarkerArrcluster, { |
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
|
maxZoom :15, |
|
|
|
|
maxZoom: 15, |
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
|
}); |
|
|
|
|
this.unitCluster.on('click', (e) => { |
|
|
|
@ -537,6 +537,8 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
image = '/assets/fireForcesMarkers/dadui.png' |
|
|
|
|
} else if (item.level == 3) { |
|
|
|
|
image = '/assets/fireForcesMarkers/zhongdui.png' |
|
|
|
|
}else{ |
|
|
|
|
image = '/assets/fireForcesMarkers/qita.png' |
|
|
|
|
} |
|
|
|
|
// 用于点集合的数组
|
|
|
|
|
item.fireForceDetailInfo.location ? |
|
|
|
@ -585,7 +587,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
this.fireForceCluster = MapFactory.MarkerClusterInstance(this.map, fireForceMarkerArrcluster, { |
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
|
maxZoom :15, |
|
|
|
|
maxZoom: 15, |
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -735,7 +737,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
this.linkageForcesCluster = MapFactory.MarkerClusterInstance(this.map, linkageForcesMarkerArrcluster, { |
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
|
maxZoom :15, |
|
|
|
|
maxZoom: 15, |
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -910,7 +912,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
// }
|
|
|
|
|
this.waterCluster = MapFactory.MarkerClusterInstance(this.map, waterMarkerArrcluster, { |
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
|
maxZoom :15, |
|
|
|
|
maxZoom: 15, |
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -1308,7 +1310,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
//分享
|
|
|
|
|
share(e) { |
|
|
|
|
let data = { |
|
|
|
|
url: 'https://www.baidu.com/', |
|
|
|
|
url: 'https://', |
|
|
|
|
buildingType: e.buildingTypes[0].name, |
|
|
|
|
address: e.address |
|
|
|
|
} |
|
|
|
@ -1577,6 +1579,7 @@ export class LookPlanDialog {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
|
sessionStorage.setItem("companyId", this.data.id) |
|
|
|
|
console.log(this.data) |
|
|
|
|
this.getAllPlans() |
|
|
|
|
} |
|
|
|
@ -1639,9 +1642,9 @@ export class LookPlanDialog {
|
|
|
|
|
} */ |
|
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
|
if (e.planType == 16 || e.planType == 4 || e.planType == 8) { |
|
|
|
|
if (e.planType == 16&&e.attachmentUrls == null){ |
|
|
|
|
if (e.planType == 16 && e.attachmentUrls == null) { |
|
|
|
|
window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${companyId}&planName=${e.name}&unitName=${this.data.name}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.data.buildingTypes[0].id}&orName=${this.data.organizationName}&pattern=false`) |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
var index = e.attachmentUrls[0].indexOf("\/") |
|
|
|
|
let fetchUrl = e.attachmentUrls[0] |
|
|
|
|
//console.log(fetchUrl)
|
|
|
|
@ -1666,13 +1669,16 @@ export class LookPlanDialog {
|
|
|
|
|
} |
|
|
|
|
if (e.planType == 1) { //如果是在线编辑
|
|
|
|
|
let id = e.id |
|
|
|
|
console.log(e) |
|
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
|
sessionStorage.setItem("companyName", this.data.name) |
|
|
|
|
sessionStorage.setItem("companyId", companyId) |
|
|
|
|
sessionStorage.setItem("planId", id) |
|
|
|
|
//sessionStorage.setItem("companyId", companyId)
|
|
|
|
|
sessionStorage.setItem("buildingTypeId", this.data.buildingTypes[0].id) |
|
|
|
|
sessionStorage.setItem("editable", "0") |
|
|
|
|
sessionStorage.setItem("planName", e.name) |
|
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
|
window.open(`/keyUnit/viewunitinfoplan?id=${companyId}`) |
|
|
|
|
|
|
|
|
|
window.open(`/keyUnit/viewunitinfoplan?id=${companyId}&orName=${this.data.organizationName}&orId=${this.data.organizationId}`) |
|
|
|
|
} |
|
|
|
|
if (e.planType == 2) { //如果是跳转网页
|
|
|
|
|
if (e.url.indexOf('app') == 0) { |
|
|
|
|