页面树结构

版本比较

标识

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

...

代码块
languagejs
linenumberstrue
collapsetrue
function main(simpleReport, simpleReportContext) {

    simpleReport._initExportMenu_new = simpleReport.initExportMenu;
    simpleReport.initExportMenu = function() {
        debugger;
        simpleReport._initExportMenu_new();
        this.exportMenu.removeItem("TXT"); //屏蔽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);
    }
}