for duplicate pd link

This commit is contained in:
venbatechnologies@gmail.com 2022-02-22 11:21:49 +05:30
parent dd20044f17
commit 84b6f0358d
2 changed files with 22 additions and 2 deletions

View File

@ -7,4 +7,11 @@ mat-form-field {
.mat-select {
display: contents !important;
}
.exist_pd_link{
text-decoration: underline;
color: red;
}
.exist_pd_link :hover{
text-decoration: none;
}

View File

@ -1052,19 +1052,32 @@ checkExistPd(value,option){
this._pd.checkExistPDDetails(param).subscribe(result=>{
if(result['dataStatus']){
if(result['records'].length > 0){
let exist_pd_sno:string=''
let exist_pd:string=''
let exist_random=''
result['records'].forEach(val=>{
console.log(val)
console.log('val');
if(exist_pd_sno == ''){
exist_pd_sno=val.pd_sno
exist_pd=val.pd_id
exist_random=val.random_string
}
else{
exist_pd_sno=exist_pd_sno+','+val.pd_sno}
})
// href="https://www.w3schools.com/" target="_blank"
Swal({
title:"Warning!",
type:'warning',
text:swal_text+exist_pd_sno
text:swal_text+exist_pd_sno,
html:
"<span>"+swal_text+"</span> <a class='exist_pd_link' href='#/personal_discussion/pdlist/viewpd/"+exist_pd+"/"+exist_random+"' target=_blank >"+exist_pd_sno+"</a> "
})
// this._PDtriggerForm.controls['lender_applicant_id'].setValue('');
}