simplepage 页面历史告警请求支持分页 #62

Open
opened 2025-01-09 12:07:45 +08:00 by liangyuanpeng · 3 comments

添加分页参数 page, 默认为1

添加分页参数 page, 默认为1
Author
Owner

接口后续会迭代为返回nextPage, 如果nextPage>1则拉到底部时使用nextPage作为本次page继续请求拉取下一页数据, 目前后端还没修改数据结构,因此按照下面的方式简单实现.

当滚动条拉到最下面时 page+1, 然后继续请求, 直到接口返回没有数据为止,则即使拉到最下面也不再继续请求

image

接口后续会迭代为返回nextPage, 如果nextPage>1则拉到底部时使用nextPage作为本次page继续请求拉取下一页数据, 目前后端还没修改数据结构,因此按照下面的方式简单实现. 当滚动条拉到最下面时 page+1, 然后继续请求, 直到接口返回没有数据为止,则即使拉到最下面也不再继续请求 ![image](/attachments/11009aec-7830-4e87-b640-50c15a91ccce)
Owner

接口好了吗?
nextPage 会加在哪个层级?

image

接口好了吗? nextPage 会加在哪个层级? ![image](/attachments/d15f9edd-5c20-4945-86c4-a02c30433f9b)
822 KiB
Owner

另外这个 翻页的逻辑跟定时拉取的逻辑应该是有冲突的。 因为定时拉取数据后,数据应该是会全部被替换成最新的。

另外这个 翻页的逻辑跟定时拉取的逻辑应该是有冲突的。 因为定时拉取数据后,数据应该是会全部被替换成最新的。
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: smartoilets-front/projects#62
No description provided.