|
|
@ -29,7 +29,7 @@ export function getNavItem (user, dispatch) { |
|
|
|
user?.username == 'SuperAdmin' || isshow ? |
|
|
|
<SubMenu key="fillion" icon={<ReadOutlined />} title={'数据管理'}> |
|
|
|
{ |
|
|
|
user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'REPORTMANAGE' || i.resourceId === 'BUILDINGPROJECT' || i.resourceId === 'FILEMANAGE' || i.resourceId === 'PUBLICITYVIDEO') ? |
|
|
|
user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'REPORTMANAGE' || i.resourceId === 'BUILDINGPROJECT' || i.resourceId === 'VIDEOCENTER' || i.resourceId === 'ROADMANAGE' || i.resourceId === 'FILEMANAGE' || i.resourceId === 'BRIDGEMANAGE' || i.resourceId === 'PUBLICITYVIDEO') ? |
|
|
|
<SubMenu key="build" title={'建设'}> |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'REPORTMANAGE') ? |
|
|
|
<Menu.Item key="fillionpatrolroad"> |
|
|
@ -39,37 +39,35 @@ export function getNavItem (user, dispatch) { |
|
|
|
<Menu.Item key="fillionbuilding"> |
|
|
|
<Link to="/fillion/processsing">在建项目</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'FILEMANAGE') ? |
|
|
|
<Menu.Item key="fileCont"> |
|
|
|
<Link to="/fillion/file">档案管理</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'PUBLICITYVIDEO') ? |
|
|
|
<Menu.Item key="fillionpromotional"> |
|
|
|
<Link to="/fillion/promotional">宣传视频</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
</SubMenu> |
|
|
|
: '' |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'VIDEOCENTER' || i.resourceId === 'LUZHENG' || i.resourceId === 'ROADMANAGE' || i.resourceId === 'BRIDGEMANAGE' || i.resourceId === 'OVERLOADMANAGE') ? |
|
|
|
<SubMenu key="manage" title={'管理'}> |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'VIDEOCENTER') ? |
|
|
|
<Menu.Item key="fillionvideoCenter"> |
|
|
|
<Link to="/fillion/videoCenter">视频中心</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'LUZHENG') ? |
|
|
|
<Menu.Item key="luzheng"> |
|
|
|
<Link to="/fillion/luzheng">路政管理</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'ROADMANAGE') ? |
|
|
|
<Menu.Item key="filliontransportation"> |
|
|
|
<Link to="/fillion/transportation">道路管理</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'PUBLICITYVIDEO') ? |
|
|
|
<Menu.Item key="fillionpromotional"> |
|
|
|
<Link to="/fillion/promotional">宣传视频</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'BRIDGEMANAGE') ? |
|
|
|
<Menu.Item key="fillionbridge"> |
|
|
|
<Link to="/fillion/bridge">桥梁管理</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'FILEMANAGE') ? |
|
|
|
<Menu.Item key="fileCont"> |
|
|
|
<Link to="/fillion/file">档案管理</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
|
|
|
|
</SubMenu> |
|
|
|
: '' |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'OVERLOADMANAGE') ? |
|
|
|
<SubMenu key="manage" title={'管理'}> |
|
|
|
|
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'OVERLOADMANAGE') ? |
|
|
|
<Menu.Item key="fillioninfor"> |
|
|
|
<Link to="/fillion/infor">治超管理</Link> |
|
|
@ -79,12 +77,16 @@ export function getNavItem (user, dispatch) { |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'MAINTENANCEMANAGE' || i.resourceId === 'PATROLMANAGE' || i.resourceId === 'FEEDBACKMANAGE' || i.resourceId === 'CONSERVATIONMANAGE' || i.resourceId === 'MAINTENANCESPOTCHECK' || i.resourceId === 'ADJUSTLOG' || i.resourceId === 'ASSESSMANAGE') ? |
|
|
|
user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'MAINTENANCEMANAGE' || i.resourceId === 'LUZHENG' || i.resourceId === 'PATROLMANAGE' || i.resourceId === 'FEEDBACKMANAGE' || i.resourceId === 'CONSERVATIONMANAGE' || i.resourceId === 'MAINTENANCESPOTCHECK' || i.resourceId === 'ADJUSTLOG' || i.resourceId === 'ASSESSMANAGE') ? |
|
|
|
<SubMenu key="conserve" title={'养护'}> |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'MAINTENANCEMANAGE') ? |
|
|
|
<Menu.Item key="fillionhighways"> |
|
|
|
<Link to="/fillion/highways">管养管理</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'LUZHENG') ? |
|
|
|
<Menu.Item key="luzheng"> |
|
|
|
<Link to="/fillion/luzheng">路政管理</Link> |
|
|
|
</Menu.Item> : ''} |
|
|
|
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'PATROLMANAGE') ? |
|
|
|
<Menu.Item key="fillionpatrol"> |
|
|
|
<Link to="/fillion/patrol">巡查管理</Link> |
|
|
|