-
leiz 小试身手Lv3
发表于2020-6-3 17:13
楼主
BI目前导出的时候默认选中的是当前页,如果想设置默认导出所有页,使用以下脚本即可实现:
复制代码亲测可用~~
- ReportPageHtml.prototype.getExportDlg = function(thiswindow) {
- _getCustomDlg("ebi/user/reportpageshow/export/exportdlg.js", "ExportDlg",
- function(dlg) {
- dlg._onClickFormat = function(ele, isWordReport) {
- this._checkRadio(ele);
- var format = ele.childNodes[0].value || ele.firstElementChild.value;
- this._onClickRange(this.xui.getDomById("_exportdlg_xml_range_allpages_td"));
- var pagescope = this.xui.getDomById("_exportdlg_xml_range_selpages_td");
- pagescope.style.display = format == "excel" ? "" : "none";
- var pagenation = this.xui.getDomById("_exportdlg_xml_pagenation_tr");
- pagenation.style.display = "none";
- var is2007 = this.xui.getDomById("_exportdlg_xml_2007_tr");
- is2007.style.display = format == "excel" ? "" : "none";
- var zip = this.xui.getDomById("_exportdlg_xml_zip");
- zip.checked = format == "html";
- zip.disabled = format == "html";
- var full = this.xui.getDomById("_exportdlg_xml_full_tr");
- full.style.display = "none";
- if (format == "csv"
- && typeof (this.exportParam.wnd.ChartUtil) != "undefined") {
- zip.checked = true;
- zip.disabled = true;
- }
- };
- dlg.showDialog(thiswindow);
- });
- };