From ea6996ca6d5587f681dafaee937c7d7e0a06cf5c Mon Sep 17 00:00:00 2001 From: menxipeng Date: Fri, 24 Oct 2025 23:24:29 +0800 Subject: [PATCH] qqq --- src/components/pages/CompanyPermissionsPage.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/pages/CompanyPermissionsPage.tsx b/src/components/pages/CompanyPermissionsPage.tsx index 93964ff..4a784bf 100644 --- a/src/components/pages/CompanyPermissionsPage.tsx +++ b/src/components/pages/CompanyPermissionsPage.tsx @@ -36,6 +36,8 @@ interface UserData { phonenumber: string status: string loginDate: string + password: string + provinceName: string dept: { deptName: string } @@ -211,6 +213,7 @@ export default function CompanyPermissionsPage() { 用户信息 角色 + 所属省份 部门/机构 联系方式 最后登录 @@ -221,13 +224,13 @@ export default function CompanyPermissionsPage() { {loading ? ( - +
加载中...
) : users.length === 0 ? ( - +
暂无数据
@@ -238,6 +241,10 @@ export default function CompanyPermissionsPage() { const roleInfo = getRoleInfo(roleKey) const RoleIcon = roleInfo.icon + // 判断是否显示"总公司":总公司管理员(admin)或总商户 + const showHeadquarters = roleKey === 'admin' || (roleKey === 'merchant' && user.admin) + const provinceDisplay = showHeadquarters ? '总公司' : (user.provinceName || '-') + return ( @@ -252,6 +259,9 @@ export default function CompanyPermissionsPage() { {userRole?.roleName || '未知角色'} + +
{provinceDisplay}
+
{user.dept?.deptName || '-'}