Browse Source

(*)机构管理员模块权限调整

master
peng.peng 1 year ago
parent
commit
d06aafc280
  1. 2
      web/client/src/sections/backups/nav-item.js
  2. 2
      web/client/src/sections/memberManagement/nav-item.js
  3. 2
      web/client/src/sections/metadataAcquisition/nav-item.js
  4. 8
      web/client/src/sections/metadataManagement/nav-item.js
  5. 2
      web/client/src/sections/organization/nav-item.js

2
web/client/src/sections/backups/nav-item.js

@ -7,7 +7,7 @@ const SubMenu = Menu.SubMenu;
export function getNavItem(user) {
return (
user?.role == '系统管理员' && <SubMenu key="数据备份恢复" icon={<ControlOutlined />} title='数据备份恢复'>
user?.username == 'SuperAdmin' && <SubMenu key="数据备份恢复" icon={<ControlOutlined />} title='数据备份恢复'>
<Menu.Item key="backups">
<Link to="/backups/restore">备份恢复</Link>
</Menu.Item>

2
web/client/src/sections/memberManagement/nav-item.js

@ -7,7 +7,7 @@ const SubMenu = Menu.SubMenu;
export function getNavItem(user) {
return (
user?.role == '系统管理员' && <Menu.Item icon={<UserOutlined />} key="auth">
user?.username == 'SuperAdmin' && <Menu.Item icon={<UserOutlined />} key="auth">
<Link to="/memberManagement/auth">用户管理</Link>
</Menu.Item>
// user?.role == '系统管理员' && <SubMenu key="memberManagement" icon={<UserOutlined />} title='用户管理'>

2
web/client/src/sections/metadataAcquisition/nav-item.js

@ -6,7 +6,7 @@ const SubMenu = Menu.SubMenu;
export function getNavItem(user) {
return (
user?.role == '系统管理员' && <SubMenu key="metadataAcquisition" icon={<BarChartOutlined />} title='元数据采集'>
user?.username == 'SuperAdmin' && <SubMenu key="metadataAcquisition" icon={<BarChartOutlined />} title='元数据采集'>
<Menu.Item key="Adapter">
<Link to="/metadataAcquisition/Adapter">适配器管理</Link>
</Menu.Item>

8
web/client/src/sections/metadataManagement/nav-item.js

@ -15,12 +15,12 @@ export function getNavItem(user) {
<Menu.Item key="businessMetadata">
<Link to="/metadataManagement/businessMetadata">业务元数据管理</Link>
</Menu.Item>
<Menu.Item key="metaModelManagement">
{user?.username == 'SuperAdmin' && <> <Menu.Item key="metaModelManagement">
<Link to="/metadataManagement/metaModelManagement">模型管理</Link>
</Menu.Item>
<Menu.Item key="tagManagement">
<Link to="/metadataManagement/tagManagement">标签管理</Link>
</Menu.Item>
<Menu.Item key="tagManagement">
<Link to="/metadataManagement/tagManagement">标签管理</Link>
</Menu.Item></>}
</>
}

2
web/client/src/sections/organization/nav-item.js

@ -7,7 +7,7 @@ const SubMenu = Menu.SubMenu;
export function getNavItem(user) {
return (
user?.role == '系统管理员' && <Menu.Item icon={<UserOutlined />} key="organization">
user?.username == 'SuperAdmin' && <Menu.Item icon={<UserOutlined />} key="organization">
<Link to="/organization">机构管理</Link>
</Menu.Item>
// user?.role == '系统管理员' && <SubMenu key="memberManagement" icon={<UserOutlined />} title='用户管理'>

Loading…
Cancel
Save