//定义报表URL,通过内置参数 servletURL、reportName 获取对应模板的路径和名称 var url=servletURL+"?viewlet="+formName; //遍历参数面板控件,获取对应的参数值。 $.each(this.options.form.name_widgets,function(i,item) { if(item.options.type!== 'label'&&item.getName()!="PARA"&&item.getName()!="SEARCH"&&item.getName()!="EXPORT") { url+="&"+item.getName()+"="+item.getValue(); } }); //在URL上加上打印参数 url+="&format=excel&extype=simple&__filename__="+exportName; window.location=encodeURI(encodeURI(url));//转码导出