layui吧 关注:388贴子:1,035
  • 2回复贴,共1

新手 分页显示不了呀

只看楼主收藏回复

新手 分页显示不了呀


IP属地:广东来自iPhone客户端1楼2019-03-15 21:17回复
    $(function () {
    layui.use(['table', 'layer'], function () {
    layer = layui.layer, layuiTable = layui.table;
    tabSalesList = layuiTable.render({
    elem: "#JFTZTJ",
    totalRow: true,
    url: '/DailyRoutine/MembershipManagement/OpSalesList',
    cols: [[
    { title: '', type: 'numbers', align: 'center', width: 40 },
    { title: '调整日期', field: 'StrDayBreak', align: 'center', width: 116 },
    { title: 'VIP卡号', field: 'VIPNumber', align: 'center', width: 105 },
    { title: 'VIP姓名', field: 'VIPName', align: 'center', width: 105 },
    { title: '调整类型', field: 'AdjustTheType', align: 'center', width: 105 },
    { title: '调整积分', field: 'AdjustmentIntegral', align: 'center', totalRow: true, width: 105 },
    { title: '备注', field: 'Remark', align: 'center', width: 105 },
    { title: '操作人', field: 'OperationPersonnel', align: 'center', width: 105 },
    ]],
    page: {//分页
    limit: 5,//默认几条数据一页
    limits: [5, 10, 15, 20, 25, 30]//可选几条一页
    }
    })
    layuiTable.on('row(JFTZTJ)', function (obj) {
    //标记选中样式
    obj.tr.addClass('layui-table-click')
    .siblings().removeClass('layui-table-click');
    //单击选中单选框
    obj.tr.find('div.layui-unselect.layui-form-radio').click();
    });
    })
    })


    IP属地:湖南2楼2019-07-13 15:56
    回复
      2025-06-30 00:50:44
      广告
      看官方例子做 不要自己想当然


      IP属地:浙江3楼2019-07-18 17:56
      回复