diff --git a/web/client/src/sections/fillion/nav-item.js b/web/client/src/sections/fillion/nav-item.js index 761d0d82..15ee696f 100644 --- a/web/client/src/sections/fillion/nav-item.js +++ b/web/client/src/sections/fillion/nav-item.js @@ -29,7 +29,7 @@ export function getNavItem (user, dispatch) { user?.username == 'SuperAdmin' || isshow ? } title={'数据管理'}> { - user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'REPORTMANAGE' || i.resourceId === 'BUILDINGPROJECT' || i.resourceId === 'FILEMANAGE') ? + 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') ? @@ -43,12 +43,16 @@ export function getNavItem (user, dispatch) { 档案管理 : ''} + {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'PUBLICITYVIDEO') ? + + 宣传视频 + : ''} : '' } { - user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'VIDEOCENTER' || i.resourceId === 'LUZHENG' || i.resourceId === 'ROADMANAGE' || i.resourceId === 'BRIDGEMANAGE') ? + user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'VIDEOCENTER' || i.resourceId === 'LUZHENG' || i.resourceId === 'ROADMANAGE' || i.resourceId === 'BRIDGEMANAGE' || i.resourceId === 'OVERLOADMANAGE') ? {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'VIDEOCENTER') ? @@ -66,6 +70,10 @@ export function getNavItem (user, dispatch) { 桥梁管理 : ''} + {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'OVERLOADMANAGE') ? + + 治超管理 + : ''} : '' } @@ -120,10 +128,7 @@ export function getNavItem (user, dispatch) { : '' } - {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'OVERLOADMANAGE') ? - - 治超管理 - : ''} + {/* 任务管理 */} @@ -139,10 +144,7 @@ export function getNavItem (user, dispatch) { 接口管理 */} - {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'PUBLICITYVIDEO') ? - - 宣传视频 - : ''} + : null ); }