修改获取角色接口错误
parent
c3f054ca19
commit
363edfed2c
|
|
@ -284,7 +284,7 @@ const RoleBindingModalComponent = (props) => {
|
|||
const getData = async () => {
|
||||
const { data } = await props["appMenuGetMenuRoleByMenuAttribution"]({ menuAttribution: props.menuAttribution });
|
||||
setSelectedRowKeys(data.map(item => item.roleId));
|
||||
selectedRowsRef.current = data.map(item => ({ id: item.roleId, permsGroupName: item.roleName }));
|
||||
selectedRowsRef.current = data.map(item => ({ id: item.roleId, roleName: item.roleName }));
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -295,7 +295,7 @@ const RoleBindingModalComponent = (props) => {
|
|||
const { success } = await props["appMenuGetMenuRoleByMenuAttributionSave"]({
|
||||
menuAttribution: props.menuAttribution,
|
||||
menuAttributionName: props.menuAttributionName,
|
||||
roleList: selectedRowsRef.current.map(item => ({ roleId: item.id, roleName: item.permsGroupName })),
|
||||
roleList: selectedRowsRef.current.map(item => ({ roleId: item.id, roleName: item.roleName })),
|
||||
});
|
||||
if (success) {
|
||||
message.success("保存成功");
|
||||
|
|
|
|||
Loading…
Reference in New Issue