general fom updated
This commit is contained in:
parent
130a6e7da1
commit
b011f06bdb
@ -166,7 +166,10 @@ export class GeneralInfoComponent implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
|
||||
// exist_status
|
||||
});
|
||||
|
||||
}
|
||||
else{
|
||||
let relationControl = <FormArray>this._generalForm.controls['applicant_relation'];
|
||||
@ -178,6 +181,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
|
||||
}
|
||||
else {
|
||||
if(item.pd_co_applicant_id.value!=0){
|
||||
let relationControl = <FormArray>this._generalForm.controls['applicant_relation'];
|
||||
let pos_id = relationControl.value.map(e=> e.pd_co_applicant_id).indexOf(item.pd_co_applicant_id.value);
|
||||
relationControl.removeAt(pos_id);
|
||||
@ -186,6 +190,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
this.fetch_related_details.splice(pos_name, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// submit form details
|
||||
submitGeneralForm(formData:any) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user