工具方法集

   // 处理删除列表最后一条数据,为空的情况,将分页往前推一页;

handleDelPage(type?) {
      if (type === 'del') {
        if (this.listParam.pageIndex > 1 && this.total > this.listParam.pageSize && (this.total - 1) % this.listParam.pageSize === 0) {
          this.listParam.pageIndex -= 1;
        }
      }
    },
posted @   ____chen  阅读(22)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· 字符编码:从基础到乱码解决
· Open-Sora 2.0 重磅开源!
点击右上角即可分享
微信分享提示