制表器中的100万条记录无法进行下载。系统崩溃

时间:2019-07-07 01:48:56

标签: tabulator

Tabulator能够显示1百万条记录,当尝试下载到excel或csv或pdf时,系统崩溃。白屏

CSV

MFDtable.download("csv",mfd_report.csv",{bom:true})

Excel

MFDtable.download("xlsx", report_category + "_mfd_report.xlsx", 
{ sheetName: report_category })

PDF

MFDtable.download("pdf",report_category + "_mfd_report.pdf", {
            orientation: "landscape",
            title: report_header,
            autoTable:{ //advanced table styling
                theme:'striped',
                styles: {
                    fontSize: 8,
                    cellPadding:5,
                    //halign:'center'
                    //fillColor: [100, 255, 255]
                },
                columnStyles: {
                    //id: {fillColor: 255}
                },
                rowGroupStyles: {
                    // id: {fillColor: 60},
                    // fillColor: [255, 69, 0]
                },
                margin: {top: 60},
            },
        });

尝试生成100万条记录时,制表符很好,但下载选项崩溃并产生白屏

var MFDtable = new Tabulator("#MFDtable", {
                pagination: "local",
                paginationSize: 25,
                layout: layoutPlan,
                resizableColumns: true,
                tooltips: true,
                selectable: true,
                tooltipsHeader: true,
                groupToggleElement: "header",
                groupBy: t_groupBy,
                initialSort: t_initialSort,
                groupClosedShowCalcs: true,
                columns: t_columns,
                downloadDataFormatter: downloadFormatter,
                downloadReady: get_downloaded_blob,
                paginationSizeSelector: [25, 50, 75, 100]

            });

一切正常,直到制表符中的10万行为止。我尝试了40万次应用程序崩溃

0 个答案:

没有答案