|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: sueRimn |
|
|
|
|
* @Date: 2020-12-25 16:13:50 |
|
|
|
|
* @LastEditors: sueRimn |
|
|
|
|
* @LastEditTime: 2021-02-06 10:51:26 |
|
|
|
|
* @LastEditTime: 2021-02-06 13:54:10 |
|
|
|
|
*/ |
|
|
|
|
import { Component, Inject, OnInit } from '@angular/core'; |
|
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
|
@ -158,6 +158,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
this.fetchUrl='' |
|
|
|
|
|
|
|
|
|
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{ |
|
|
|
|
console.log(data) |
|
|
|
|
this.companyId=data.companyId |
|
|
|
|
this.companyName=data.companyName |
|
|
|
|
if(data.planType!=2&&data.planType!=1){ |
|
|
|
@ -178,7 +179,10 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.organizationName=item.organizationName |
|
|
|
|
this.getPlanData() |
|
|
|
|
this.planData = data |
|
|
|
|
this.handleData() |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
//this.src=`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`
|
|
|
|
|
//this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src);
|
|
|
|
|
//window.open(`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`)
|
|
|
|
@ -232,25 +236,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
//window.open(`http://121.5.10.84/apps/editor/openPreview?data=${base64}`)
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
getPlanData () { |
|
|
|
|
let header = {
|
|
|
|
|
CompanyName: this.companyName || '', |
|
|
|
|
//AuditStatus: this.id || '',
|
|
|
|
|
PageSize: '100', |
|
|
|
|
} |
|
|
|
|
console.log(header) |
|
|
|
|
this.http.get('/api/PlanAudits',{params:header}).subscribe((data:any)=>{ |
|
|
|
|
data.items.forEach(element => { |
|
|
|
|
/* if (element.id===this.id) { |
|
|
|
|
|
|
|
|
|
} */ |
|
|
|
|
this.planData = element |
|
|
|
|
this.organizationName = element.committerOrganizationName |
|
|
|
|
this.handleData() |
|
|
|
|
return |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查看二维三维预案
|
|
|
|
|
thirdPartyURL |
|
|
|
|