Sales PD list based on user role implemented

This commit is contained in:
venbatechnologies@gmail.com 2020-12-30 19:06:15 +05:30
parent 76ded73f30
commit a74767f2ea
2 changed files with 6 additions and 4 deletions

View File

@ -218,7 +218,7 @@ private handleError<T> (operation = 'operation', error?: T) {
}
else if(error.status == 0){
console.log("NO Internet")
// this.router.navigate(['/error/404']);
this.router.navigate(['/error/404']);
}
else{
// alert("Please Check your Internet connection");

View File

@ -554,9 +554,11 @@ export class PdTrigerService {
)
}
getSalesPd(): Observable<any> {
var value= localStorage.getItem('LocalSetEntity')
console.log('555',value);
return this._http.get<any[]>(this.apiUrl + "listSalesPD/" + value)
var lender_id= localStorage.getItem('LocalSetEntity')
let user_role_id = localStorage.getItem('LenderRoleID')
let user_id = this._aws.getlocale()
// console.log('555',value);
return this._http.get<any[]>(this.apiUrl + `listSalesPD/${lender_id}/${user_id}/${user_role_id}`)
.pipe(
catchError(this.handleError('operation', []))
)