Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法按查询内容导出excel,总是导出全部内容 #439

Closed
dugudongfangshuo opened this issue Dec 12, 2018 · 1 comment
Closed

Comments

@dugudongfangshuo
Copy link

1. 使用DataTables的源(CDN地址、本地源文件)

2. DataTables的版本

3. 开发语言、框架(Java/NodeJs/PHP、Vue/Ng2/React/JQuery)

4. 使用DataTables的配置信息

 $('#dt_basic').dataTable({
                "sDom": "<'dt-toolbar'<'col-xs-12 col-sm-6'f><'col-sm-6 col-xs-12 hidden-xs'lTC>r>" +
                "t" +
                "<'dt-toolbar-footer'<'col-sm-6 col-xs-12 hidden-xs'i><'col-xs-12 col-sm-6'p>>",
                "oTableTools": {
                    "aButtons": [
                        {
                            "sButtonText": "打印",
                            "sExtends": "print",
                            "sMessage": "问题列表 <i>(按 Esc 退出当前界面)</i>"
                        },
                        {
                            "sExtends": "xls",
                            "sButtonText": "导出表格",
                            "sSwfPath": "js/plugin/datatables/swf/copy_csv_xls_pdf.swf"
                        }
                    ],
                   
                },

                "autoWidth": true,
                "preDrawCallback": function () {
                    if (!responsiveHelper_dt_basic) {
                        responsiveHelper_dt_basic = new ResponsiveDatatablesHelper($('#dt_basic'), breakpointDefinition);
                    }
                },
                "rowCallback": function (nRow) {
                    responsiveHelper_dt_basic.createExpandIcon(nRow);
                },
                "order": [[0, 'desc']],
                "drawCallback": function (oSettings) {
                    responsiveHelper_dt_basic.respond();
                },
                "oLanguage": {
                    "sProcessing": "<img src='/images/datatable_loading.gif'>  努力加载数据中.",
                    "sLengthMenu": "每页显示 _MENU_ 条记录",
                    "sZeroRecords": "抱歉, 没有找到",
                    "sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
                    "sInfoEmpty": "没有数据",
                    "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
                    "sZeroRecords": "没有检索到数据",
                    "sSearch": "模糊查询:  ",
                    "oPaginate": {
                        "sFirst": "首页",
                        "sPrevious": "前一页",
                        "sNext": "后一页",
                        "sLast": "尾页"
                    }
                },
            });

5. 错误信息或截图

6. 其他你认为可以帮助解决问题的信息

@occultskyrong
Copy link
Collaborator

建议查看 #356

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants