https://help.fanruan.com/finereport/doc-view-3460.html var $span = $('.fr-checkbox-checkon'); //获取选中的复选框 var $tds = $("td").has($span); //定义选中复选框的单元格 var $trs = $("tr").has($tds); for (var i = 1; i < $trs.length; i++) { var shipname = $("td:eq(11)", $($trs[i])).find("div").html(); var voyage = $("td:eq(12)", $($trs[i])).find("div").html(); var customer = $("td:eq(13)", $($trs[i])).find("div").html(); var positionname = $("td:eq(20)", $($trs[i])).find("div").html(); //获取选中的G3单元格的值 //alert(i); //alert(shipname+voyage+customer); console.log(shipname+voyage+customer); window.open("${servletURL}?viewlet=/HHH/船/粒度测试报告.cpt&op=write&shipname="+shipname+"&voyage="+voyage+"&customer="+customer+"&positionname"+positionname+"&format=pdf&extype=simple"+"&__filename__="+customer); } //子报表设计完成后,点击填报预览,将子表的URL复制到&id之前 |