|
@@ -243,55 +243,57 @@ export function useDataList() {
|
|
|
label: t('menu.security'),
|
|
|
key: 'security',
|
|
|
icon: renderIcon(SafetyCertificateOutlined),
|
|
|
- children:
|
|
|
- (userStore.getUserInfo as UserInfoRes).userType === 'ADMIN_USER' ? [
|
|
|
- {
|
|
|
- label: t('menu.tenant_manage'),
|
|
|
- key: `/security/tenant-manage`,
|
|
|
- icon: renderIcon(UsergroupAddOutlined)
|
|
|
- },
|
|
|
- {
|
|
|
- label: t('menu.user_manage'),
|
|
|
- key: `/security/user-manage`,
|
|
|
- icon: renderIcon(UserAddOutlined)
|
|
|
- },
|
|
|
- {
|
|
|
- label: t('menu.alarm_group_manage'),
|
|
|
- key: `/security/alarm-group-manage`,
|
|
|
- icon: renderIcon(WarningOutlined)
|
|
|
- },
|
|
|
- {
|
|
|
- label: t('menu.alarm_instance_manage'),
|
|
|
- key: `/security/alarm-instance-manage`,
|
|
|
- icon: renderIcon(InfoCircleOutlined)
|
|
|
- },
|
|
|
- {
|
|
|
- label: t('menu.worker_group_manage'),
|
|
|
- key: `/security/worker-group-manage`,
|
|
|
- icon: renderIcon(ControlOutlined)
|
|
|
- },
|
|
|
- {
|
|
|
- label: t('menu.yarn_queue_manage'),
|
|
|
- key: `/security/yarn-queue-manage`,
|
|
|
- icon: renderIcon(SlackOutlined)
|
|
|
- },
|
|
|
- {
|
|
|
- label: t('menu.environment_manage'),
|
|
|
- key: `/security/environment-manage`,
|
|
|
- icon: renderIcon(EnvironmentOutlined)
|
|
|
- },
|
|
|
- {
|
|
|
- label: t('menu.token_manage'),
|
|
|
- key: `/security/token-manage`,
|
|
|
- icon: renderIcon(SafetyOutlined)
|
|
|
- }
|
|
|
- ] : [
|
|
|
- {
|
|
|
- label: t('menu.token_manage'),
|
|
|
- key: `/security/token-manage`,
|
|
|
- icon: renderIcon(SafetyOutlined)
|
|
|
- }
|
|
|
- ]
|
|
|
+ children:
|
|
|
+ (userStore.getUserInfo as UserInfoRes).userType === 'ADMIN_USER'
|
|
|
+ ? [
|
|
|
+ {
|
|
|
+ label: t('menu.tenant_manage'),
|
|
|
+ key: `/security/tenant-manage`,
|
|
|
+ icon: renderIcon(UsergroupAddOutlined)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('menu.user_manage'),
|
|
|
+ key: `/security/user-manage`,
|
|
|
+ icon: renderIcon(UserAddOutlined)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('menu.alarm_group_manage'),
|
|
|
+ key: `/security/alarm-group-manage`,
|
|
|
+ icon: renderIcon(WarningOutlined)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('menu.alarm_instance_manage'),
|
|
|
+ key: `/security/alarm-instance-manage`,
|
|
|
+ icon: renderIcon(InfoCircleOutlined)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('menu.worker_group_manage'),
|
|
|
+ key: `/security/worker-group-manage`,
|
|
|
+ icon: renderIcon(ControlOutlined)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('menu.yarn_queue_manage'),
|
|
|
+ key: `/security/yarn-queue-manage`,
|
|
|
+ icon: renderIcon(SlackOutlined)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('menu.environment_manage'),
|
|
|
+ key: `/security/environment-manage`,
|
|
|
+ icon: renderIcon(EnvironmentOutlined)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: t('menu.token_manage'),
|
|
|
+ key: `/security/token-manage`,
|
|
|
+ icon: renderIcon(SafetyOutlined)
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ : [
|
|
|
+ {
|
|
|
+ label: t('menu.token_manage'),
|
|
|
+ key: `/security/token-manage`,
|
|
|
+ icon: renderIcon(SafetyOutlined)
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
}
|