帆软实现一个单选按钮,可以统一设置其他单选按钮的选择状态

it2024-04-22  61

比如,选中单选按钮的一个选项,其他单选按钮的相同选项也被选中;取消选择,其他的也被取消选择 在普通报表中选中最上方的单选按钮的框进行组件设置,点击事件,点击添加事件,选中状态改变。 里面的js如下: var a = this.getValue(); var status = contentPane.getWidgetsByName(“status”); if(status.length>0){ $.each(status,function(i,item){ var cell = item.options.location; if(a.length0){ item.reset(); } contentPane.setCellValue(cell,null,a); }) }else{ contentPane.setCellValue(“B2”,null,a); if(a.length0){ contentPane.getWidgetByName(“status”).reset(); } } 可以实现该状态了。

最新回复(0)