如图: 这是左上角查询按钮的JS: var joinData=function(){ var datas=[]; for(var i=0;i<FR.checkBoxes.length;i++){ var checkBox=FR.checkBoxes[i]; if(checkBox.getValue()===true){ var colRow=FR.cellStr2ColumnRow(checkBox.options.location); colRow.col++; var location=FR.columnRow2CellStr(colRow); var value=_g().getCellValue(location,null); datas[datas.length]=value; } } return datas.join("','"); } var data=joinData(); var url="http://localhost:8075/WebReport/ReportServer?reportlet=NDZYZB.cpt&op=write"+"&ids="+data; window.onbeforeunload=null; window.open(url); |