|
|
|
@ -106,7 +106,6 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
//查看预案
|
|
|
|
|
lookPlan(e) { |
|
|
|
|
console.log(e) |
|
|
|
|
if (e.planType == 16 || e.planType == 4 || e.planType == 8) { |
|
|
|
|
if (e.planType == 16&&e.attachmentUrls == null){ |
|
|
|
|
window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}&unitTypeId=${this.compantData.buildingTypes[0].id}&orName=${this.compantData.organizationName}&orId=${this.compantData.organizationId}&pattern=false`) |
|
|
|
@ -161,7 +160,11 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
window.location.href = e.url |
|
|
|
|
} else { |
|
|
|
|
sessionStorage.setItem("url", e.url) |
|
|
|
|
window.open(`/planManagement/webLook`) |
|
|
|
|
if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案
|
|
|
|
|
window.open(`${e.url}?unitId=${this.companyId}&unitName=${this.unitdata.unitname}&editMode=false`) |
|
|
|
|
} else { |
|
|
|
|
window.open(`/planManagement/webLook`) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -203,8 +206,18 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
|
|
|
|
|
else if (e.planType == 2) { //三维预案
|
|
|
|
|
if (e.url.indexOf('app') == 0) { |
|
|
|
|
window.location.href = e.url |
|
|
|
|
} else { |
|
|
|
|
sessionStorage.setItem("url", e.url) |
|
|
|
|
if ((e.url as string).includes('gis/threeDimensionalHome')) { //三维预案
|
|
|
|
|
window.open(`${e.url}?unitId=${this.companyId}&unitName=${this.unitdata.unitname}&editMode=true`) |
|
|
|
|
} else { |
|
|
|
|
window.open(`/planManagement/webLook`) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this.snackBar.open('只有二维预案和文本预案可以编辑!', '确定', config); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|