Browse Source

(*)超管权限修改

master
peng.peng 1 year ago
parent
commit
651d0ee246
  1. 2
      web/client/src/sections/dataQuality/nav-item.js
  2. 2
      web/client/src/sections/safetySpecification/nav-item.js

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

@ -6,7 +6,7 @@ const SubMenu = Menu.SubMenu;
export function getNavItem(user) { export function getNavItem(user) {
return ( return (
user?.role == '系统管理员' && <SubMenu key="dataQuality" icon={<CarryOutOutlined />} title='数据质量'> user?.username == 'SuperAdmin' && <SubMenu key="dataQuality" icon={<CarryOutOutlined />} title='数据质量'>
<Menu.Item key="documentLibrary"> <Menu.Item key="documentLibrary">
<Link to="/dataQuality/documentLibrary">标准文档库</Link> <Link to="/dataQuality/documentLibrary">标准文档库</Link>

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

@ -6,7 +6,7 @@ const SubMenu = Menu.SubMenu;
export function getNavItem(user) { export function getNavItem(user) {
return ( return (
user?.role == '系统管理员' && <SubMenu key="safetySpecification" icon={<CarryOutOutlined />} title='数据安全规范'> user?.username == 'SuperAdmin' && <SubMenu key="safetySpecification" icon={<CarryOutOutlined />} title='数据安全规范'>
<Menu.Item key="specificationLibrary"> <Menu.Item key="specificationLibrary">
<Link to="/safetySpecification/specificationLibrary">数据安全规范库</Link> <Link to="/safetySpecification/specificationLibrary">数据安全规范库</Link>
</Menu.Item> </Menu.Item>

Loading…
Cancel
Save