必威体育Betway必威体育官网
当前位置:首页 > IT技术

SmartBI笔录

时间:2019-08-17 14:41:05来源:IT技术作者:seo实验室小编阅读:77次「手机版」
 

smartbi

后端代码

@requestMAPPing(value = "recordTotView")
public String recordTotView(@RequestParam(value = "reCode", required = false) String reCode, 
      HttpServletRequest request, Model model){
   //显示汇总报表
   String hiddenParamPanel = request.getparameter("hiddenParamPanel");
   
   try {
      // 封装参数
      List<Param> paramList = new ArrayList<Param>();
      paramList.add(new Param("reCode", reCode, ""));
      // 报表地址
      String action = PropertisReadUtil.getProperty("britUrl") + "/vision/openresource.jsp";
      
      model.addAttribute("reCode", reCode);
      model.addAttribute("title", "预警报告");
      model.addAttribute("action", action);
      model.addAttribute("pwd", PropertisReadUtil.getProperty("britPwd"));
      model.addAttribute("user", "admin");
      model.addAttribute("resid", PropertisReadUtil.getProperty("ediis.properties","WN_BI_RES"));
      model.addAttribute("paramList", paramList);
      //model.addAttribute("smartbiCookie", UserUtils.getUser().getCookie());
      if (Tools.isNotempty(hiddenParamPanel)) {// 隐藏报表参数面板
         model.addAttribute("hiddenParamPanel", hiddenParamPanel);
      }
   } catch (Exception e) {
      logger.ERROR(e.getmessage(),e);
   }
   
   return "modules/ediis/wnListRe/wnListReForm2";
}

前端代码:

<iframe id="viewShow" class="height-450" style="width:100%;" frameborder="no" border="0"src="${action}?&resid=${resid}&user=${user}&password=${pwd}&param.reCode=${paramList[0].value}&parAMDisplay.reCode=${paramList[0].value}"></iframe>

相关阅读

分享到:

栏目导航

推荐阅读

热门阅读