Browse Source

[完善]linksPlan页面三维预案查看

tangshan
邵佳豪 3 years ago
parent
commit
161db5f26f
  1. 11
      src/app/external-links-plan/external-links-plan.component.ts

11
src/app/external-links-plan/external-links-plan.component.ts

@ -105,11 +105,12 @@ export class ExternalLinksPlanComponent implements OnInit {
// this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(`/keyUnit/viewunitinfoplans?id=${data.companyId}`)
})
} else if (this.planData.planMode == 3) { //预案planMode=3时, 第三方网址'
this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => {
data && data.company ? this.companyData = data.company : null
this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(data.url)
this.showType = 2
})
// this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => {
// data && data.company ? this.companyData = data.company : null
// this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(data.url)
// this.showType = 2
// })
window.location.href = `${data.url}?unitId=${data.company.id}&unitName=${data.company.name}&editMode=false`
}
}

Loading…
Cancel
Save