diff --git a/src/pages/src/http/dataSourceFiles.ts b/src/pages/src/http/dataSourceFiles.ts index 6e1ac87a3..803b108fc 100644 --- a/src/pages/src/http/dataSourceFiles.ts +++ b/src/pages/src/http/dataSourceFiles.ts @@ -1,5 +1,6 @@ import http from './fetch'; import type { + DataSourceUsersParams, DataSourceUsersResult, NewDataSourceUserParams, PutDataSourceUserParams, @@ -8,7 +9,10 @@ import type { /** * 数据源用户信息列表 */ -export const getDataSourceUsers = (id: string, username: string): Promise => http.get(`/api/v1/web/data-sources/${id}/users/?username=${username}`); +export const getDataSourceUsers = (params: DataSourceUsersParams): Promise => { + const { id, username, page, pageSize } = params; + return http.get(`/api/v1/web/data-sources/${id}/users/?username=${username}&page=${page}&page_size=${pageSize}`); +}; /** * 新建数据源用户 diff --git a/src/pages/src/http/types/dataSourceFiles.ts b/src/pages/src/http/types/dataSourceFiles.ts index 1690affac..1846f30cb 100644 --- a/src/pages/src/http/types/dataSourceFiles.ts +++ b/src/pages/src/http/types/dataSourceFiles.ts @@ -41,3 +41,13 @@ export interface PutDataSourceUserParams { department_ids?: [], leader_ids?: [], } + +/** + * 数据源用户信息列表参数 + */ +export interface DataSourceUsersParams { + id: string, + username: string, + page: number, + pageSize: number, +} diff --git a/src/pages/src/views/data-source/local-details/UserInfo.vue b/src/pages/src/views/data-source/local-details/UserInfo.vue index 8c9266846..5db9cc68c 100644 --- a/src/pages/src/views/data-source/local-details/UserInfo.vue +++ b/src/pages/src/views/data-source/local-details/UserInfo.vue @@ -22,7 +22,11 @@ class="user-info-table" :data="users" :border="['outer']" + remote-pagination + :pagination="pagination" show-overflow-tooltip + @page-limit-change="pageLimitChange" + @page-value-change="pageCurrentChange" >