BootStrapTable 隐藏列

来源:互联网 发布:九泰基金 知乎 编辑:程序博客网 时间:2024/06/06 08:35
$(function () {
        $("#cbFollowUpList").bootstrapTable({
            url:'/npackage/naction_nfunc.action,
            height:500,
            dataType:"json",
            striped:true,
            cache:false,
            undefinedText:"-",
            sortName:"receiveDate",
            sortOrder:"asc",
            pagination:true,
            sidePagination:"server",
            toolbar:"#toolbar",
            pageNumber:1,
            pageSize:2,
            pageList:[5,10,25,50],
            paginationPreText:"上一页",
            paginationNextText:"下一页",
            columns:[{
                checkbox:true
            },
                {field:'taskId',title:'任务ID',width:80,align:'center'},
                {field:'businessType',title:'业务类型',width:130,align:'center'},
                {field:'taskState',title:'任务状态',width:100,align:'center'},
                {field:'taskLastName',title:'坐席姓名',width:100,align:'center'},
                {field:'userId',title:'客户ID',width:100,align:'center'},
                {field:'userName',title:'客户姓名',width:110,align:'center'},
                {field:'sysCreateDate',title:'创建时间',width:125,align:'center'},
                {field:'receiveDate',title:'任务领取时间',width:125,align:'center'},
                {field:'finishDate',title:'任务处理时间',width:125,align:'center'},
                {field:"dataTypeId",title:'dataTypeId',width:125,align:'center'}]
        });
        $('#cbFollowUpList').bootstrapTable('hideColumn', 'dataTypeId');
    });
0 0
原创粉丝点击