|
|
|
@ -48,7 +48,7 @@ export class ExternalLinksPlanComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// 二维三维预案
|
|
|
|
|
this.handleData() |
|
|
|
|
this.handleData(data.url) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
@ -110,8 +110,9 @@ export class ExternalLinksPlanComponent implements OnInit {
|
|
|
|
|
companyData//当前公司信息
|
|
|
|
|
thirdPartyURL |
|
|
|
|
threedUrl: any |
|
|
|
|
handleData() { |
|
|
|
|
handleData(url?:string) { |
|
|
|
|
let data = this.planData |
|
|
|
|
// console.log('ddddd',data)
|
|
|
|
|
if (this.planData.planMode == 2) { //预案planMode=2时, 跳查看页面组件
|
|
|
|
|
|
|
|
|
|
this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => { |
|
|
|
@ -126,12 +127,13 @@ 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) => {
|
|
|
|
|
// console.log('xxxx',data)
|
|
|
|
|
// data && data.company ? this.companyData = data.company : null
|
|
|
|
|
// this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(url)
|
|
|
|
|
// this.showType = 2
|
|
|
|
|
// })
|
|
|
|
|
window.location.href = `${url}?unitId=${data.company.id}&unitName=${data.company.name}&editMode=false` |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|