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){ else if(error.status == 0){
console.log("NO Internet") console.log("NO Internet")
// this.router.navigate(['/error/404']); this.router.navigate(['/error/404']);
} }
else{ else{
// alert("Please Check your Internet connection"); // alert("Please Check your Internet connection");

View File

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