Skip to content

Commit 9dae145

Browse files
authored
[Fix][UI] fix pagination issues on the notice and SLA pages (#544)
1 parent 88b8575 commit 9dae145

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

datavines-ui/src/view/Main/Warning/SLAsNoticeList/NoticeList.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ const Index = () => {
2828
pageSize: 10,
2929
});
3030
const onChange = ({ current, pageSize }: any) => {
31-
setPageParams({
31+
const newPageParams = {
3232
pageNumber: current,
3333
pageSize,
34+
};
35+
setPageParams(newPageParams);
36+
getData({
37+
...form.getFieldsValue(),
38+
...newPageParams,
3439
});
3540
};
3641
const getData = async (values: any = null) => {

datavines-ui/src/view/Main/Warning/SLAsNoticeList/SLAsList.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ const Index = () => {
3232
pageSize: 10,
3333
});
3434
const onChange = ({ current, pageSize }: any) => {
35-
setPageParams({
35+
const newPageParams = {
3636
pageNumber: current,
3737
pageSize,
38+
};
39+
setPageParams(newPageParams);
40+
getData({
41+
...form.getFieldsValue(),
42+
...newPageParams,
3843
});
3944
};
4045
const getData = async (values: any = null) => {

0 commit comments

Comments
 (0)