2025年4月6日18:25:14
parent
0e04d2fbfe
commit
e61157b33c
|
|
@ -67,7 +67,11 @@ public class UserEditController {
|
|||
}, new StringConverter<Role>() {
|
||||
@Override
|
||||
public String toString(Role object) {
|
||||
return object.getName();
|
||||
if (object != null) {
|
||||
System.out.println("姓名:" + object.getName() + " 是否选择:" + object.isSelected());
|
||||
return object.getName();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public class Role {
|
|||
private String description;
|
||||
private String status;
|
||||
private List<Permission> permissions;
|
||||
private SimpleBooleanProperty selected;
|
||||
private SimpleBooleanProperty selected = new SimpleBooleanProperty(false);
|
||||
|
||||
public Role(int id, String name, String description, String status) {
|
||||
this.id = id;
|
||||
|
|
@ -25,7 +25,6 @@ public class Role {
|
|||
this.description = description;
|
||||
this.status = status;
|
||||
this.permissions = new ArrayList<>();
|
||||
this.selected = new SimpleBooleanProperty(false);
|
||||
}
|
||||
|
||||
public Role() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue