Element's paging pagination queries list data under certain conditions, how to view the second page instead of the second page of all the data

normally, when the page is loaded, all the data is obtained and rendered into the table. In the middle, you must also pass in paging parameters, such as page-index and page-no, which are used to control page paging.

of course, you can also get some list data that meet the criteria based on some query criteria on the page.

now there is a situation, for example, I have filtered out two pages of list data that meet the criteria according to the status of the product on the shelf. By default, I see the first page, but when I click on the second page, it refreshes the page directly, querying the second page under all the data ~
, that is, when I click the button on the shelf to view the second page that meets the conditions, it triggers the page transformation of the @ current-change= "handleCurrentChange" function, but I don"t know how to pass in the status information. How to see the second page in the shelf < del > ~ < / del >

The

code is not around. I can"t paste it. Friends who understand what I mean will take a look at it first. Thank you!

Mar.12,2021

pass the parameters of Filter into your handleCurrentChange function when it calls the API for getting data

Menu