监管端 角色选择添加筛选条件
parent
8844bb25ee
commit
30951578f5
|
|
@ -112,7 +112,15 @@ function Add(props) {
|
|||
fetchData();
|
||||
}
|
||||
props["rolesAll"]({ pageIndex: 1, pageSize: 1000 }).then((res) => {
|
||||
setRolesData(res.data);
|
||||
const arr = [];
|
||||
if (res.data && res.data.length > 0) {
|
||||
res.data.forEach((item) => {
|
||||
if (item.roleGroupId === "2008482924409827329") {
|
||||
arr.push(item);
|
||||
}
|
||||
});
|
||||
}
|
||||
setRolesData(arr);
|
||||
});
|
||||
}, []);
|
||||
const onSubmit = async (values) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue