序号显示带分页信息的连续编号,在序号列添加以下格式化代码即可。

{
                field: 'number',
                title: '序号',
                align:'center',
                width:45,
                formatter:function(value,row,index){
                    var pageSize=$('#logList').bootstrapTable('getOptions').pageSize,
                            pageNum=$('#logList').bootstrapTable('getOptions').pageNumber;
                    return pageSize*(pageNum-1)+index+1;
                }
            }

  

相关文章:

  • 2021-12-05
  • 2021-09-02
  • 2021-04-25
  • 2021-09-17
  • 2021-06-08
  • 2021-10-15
  • 2021-06-02
猜你喜欢
  • 2021-08-08
  • 2021-05-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2021-10-05
  • 2021-10-24
相关资源
相似解决方案