zoukankan      html  css  js  c++  java
  • vue element 分页

       <el-pagination
            :current-page="currentPage"
            :page-sizes="[10, 30, 50]"
            :page-size="pageSize"
            layout="total, sizes, prev, pager, next, jumper"
            :total="totalCount"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
          />
     
      handleSizeChange(val) {
          // console.log("每页" + val + "条");
          // this.pageSize 是请求表格数据接口中的参数 设置表格每页显示多少条数据
          this.pageSize = val
          this.loadTableData() // 调表格数据的接口
        },
        handleCurrentChange(val) {
          this.currentPage = val
          this.loadTableData()
        },
     
    loadTableData() {
          orderList({
            pageNo: this.currentPage,
            pageSize: this.pageSize,
            orderBy: 'update_time',
            descending: true, // true 倒叙
            map: {
              search: this.searchinfo.trim()
            }
          }).then((res) => {
            // console.log(res)
            if (res.status === 200) {
              this.tableData = res.data
              this.totalCount = res.fsp.recordCount
            } else {
              this.$message.error(res.msg)
            }
          })
        },
    不求大富大贵,但求一生平凡
  • 相关阅读:
    安全事件关联分析方法
    网络安全公开数据集
    2019年汽车网络安全
    基于知识图谱的APT组织追踪治理——实践性比较强
    Hutool中常用的工具类和方法
    阿里云短信服务
    Java8实现List转Map
    centos下安装nodejs
    微信小程序,联系客服
    mysql空闲连接
  • 原文地址:https://www.cnblogs.com/ylblogs/p/15481528.html
Copyright © 2011-2022 走看看