页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
linenumberstrue
function main(simpleReport, simpleReportContext) {
 
    simpleReport._initExportMenu_new = simpleReport.initExportMenu;
    simpleReport.initExportMenu = function() {debugger;
      //  debugger;
        simpleReport._initExportMenu_new();
        this.exportMenu.removeItem("TXT"); //屏蔽CSV
        this.exportMenu.removeItem("CSV"); //屏蔽CSV
        this.exportMenu.removeItem("MHT"); //屏蔽HTML
        this.exportMenu.removeItem("PNG"); //屏蔽PNG
        this.exportMenu.removeItem("PDF"); //屏蔽PDF
        this.exportMenu.removeItem("WORD"); //屏蔽WORD
        var t = this;
        setTimeout(function() { // 异步插入到最后的也要异步删除
            t.exportMenu.removeItem('DATAPACKAGE');
        }, 0);
    } 
    //debugger;
    simpleReport.old_doExport = simpleReport.doExport;
    simpleReport.doExport = function(ev) {debugger;
        this.old_doExport(ev);
        debugger;
        this.exportMenu.panel.style.height = "";
        //上面是高度自适应
    }
}

...