Skip to content

Commit

Permalink
PullRequest: 241 fix: sensitiveColumn's table batchDelete
Browse files Browse the repository at this point in the history
Merge branch 'fix/dev-4.2.2-sensitiveColumnBatchDelete of [email protected]:oceanbase/oceanbase-developer-center.git into dev-4.2.2

https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/241


Signed-off-by: 晓康 <[email protected]>


* fix: sensitiveColumn's table batchDelete
  • Loading branch information
UnknownAdventurer committed Nov 22, 2023
1 parent 9bb04e8 commit 44e5809
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/page/Project/Sensitive/components/SensitiveColumn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,15 @@ const SensitiveColumn = ({
}), //删除失败
);
}

tableRef.current?.reload?.();
const { page } = sensitiveColumn;
const newCurrent = Math.ceil((page?.totalElements - ids?.length) / page?.size);
tableRef.current?.reload?.({
pagination: {
current: newCurrent >= page?.number ? page?.number : newCurrent,
pageSize: page?.size,
},
pageSize: page?.size,
});
tableRef.current?.resetSelectedRows();
setSubmiting(false);
}
Expand Down

0 comments on commit 44e5809

Please sign in to comment.