-
tangmq 数据达人Lv4
发表于2019-7-16 10:17
楼主
报表计算、报表下钻,都可以看到这个等待的对话框:正在计算,请稍等……
如何屏蔽,分享一个客户端脚本
- function _zn(rpt, params, target, width, isconditions, wname, cellName) {
- if (window._currentreportiscalcing) {
- return;
- }
- if (((target === "workspace") || (target === "workspaceorblank")) && !window["_currentiszrelocating"]) {
- window["_currentiszrelocating"] = true;
- if (!window["_init_zself_flag"]) {
- window._init_zself_flag = function() {
- window["_currentiszrelocating"] = null;
- };
- }
- window.addEventListener ? window.addEventListener("error", window._init_zself_flag, false) : window.attachEvent("onerror", window._init_zself_flag);
- }
- if (!cellName && !wname) {
- var infos = getCellNameByEvent(window.lastclickevent);
- wname = infos.widgetid;
- cellName = infos.cellname;
- }
- var crt = createCalcReqTask();
- if (!!g_rptpage.getCalcInfo()) {
- var m = g_rptpage.getCalcInfo().getCalcParams();
- removeOldCalcSortInfo(m);
- var tabindexs = m.get("tabindexs");
- if (!tabindexs) {
- tabindexs = "";
- }
- if (g_rptpage.tabInfo.size() > 0) {
- if (tabindexs) tabindexs += ";";
- tabindexs += g_rptpage.tabInfo.export2str();
- }
- m.put("tabindexs", tabindexs);
- crt.addProperties(m);
- resolveGridsInfo(crt.options, g_rptpage.grids);
- resolveGridsInfo(crt.options, g_rptpage.hiddenGrids);
- }
- crt.setProperty("taskid", g_taskid);
- crt.setProperty("_srcrptid", g_rptid);
- crt.setProperty("_srccell", cellName);
- crt.setProperty("_srcgridid", wname);
- crt.setProperty("iscondition", isconditions);
- crt.setProperty("hiddencalcparams", true);
- var drillpath = g_rptpage._makeDrillPathInnerHtml();
- if ((target == "right") || (target == "bottom")) {
- drillpath = "";
- }
- crt.setProperty("drillpath", drillpath);
- crt.setProperty("bi_calc_dont_save_result", true);
- crt.addProperties(params);
- crt.setProperty("hiddendrillpath", g_rptpage._makeHiddenDrillPathInnerHtml());
-
- crt.setOnFinish(function(status) {
- _showZResult(status, target, width, params);
- });
- crt.setCalcReportId(rpt);
- crt.setResultTarget("none");
- crt.execute();
- }