Get all USER api parameter change
This commit is contained in:
parent
140263abd8
commit
6387df7050
2 changed files with 20 additions and 7 deletions
|
|
@ -394,8 +394,13 @@ getFuelDetail(ustate){
|
|||
}
|
||||
|
||||
// http://localhost:3000/trackRoute/routepath/getRoutePathWithPoi?id=5b449ae5755a5527be41f7cc&user=59cbbdbe508f164aa2fef3d8
|
||||
getContactsbyDealer(uid){
|
||||
return this.http.get(this.dev_url + '/users/getAllUsers?dealer='+uid)
|
||||
getContactsbyDealer(uid,isProjection =false){
|
||||
let apiUrl = this.dev_url + '/users/getAllUsers?dealer='+uid ;
|
||||
if(isProjection) {
|
||||
apiUrl = apiUrl + '&projection=user_id,first_name,last_name';
|
||||
}
|
||||
|
||||
return this.http.get(apiUrl)
|
||||
.map(res => res.json());
|
||||
}
|
||||
getDistance(ddid,fromtime,totime,satelite){
|
||||
|
|
@ -1659,11 +1664,19 @@ getAddressByApi(latlng){
|
|||
|
||||
|
||||
}
|
||||
getAddressByApiBulk(latlng){
|
||||
|
||||
return this.http.post(this.dev_url +'/googleAddress/getGoogleAddressBulk',latlng)
|
||||
.map(res => res.json());
|
||||
getAddressByApiBulkOld(latlng){
|
||||
let PromiseArray = [], size = 1000;
|
||||
while (latlng.length > 0)
|
||||
//PromiseArray.push(this.getAddressInChunk(latlng.splice(0, size)));
|
||||
Promise.all(PromiseArray).then((values) => {
|
||||
console.log(values);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
getAddressByApiBulk(latlng) {
|
||||
return this.http.post(this.dev_url +'/googleAddress/getGoogleAddressBulk',latlng)
|
||||
.map(res => res.json());
|
||||
}
|
||||
|
||||
resetPass(pld) {
|
||||
|
|
|
|||
|
|
@ -725,7 +725,7 @@ showFieldsDealer:boolean=false;
|
|||
passDealer = this.useridd;
|
||||
}
|
||||
console.log(passDealer);
|
||||
this.contactService.getContactsbyDealer(passDealer)
|
||||
this.contactService.getContactsbyDealer(passDealer,true)
|
||||
.subscribe(res=>{
|
||||
console.log("Alluserobject",res);
|
||||
this.costumers = res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue