分页参数
This commit is contained in:
parent
1f3d118920
commit
8490c429b3
|
|
@ -140,7 +140,6 @@ export default OakComponent({
|
|||
formData({ data: users, props, features }) {
|
||||
const { entity, entityId } = props;
|
||||
const filter = this.getFilterByName('fulltext');
|
||||
const pagination = this.getPagination();
|
||||
return {
|
||||
users: users?.map((ele: any) => {
|
||||
const { mobile$user, extraFile$entity } = ele;
|
||||
|
|
@ -155,7 +154,6 @@ export default OakComponent({
|
|||
return user2;
|
||||
}),
|
||||
searchValue: filter?.$text && filter.$text.$search,
|
||||
pagination,
|
||||
};
|
||||
},
|
||||
properties: {
|
||||
|
|
@ -163,8 +161,6 @@ export default OakComponent({
|
|||
entityId: '',
|
||||
redirectToAfterConfirm: {} as EntityDict['userEntityGrant']['Schema']['redirectTo'],
|
||||
qrCodeType: '' as string,
|
||||
showTitle: true,
|
||||
showBack: false,
|
||||
onUpdate: (id: string) => undefined as void,
|
||||
onCreate: () => undefined as void,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -23,11 +23,6 @@ export default function Render(
|
|||
{
|
||||
users: EntityDict['user']['Schema'][];
|
||||
searchValue?: string;
|
||||
pagination: {
|
||||
pageSize: number;
|
||||
total: number;
|
||||
currentPage: number;
|
||||
};
|
||||
entity: string;
|
||||
entityId: string;
|
||||
showBack: boolean;
|
||||
|
|
@ -41,15 +36,13 @@ export default function Render(
|
|||
>
|
||||
) {
|
||||
const {
|
||||
pagination,
|
||||
oakPagination,
|
||||
users = [],
|
||||
entity,
|
||||
entityId,
|
||||
oakLoading,
|
||||
showBack = false,
|
||||
showTitle = true,
|
||||
} = props.data;
|
||||
const { pageSize, total, currentPage } = pagination || {};
|
||||
const { pageSize, total, currentPage } = oakPagination || {};
|
||||
const {
|
||||
goUpsert,
|
||||
t,
|
||||
|
|
|
|||
Loading…
Reference in New Issue