Browse Source

hold current page

pull/17258/head
Sinan997 3 years ago
committed by Mahmut Gundogdu
parent
commit
7d3363ed7c
  1. 13
      npm/ng-packs/packages/core/src/lib/services/list.service.ts
  2. 7
      npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/identity-user.service.ts
  3. 5
      npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts

13
npm/ng-packs/packages/core/src/lib/services/list.service.ts

@ -121,12 +121,15 @@ export class ListService<QueryParamsType = ABP.PageQueryParams | any> implements
}
private resetPageWhenUnchanged() {
console.log('this.page',this._page);
console.log('this._maxResultCount',this._maxResultCount);
console.log('this._skipCount',this._skipCount);
const skipCount = this._page * this._maxResultCount;
if (skipCount === this._skipCount) {
this._page = 0;
this._skipCount = 0;
} else this._skipCount = skipCount;
console.log({skipCount});
this._skipCount = skipCount;
console.log('this.page',this._page);
console.log('this._maxResultCount',this._maxResultCount);
console.log('this._skipCount',this._skipCount);
}
private next() {

7
npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/identity-user.service.ts

@ -52,13 +52,16 @@ export class IdentityUserService {
},
{ apiName: this.apiName });
getList = (input: GetIdentityUsersInput) =>
this.restService.request<any, PagedResultDto<IdentityUserDto>>({
getList = (input: GetIdentityUsersInput) => {
console.log({input});
return this.restService.request<any, PagedResultDto<IdentityUserDto>>({
method: 'GET',
url: '/api/identity/users',
params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
},
{ apiName: this.apiName });
}
getRoles = (id: string) =>
this.restService.request<any, ListResultDto<IdentityRoleDto>>({

5
npm/ng-packs/packages/identity/src/lib/components/users/users.component.ts

@ -184,7 +184,10 @@ export class UsersComponent implements OnInit {
}
private hookToQuery() {
this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => (this.data = res));
this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => {
(this.data = res)
console.log(this.data);
});
}
openPermissionsModal(providerKey: string, entityDisplayName?: string) {

Loading…
Cancel
Save