// 分页对象
page:{
size,
current,
total
}
const totalPage = Math.ceil((this.page.total - v)/this.page.size)
// v: 要删除的数据个数
this.page.current = this.page.current > totalPage ? totalPage : this.page.current
this.page.current = this.page.current < 1 ? 1 : this.page.current
// 把要删除的数据在删除请求前处理,用处理好的分页数据发请求
表格删除数据分页跳转处理
最新推荐文章于 2024-07-02 08:55:42 发布