监管端 角色选择添加筛选条件

master
853931625@qq.com 2026-04-17 13:37:20 +08:00
parent 8844bb25ee
commit 30951578f5
1 changed files with 9 additions and 1 deletions

View File

@ -112,7 +112,15 @@ function Add(props) {
fetchData(); fetchData();
} }
props["rolesAll"]({ pageIndex: 1, pageSize: 1000 }).then((res) => { 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) => { const onSubmit = async (values) => {