window.location = encodeURI(encodeURI("${servletURL}?viewlet=报表路径"));
https://help.fanruan.com/finereport/doc-view-2128.html
window.open('/WebReport/ReportServer?reportlet=请等待.cpt&ZTX_='+ztx+'&XMBH_='+xmbh+'');
上边是普通模板,FRM 把 ReportServer?reportlet 改成 form?viewlet