报表tab默认选择标签

This commit is contained in:
wangxin
2018-07-10 13:51:33 +08:00
parent 31a95bde28
commit 96634ac0ba
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ import com.nis.web.controller.BaseController;
public class ReportController extends BaseController {
@RequestMapping("/list")
public String list(@ModelAttribute("bean") SearchReport bean,Model model, HttpServletRequest request, HttpServletResponse response) {
initReportCondition(model, bean);
// initReportCondition(model, bean);
return "/report/list";
}
}

View File

@@ -22,7 +22,8 @@
$(".Wdate").attr("value",'');
$("#searchForm")[0].reset();
});
if(!"${bean.reportBusinessType}"){
if(!"${bean.reportBusinessType}"){//default
$("#reportBusinessType").val("label_report");
ajaxReport("/report/ajaxNtcTagReport","#label");
}else if("${bean.reportBusinessType}"=="label_report"){
ajaxReport("/report/ajaxNtcTagReport","#label");