diff --git a/src/components/SystemSetting/UserPage.tsx b/src/components/SystemSetting/UserPage.tsx index b973c43..ccb6208 100644 --- a/src/components/SystemSetting/UserPage.tsx +++ b/src/components/SystemSetting/UserPage.tsx @@ -128,9 +128,13 @@ export default function UserRolePage() { const params = { pageNum: userPagination.pageNum, pageSize: userPagination.pageSize, - orgId: userInfo?.orgId, - //siteId: stationId, + orgId: userInfo?.roleKey == "manager" ? userInfo?.orgId : currentStation?.orgId, + ...(userInfo?.roleKey == "manager" + ? {} + : { siteId: stationId } + ) }; + getUser(params).then(res => { if (res.code === 200) { setUserList(res.rows || []);