Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
A
agcs2.0-web
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • liang
  • agcs2.0-web
  • Repository

Switch branch/tag
  • agcs2.0-web
  • src
  • components
  • TabComponents
  • mixin.js
Find file
BlameHistoryPermalink
  • miaojiale's avatar
    修改分页 · e21b3a91
    miaojiale authored 2 years ago
    e21b3a91
mixin.js 440 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
const mixin = {
  data() {
    return {
      total: 0,
      pageIndex: 1,
      pageSize: 10,
      pageSizes: [10, 20, 50, 100],
    }
  },
  methods: {
    // 跳转页码
    handleCurrentChange(val) {
      this.pageIndex = val
      this.handleSearch()
    },

    // 切换页面显示条数
    handleSizeChange(val) {
      this.pageIndex = 1
      this.pageSize = val
      this.handleSearch()
    },
  },
}
export default mixin

Replace mixin.js

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.