@itilite/iui-user-management 0.4.26 → 0.4.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -448,10 +448,10 @@ var userPanelUrl = {
|
|
|
448
448
|
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/table?action=delete&table=" + tableName;
|
|
449
449
|
},
|
|
450
450
|
getUnit: function getUnit(tableName, length, sort) {
|
|
451
|
-
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/table?table_name=" + tableName + "&length=" + length + "&
|
|
451
|
+
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/table?table_name=" + tableName + "&length=" + length + "&ordering=" + sort;
|
|
452
452
|
},
|
|
453
453
|
getPaginationUnit: function getPaginationUnit(tableName, length, page, sort) {
|
|
454
|
-
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/table?table_name=" + tableName + "&length=" + length + "&page=" + page + "&
|
|
454
|
+
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/table?table_name=" + tableName + "&length=" + length + "&page=" + page + "&ordering=" + sort;
|
|
455
455
|
},
|
|
456
456
|
moveUnit: function moveUnit() {
|
|
457
457
|
return "api/v1/user-management/company/" + IUILocalStorageService.getCompanyId() + "/transfer-users";
|
|
@@ -8731,7 +8731,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8731
8731
|
var pageNum = page;
|
|
8732
8732
|
var searchParam = searchValue.trim() !== '' ? '&search=' + searchValue : '';
|
|
8733
8733
|
var orderingParam = orderBy === '' ? '' : order === 'asc' ? '&ordering=' + orderBy : '&ordering=-' + orderBy;
|
|
8734
|
-
var url = userListUrl.getUser + '?length=' + rowsPerPage + '&page=' + pageNum + searchParam + orderingParam;
|
|
8734
|
+
var url = userListUrl.getUser + '?length=' + rowsPerPage + '&page=' + pageNum + searchParam + orderingParam + '&pagename=company';
|
|
8735
8735
|
if (isSearchingChange) {
|
|
8736
8736
|
var delayDebounceFn = setTimeout(function () {
|
|
8737
8737
|
setisApiFetching(true);
|