image docs added in queries docs

This commit is contained in:
sriram-at-840620226347 2020-07-07 12:31:26 +05:30
parent 874232c9bc
commit 590f5e3c10
2 changed files with 15 additions and 1 deletions

View File

@ -11,6 +11,9 @@
</div>
</h2>
<mat-dialog-content style="border-bottom: 2px solid #e2412f8f;">
<mat-tab-group>
<mat-tab label="Questions">
<ng-template matTabContent>
<div [formGroup]="docsCollectedForm" *ngIf="loadComponent">
<mat-card *ngIf="queries_docs.length !=0">
<mat-card-header>
@ -103,6 +106,14 @@
</mat-card>
</mat-card>
</div>
</ng-template>
</mat-tab>
<mat-tab label="Docs">
<ng-template matTabContent>
<app-image-docs [data_values]="image_doc_params"> </app-image-docs>
</ng-template>
</mat-tab>
</mat-tab-group>
</mat-dialog-content>
<mat-dialog-actions align="end">
<div align="end">

View File

@ -31,6 +31,7 @@ export class QueriesDocsComponent implements OnInit {
loadComponent:boolean=false
disableAfterSubmit: boolean;
fk_pd_type: any;
image_doc_params: { pdid: string; form_id: number; company_id: string; };
constructor(notifier: NotifierService,
private _ngZone: NgZone,
@ -44,7 +45,7 @@ export class QueriesDocsComponent implements OnInit {
private pdTriggerService:PdTrigerService,
private awsService:AwsService) {
// console.log(this.pd_all_details)
this.form_id = 10;
this.form_id = 24;
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.notifier = notifier;
@ -54,6 +55,8 @@ export class QueriesDocsComponent implements OnInit {
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lenderShortName = this.pd_all_details.pdmaster_details.lender_short_name;
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
console.log('image_doc_params',this.image_doc_params)
}
@ViewChild('autosize') autosize: CdkTextareaAutosize;