|
|
@ -402,7 +402,7 @@ export class GisLabelingComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
this.unitCluster = MapFactory.MarkerClusterInstance(this.map, unitMarkerArrcluster, { |
|
|
|
this.unitCluster = MapFactory.MarkerClusterInstance(this.map, unitMarkerArrcluster, { |
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
maxZoom :15, |
|
|
|
maxZoom: 15, |
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
}); |
|
|
|
}); |
|
|
|
this.unitCluster.on('click', (e) => { |
|
|
|
this.unitCluster.on('click', (e) => { |
|
|
@ -537,6 +537,8 @@ export class GisLabelingComponent implements OnInit { |
|
|
|
image = '/assets/fireForcesMarkers/dadui.png' |
|
|
|
image = '/assets/fireForcesMarkers/dadui.png' |
|
|
|
} else if (item.level == 3) { |
|
|
|
} else if (item.level == 3) { |
|
|
|
image = '/assets/fireForcesMarkers/zhongdui.png' |
|
|
|
image = '/assets/fireForcesMarkers/zhongdui.png' |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
image = '/assets/fireForcesMarkers/qita.png' |
|
|
|
} |
|
|
|
} |
|
|
|
// 用于点集合的数组
|
|
|
|
// 用于点集合的数组
|
|
|
|
item.fireForceDetailInfo.location ? |
|
|
|
item.fireForceDetailInfo.location ? |
|
|
@ -585,7 +587,7 @@ export class GisLabelingComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
this.fireForceCluster = MapFactory.MarkerClusterInstance(this.map, fireForceMarkerArrcluster, { |
|
|
|
this.fireForceCluster = MapFactory.MarkerClusterInstance(this.map, fireForceMarkerArrcluster, { |
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
maxZoom :15, |
|
|
|
maxZoom: 15, |
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -735,7 +737,7 @@ export class GisLabelingComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
this.linkageForcesCluster = MapFactory.MarkerClusterInstance(this.map, linkageForcesMarkerArrcluster, { |
|
|
|
this.linkageForcesCluster = MapFactory.MarkerClusterInstance(this.map, linkageForcesMarkerArrcluster, { |
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
maxZoom :15, |
|
|
|
maxZoom: 15, |
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -910,7 +912,7 @@ export class GisLabelingComponent implements OnInit { |
|
|
|
// }
|
|
|
|
// }
|
|
|
|
this.waterCluster = MapFactory.MarkerClusterInstance(this.map, waterMarkerArrcluster, { |
|
|
|
this.waterCluster = MapFactory.MarkerClusterInstance(this.map, waterMarkerArrcluster, { |
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
gridSize: gridSize, // 设置网格像素大小
|
|
|
|
maxZoom :15, |
|
|
|
maxZoom: 15, |
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
render: render //自定义聚合点样式, 自定义非聚合点样式
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -1308,7 +1310,7 @@ export class GisLabelingComponent implements OnInit { |
|
|
|
//分享
|
|
|
|
//分享
|
|
|
|
share(e) { |
|
|
|
share(e) { |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
url: 'https://www.baidu.com/', |
|
|
|
url: 'https://', |
|
|
|
buildingType: e.buildingTypes[0].name, |
|
|
|
buildingType: e.buildingTypes[0].name, |
|
|
|
address: e.address |
|
|
|
address: e.address |
|
|
|
} |
|
|
|
} |
|
|
@ -1577,7 +1579,8 @@ export class LookPlanDialog { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
ngOnInit() { |
|
|
|
console.log(this.data) |
|
|
|
sessionStorage.setItem("companyId", this.data.id) |
|
|
|
|
|
|
|
console.log(this.data) |
|
|
|
this.getAllPlans() |
|
|
|
this.getAllPlans() |
|
|
|
} |
|
|
|
} |
|
|
|
//关闭弹窗
|
|
|
|
//关闭弹窗
|
|
|
@ -1639,53 +1642,56 @@ export class LookPlanDialog { |
|
|
|
} */ |
|
|
|
} */ |
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
let companyId = sessionStorage.getItem("companyId") |
|
|
|
if (e.planType == 16 || e.planType == 4 || e.planType == 8) { |
|
|
|
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`) |
|
|
|
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("\/") |
|
|
|
var index = e.attachmentUrls[0].indexOf("\/") |
|
|
|
let fetchUrl = e.attachmentUrls[0] |
|
|
|
let fetchUrl = e.attachmentUrls[0] |
|
|
|
//console.log(fetchUrl)
|
|
|
|
//console.log(fetchUrl)
|
|
|
|
if (fetchUrl) { |
|
|
|
if (fetchUrl) { |
|
|
|
let suffix = fetchUrl.split('.')[fetchUrl.split('.').length - 1].toLowerCase() |
|
|
|
let suffix = fetchUrl.split('.')[fetchUrl.split('.').length - 1].toLowerCase() |
|
|
|
if (suffix == 'docx' || suffix == 'doc') { |
|
|
|
if (suffix == 'docx' || suffix == 'doc') { |
|
|
|
let arr = fetchUrl.split('.') |
|
|
|
let arr = fetchUrl.split('.') |
|
|
|
arr[arr.length - 1] = 'pdf' |
|
|
|
arr[arr.length - 1] = 'pdf' |
|
|
|
window.open(`/api/Objects/PlanPlatform/` + arr.join('.')) |
|
|
|
window.open(`/api/Objects/PlanPlatform/` + arr.join('.')) |
|
|
|
} else if (suffix == 'pdf') { |
|
|
|
} else if (suffix == 'pdf') { |
|
|
|
window.open(`/api/Objects/PlanPlatform/` + fetchUrl) |
|
|
|
window.open(`/api/Objects/PlanPlatform/` + fetchUrl) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
this.snackBar.open('该文件类型暂不支持在线查看', '确定', config); |
|
|
|
this.snackBar.open('该文件类型暂不支持在线查看', '确定', config); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (e.planType == 1) { //如果是在线编辑
|
|
|
|
if (e.planType == 1) { //如果是在线编辑
|
|
|
|
let id = e.id |
|
|
|
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("planId", id) |
|
|
|
//sessionStorage.setItem("companyId", companyId)
|
|
|
|
|
|
|
|
sessionStorage.setItem("buildingTypeId", this.data.buildingTypes[0].id) |
|
|
|
sessionStorage.setItem("buildingTypeId", this.data.buildingTypes[0].id) |
|
|
|
sessionStorage.setItem("editable", "0") |
|
|
|
sessionStorage.setItem("editable", "0") |
|
|
|
sessionStorage.setItem("planName", e.name) |
|
|
|
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.planType == 2) { //如果是跳转网页
|
|
|
|
if (e.url.indexOf('app') == 0) { |
|
|
|
if (e.url.indexOf('app') == 0) { |
|
|
|
window.location.href = e.url |
|
|
|
window.location.href = e.url |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
sessionStorage.setItem("url", e.url) |
|
|
|
sessionStorage.setItem("url", e.url) |
|
|
|
if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案
|
|
|
|
if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案
|
|
|
|
window.open(`${e.url}?unitId=${this.data.id}&unitName=${this.data.name}&editMode=false`) |
|
|
|
window.open(`${e.url}?unitId=${this.data.id}&unitName=${this.data.name}&editMode=false`) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
window.open(`/planManagement/webLook`) |
|
|
|
window.open(`/planManagement/webLook`) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//点击下载
|
|
|
|
//点击下载
|
|
|
|