1

过滤工作正常,直到我添加两个或更多日期范围过滤器 - 例如,只有一个日期范围列过滤器工作正常。

当我添加 2 个或更多日期范围列过滤器时,所有过滤器都停止工作(在任何过滤器中输入任何内容都会显示 0 输出)。

可能是什么问题呢?

        var oTable = $('#sample_editable_1').dataTable({
            "aLengthMenu": [
                [5, 15, 20, -1],
                [5, 15, 20, "All"] // change per page values here
            ],
            // set the initial value
            "iDisplayLength": 5,
            "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
            "sPaginationType": "bootstrap",
            "oLanguage": {
                "sLengthMenu": "_MENU_ records per page",
                "oPaginate": {
                    "sPrevious": "Prev",
                    "sNext": "Next"
                }
            },
            "fnDrawCallback": function( oSettings ) {
                //callback for fnDraw, otherwise we get an overflowed table
                //because datatables seem to update the width of the table
                //to a fixed value after redraw
                $("#sample_editable_1").css('width', '100%');
            }
            /*"aoColumnDefs": [{
                    'bSortable': false,
                    'aTargets': [0]
                }
            ]*/
        }).columnFilter(
           {
                 aoColumns: [
                                {
                                     type: "date-range"
                                },
                                {
                                     type: "text",
                                     bSmart: true
                                },
                                {
                                     type: "select",
                                     values: entities
                                },
                                {
                                     type: "text"
                                },
                                {
                                     type: "number"
                                },
                                {
                                     type: "text"
                                },
                                {
                                     type: "select",
                                     values: payment_form
                                },
                                {
                                     type: "date-range"
                                },
                                {
                                     type: "text"
                                },
                                {
                                     type: "select",
                                     values: check_status
                                },
                                {
                                     type: "text"
                                },
                                {
                                     type: "text"
                                },
                                {
                                     type: "text"
                                },
                             ]
           }
        );
4

0 回答 0