FIX_build error : ps

This commit is contained in:
VE10-Sanjeev 2024-05-13 10:27:28 +00:00
parent 3b4a2327d9
commit 64f30ecf28

View File

@ -72,39 +72,33 @@ export class FormComponent implements OnInit {
ngOnInit() { ngOnInit() {
//this.getSectionData() //this.getSectionData()
if(this.pd_all_details.form_id=='5' && (this.pd_all_details.pdmaster_details.product_abbr=='LFMP' || this.pd_all_details.pdmaster_details.product_abbr=='MLAP') if(this.pd_all_details.form_id=='5' && (this.pd_all_details.pdmaster_details.product_abbr=='LFMP' || this.pd_all_details.pdmaster_details.product_abbr=='MLAP'))
{ {
let params = {"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id,"fk_form_id":this.pd_all_details.form_id};
let params = {"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id,"fk_form_id":this.pd_all_details.form_id}
this.pdTriggerService.getSMCCreditPDSectionData(params).subscribe(result=>{ this.pdTriggerService.getSMCCreditPDSectionData(params).subscribe(result=>{
console.log(result) console.log(result);
if(result['dataStatus']) { if(result['dataStatus']) {
let records = result['records'] let records = result['records'];
let formValues:any ={}; let formValues:any ={};
if(records && records.hasOwnProperty('json') && records.json) { if(records && records.hasOwnProperty('json') && records.json) {
formValues = JSON.parse(records.json) formValues = JSON.parse(records.json);
console.log(formValues) console.log(formValues);
if(formValues.key_stakeholders[0].stakeholder_length != '0') if(formValues.key_stakeholders[0].stakeholder_length != '0')
{ {
let controlcount=formValues.key_stakeholders[0].stakeholder_length; let controlcount=formValues.key_stakeholders[0].stakeholder_length;
this.quesService.ques_length(controlcount) this.quesService.ques_length(controlcount);
this.loadTemplate() this.loadTemplate();
} }else{
else
{
let controlcount1='3'; let controlcount1='3';
this.quesService.ques_length(controlcount1) this.quesService.ques_length(controlcount1);
this.loadTemplate() this.loadTemplate();
} }
// if(formValues.key_stakeholders[0].stakeholder_length=="undefined") // if(formValues.key_stakeholders[0].stakeholder_length=="undefined"){}
// {
// }
} }
} }
else else
@ -143,9 +137,7 @@ export class FormComponent implements OnInit {
} }
} }else{
else
{
this.loadTemplate() this.loadTemplate()
if(this.pd_all_details.is_answered == '1') { if(this.pd_all_details.is_answered == '1') {
@ -156,6 +148,7 @@ else
} }
} }
} }
loadTemplate() { loadTemplate() {
console.log(this.pd_all_details); console.log(this.pd_all_details);