diff --git a/src/pages/Container/Supervision/Supervision/User/Add/index.js b/src/pages/Container/Supervision/Supervision/User/Add/index.js index 062dd5e..9540a40 100644 --- a/src/pages/Container/Supervision/Supervision/User/Add/index.js +++ b/src/pages/Container/Supervision/Supervision/User/Add/index.js @@ -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) => {