for duplicate pd link
This commit is contained in:
parent
dd20044f17
commit
84b6f0358d
@ -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;
|
||||
}
|
||||
|
||||
@ -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('');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user