After element-ui paging and modifying current-page, the view remains unchanged.

paging current-page is set

    //  
    searTenantHouseList() {
      this.pagination.currentPage = 1
      this.GetTenantHouseList()
    }

but this.pagination.currentPage still hasn"t changed after clicking search
and clicking the page number to jump this.pagination.currentPage still hasn"t changed
ask for advice

Jun.13,2022

:current-page.sync="currentPage3"

this will take effect


I have a similar situation,

          <el-pagination
            class="pagination"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="query.page"
            :page-sizes="[10, 20, 50]"
            :page-size="query.per_page"
            layout="total, sizes, prev, pager, next, jumper"
            :total="query.totalCount">
          </el-pagination>

then add "tableData.length & & query.totalCount > query.per_page" to it


generally with total, you will have a paging effect when you click. Check out


clipboard.png
take a closer look at the document, all of which have specific usage

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea857c-1ecb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea857c-1ecb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?