feat-wip(components): 数据字典相关页面代码提交
This commit is contained in:
@ -230,17 +230,17 @@ export function useTableOperate<TableData>(
|
||||
}
|
||||
|
||||
export function defaultTransform<ApiData>(
|
||||
response: FlatResponseData<any, Api.Common.PaginatingQueryRecord<ApiData>>
|
||||
response: FlatResponseData<any, Api.Common.PageResponse<ApiData>>
|
||||
): PaginationData<ApiData> {
|
||||
const { data, error } = response;
|
||||
|
||||
if (!error) {
|
||||
const { records, current, size, total } = data;
|
||||
const { records, pageNumber, pageSize, total } = data;
|
||||
|
||||
return {
|
||||
data: records,
|
||||
pageNum: current,
|
||||
pageSize: size,
|
||||
pageNum: pageNumber,
|
||||
pageSize,
|
||||
total
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user