A区域和B区域的勾选编辑操作各自独立,按钮如何指定获取各自区域的勾选选项 -------------------------------------------------------------------------------------- 如何对事件进行优化以达到区分的效果呢? -------------------------------------------------------------------------------------- 勾选框事件: if (!window.lineboxes) { window.lineboxes = []; } lineboxes[lineboxes.length] = this; --------------------------------------------------------------------------------- 编辑按钮事件: var cr; if(window.lineboxes) { var cells = []; for (var i = 0; i < lineboxes.length; i++) { if (lineboxes[i].selected()) { cells[cells.length] = lineboxes[i].options.location; cr=FR.cellStr2ColumnRow(window.lineboxes[i].options.location); } }
if(cells.length==0 || cells.length>1){ FR.Msg.alert("警告","请选择一条数据进行编辑!"); }else{ var $iframe = $(" $iframe.attr("src", FR.cjkEncode( "${servletURL}?reportlet=/test/xxx.cpt&op=write_plus&id="+_g().getCellValue(3, cr.row))); // var o = { title : "编辑", width: 600, height: 400 }; FR.showDialog(o.title, o.width, o.height, $iframe,o); //首先弹出对话框 } } |
最佳回答 |
||||
0
|
|