You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
748 B
18 lines
748 B
import React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
import { Menu } from 'antd';
|
|
import { FunnelPlotOutlined } from '@ant-design/icons';
|
|
import { Func } from '$utils';
|
|
const SubMenu = Menu.SubMenu;
|
|
|
|
export function getNavItem (user, dispatch) {
|
|
return Func.isAuthorized('STRUCTURE_MANAGE') && <SubMenu key="projectRegime" icon={<FunnelPlotOutlined />} title={'结构物管理'}>
|
|
{Func.isAuthorized('STRU_INFO_CONFIG') &&<Menu.Item key="information">
|
|
<Link to="/projectRegime/information">结构物基础信息管理</Link>
|
|
</Menu.Item>}
|
|
{Func.isAuthorized('QR_CODE_CONFIG') &&<Menu.Item key="qrCode">
|
|
<Link to="/projectRegime/qrCode">二维码管理</Link>
|
|
</Menu.Item>}
|
|
</SubMenu>
|
|
|
|
}
|