屏蔽计算等待对话框

2173
1

tangmq 数据达人Lv4

发表于2019-7-16 10:17

楼主

报表计算、报表下钻,都可以看到这个等待的对话框:正在计算,请稍等……
如何屏蔽,分享一个客户端脚本

  1. function _zn(rpt, params, target, width, isconditions, wname, cellName) {
  2.         if (window._currentreportiscalcing) {
  3.                 return;
  4.         }
  5.         if (((target === "workspace") || (target === "workspaceorblank")) && !window["_currentiszrelocating"]) {
  6.                 window["_currentiszrelocating"] = true;
  7.                 if (!window["_init_zself_flag"]) {
  8.                         window._init_zself_flag = function() {
  9.                                 window["_currentiszrelocating"] = null;
  10.                         };
  11.                 }
  12.                 window.addEventListener ? window.addEventListener("error", window._init_zself_flag, false) : window.attachEvent("onerror", window._init_zself_flag);
  13.         }
  14.         if (!cellName && !wname) {
  15.                 var infos = getCellNameByEvent(window.lastclickevent);
  16.                 wname = infos.widgetid;
  17.                 cellName = infos.cellname;
  18.         }
  19.         var crt = createCalcReqTask();
  20.         if (!!g_rptpage.getCalcInfo()) {
  21.                 var m = g_rptpage.getCalcInfo().getCalcParams();
  22.                 removeOldCalcSortInfo(m);
  23.                 var tabindexs = m.get("tabindexs");
  24.                 if (!tabindexs) {
  25.                         tabindexs = "";
  26.                 }
  27.                 if (g_rptpage.tabInfo.size() > 0) {
  28.                         if (tabindexs) tabindexs += ";";
  29.                         tabindexs += g_rptpage.tabInfo.export2str();
  30.                 }
  31.                 m.put("tabindexs", tabindexs);
  32.                 crt.addProperties(m);
  33.                 resolveGridsInfo(crt.options, g_rptpage.grids);
  34.                 resolveGridsInfo(crt.options, g_rptpage.hiddenGrids);
  35.         }
  36.         crt.setProperty("taskid", g_taskid);
  37.         crt.setProperty("_srcrptid", g_rptid);
  38.         crt.setProperty("_srccell", cellName);
  39.         crt.setProperty("_srcgridid", wname);
  40.         crt.setProperty("iscondition", isconditions);
  41.         crt.setProperty("hiddencalcparams", true);
  42.         var drillpath = g_rptpage._makeDrillPathInnerHtml();
  43.         if ((target == "right") || (target == "bottom")) {
  44.                 drillpath = "";
  45.         }
  46.         crt.setProperty("drillpath", drillpath);
  47.         crt.setProperty("bi_calc_dont_save_result", true);
  48.         crt.addProperties(params);
  49.         crt.setProperty("hiddendrillpath", g_rptpage._makeHiddenDrillPathInnerHtml());
  50.        
  51.         crt.setOnFinish(function(status) {
  52.                 _showZResult(status, target, width, params);
  53.         });
  54.         crt.setCalcReportId(rpt);
  55.         crt.setResultTarget("none");
  56.         crt.execute();
  57. }
复制代码


最近看过此主题的会员

tanxzh

cuihr

chestnut

yangqh

13407717840

852828363

一一

zhangdarongzh

leiz

咏之

Ly_LJY

1212111121

三余无梦生33

贯佳睿

1个回答

只看楼主

辰哥 管理员

发表于2019-12-5 15:11

只看该作者

取消 关注该作者的回复

沙发

66666

登录后可回答问题,请登录注册

快速回复 返回顶部 返回列表

小时

全天响应

分钟

快速处理问题

工程师强势助力

明星产品
解决方案
联系合作

渠道咨询电话:137-0120-6790

技术支持QQ:400-0011-866(工作日9:00-18:00)

产品建议邮箱yixin@esensoft.com

关注我们

扫TA学习更多干货

一对一专家交流

版权所有© 2006-2024 北京亿信华辰软件有限责任公司 京ICP备07017321号 京公网安备11010802016281号