From 0c8224e424cd15f85647aeb9599dcf0e62665994 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Thu, 6 Aug 2026 15:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E4=B8=8E?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=A8=A1=E5=9D=97=E6=A0=B9=E6=8D=AE=20?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E7=9A=84=E8=A7=92=E8=89=B2=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=20=E5=90=8D=E4=B8=8B=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SystemSetting/UserPage.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 || []);