simplepage 页面历史告警请求支持分页 #62
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#62
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
添加分页参数 page, 默认为1
接口后续会迭代为返回nextPage, 如果nextPage>1则拉到底部时使用nextPage作为本次page继续请求拉取下一页数据, 目前后端还没修改数据结构,因此按照下面的方式简单实现.
当滚动条拉到最下面时 page+1, 然后继续请求, 直到接口返回没有数据为止,则即使拉到最下面也不再继续请求
接口好了吗?
nextPage 会加在哪个层级?
另外这个 翻页的逻辑跟定时拉取的逻辑应该是有冲突的。 因为定时拉取数据后,数据应该是会全部被替换成最新的。