|
|
|
@ -41,7 +41,7 @@ import {
|
|
|
|
|
SlackOutlined, |
|
|
|
|
EnvironmentOutlined, |
|
|
|
|
KeyOutlined, |
|
|
|
|
SafetyOutlined, |
|
|
|
|
SafetyOutlined |
|
|
|
|
} from '@vicons/antd' |
|
|
|
|
|
|
|
|
|
export function useDataList() { |
|
|
|
@ -54,12 +54,12 @@ export function useDataList() {
|
|
|
|
|
const localesOptions = [ |
|
|
|
|
{ |
|
|
|
|
label: 'English', |
|
|
|
|
key: 'en_US', |
|
|
|
|
key: 'en_US' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '中文', |
|
|
|
|
key: 'zh_CN', |
|
|
|
|
}, |
|
|
|
|
key: 'zh_CN' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
const state = reactive({ |
|
|
|
@ -68,7 +68,7 @@ export function useDataList() {
|
|
|
|
|
userDropdownOptions: [], |
|
|
|
|
menuOptions: [], |
|
|
|
|
headerMenuOptions: [], |
|
|
|
|
sideMenuOptions: [], |
|
|
|
|
sideMenuOptions: [] |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const changeMenuOption = (state: any) => { |
|
|
|
@ -77,7 +77,7 @@ export function useDataList() {
|
|
|
|
|
label: t('menu.home'), |
|
|
|
|
key: 'home', |
|
|
|
|
icon: renderIcon(HomeOutlined), |
|
|
|
|
isShowSide: false, |
|
|
|
|
isShowSide: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.project'), |
|
|
|
@ -88,12 +88,12 @@ export function useDataList() {
|
|
|
|
|
{ |
|
|
|
|
label: t('menu.workflow_monitoring'), |
|
|
|
|
key: 'workflow-monitoring', |
|
|
|
|
icon: renderIcon(FundProjectionScreenOutlined), |
|
|
|
|
icon: renderIcon(FundProjectionScreenOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.workflow_relationships'), |
|
|
|
|
key: 'workflow-relationships', |
|
|
|
|
icon: renderIcon(PartitionOutlined), |
|
|
|
|
icon: renderIcon(PartitionOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.workflow'), |
|
|
|
@ -102,23 +102,23 @@ export function useDataList() {
|
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
label: t('menu.workflow_definition'), |
|
|
|
|
key: 'workflow-definition', |
|
|
|
|
key: 'workflow-definition' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.workflow_instance'), |
|
|
|
|
key: 'workflow-instance', |
|
|
|
|
key: 'workflow-instance' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.task_instance'), |
|
|
|
|
key: 'task-instance', |
|
|
|
|
key: 'task-instance' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.task_definition'), |
|
|
|
|
key: 'task-definition', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
key: 'task-definition' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.resources'), |
|
|
|
@ -129,7 +129,7 @@ export function useDataList() {
|
|
|
|
|
{ |
|
|
|
|
label: t('menu.file_manage'), |
|
|
|
|
key: 'file-manage', |
|
|
|
|
icon: renderIcon(FileSearchOutlined), |
|
|
|
|
icon: renderIcon(FileSearchOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.udf_manage'), |
|
|
|
@ -138,22 +138,22 @@ export function useDataList() {
|
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
label: t('menu.resource_manage'), |
|
|
|
|
key: 'resource-manage', |
|
|
|
|
key: 'resource-manage' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.function_manage'), |
|
|
|
|
key: 'function-manage', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
key: 'function-manage' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.datasource'), |
|
|
|
|
key: 'datasource', |
|
|
|
|
icon: renderIcon(DatabaseOutlined), |
|
|
|
|
isShowSide: false, |
|
|
|
|
children: [], |
|
|
|
|
children: [] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.monitor'), |
|
|
|
@ -168,17 +168,17 @@ export function useDataList() {
|
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
label: t('menu.master'), |
|
|
|
|
key: 'master', |
|
|
|
|
key: 'master' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.worker'), |
|
|
|
|
key: 'worker', |
|
|
|
|
key: 'worker' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.db'), |
|
|
|
|
key: 'db', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
key: 'db' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.statistical_manage'), |
|
|
|
@ -187,11 +187,11 @@ export function useDataList() {
|
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
label: t('menu.statistics'), |
|
|
|
|
key: 'statistics', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
key: 'statistics' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.security'), |
|
|
|
@ -202,45 +202,45 @@ export function useDataList() {
|
|
|
|
|
{ |
|
|
|
|
label: t('menu.tenant_manage'), |
|
|
|
|
key: 'tenant-manage', |
|
|
|
|
icon: renderIcon(UsergroupAddOutlined), |
|
|
|
|
icon: renderIcon(UsergroupAddOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.user_manage'), |
|
|
|
|
key: 'user-manage', |
|
|
|
|
icon: renderIcon(UserAddOutlined), |
|
|
|
|
icon: renderIcon(UserAddOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.alarm_group_manage'), |
|
|
|
|
key: 'alarm-group-manage', |
|
|
|
|
icon: renderIcon(WarningOutlined), |
|
|
|
|
icon: renderIcon(WarningOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.alarm_instance_manage'), |
|
|
|
|
key: 'alarm-instance-manage', |
|
|
|
|
icon: renderIcon(InfoCircleOutlined), |
|
|
|
|
icon: renderIcon(InfoCircleOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.worker_group_manage'), |
|
|
|
|
key: 'worker-group-manage', |
|
|
|
|
icon: renderIcon(ControlOutlined), |
|
|
|
|
icon: renderIcon(ControlOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.yarn_queue_manage'), |
|
|
|
|
key: 'yarn-queue-manage', |
|
|
|
|
icon: renderIcon(SlackOutlined), |
|
|
|
|
icon: renderIcon(SlackOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.environmental_manage'), |
|
|
|
|
key: 'environmental-manage', |
|
|
|
|
icon: renderIcon(EnvironmentOutlined), |
|
|
|
|
icon: renderIcon(EnvironmentOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('menu.token_manage'), |
|
|
|
|
key: 'token-manage', |
|
|
|
|
icon: renderIcon(SafetyOutlined), |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
icon: renderIcon(SafetyOutlined) |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -256,7 +256,7 @@ export function useDataList() {
|
|
|
|
|
label: item.label, |
|
|
|
|
key: item.key, |
|
|
|
|
icon: item.icon, |
|
|
|
|
isShowSide: item.isShowSide, |
|
|
|
|
isShowSide: item.isShowSide |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
@ -267,18 +267,18 @@ export function useDataList() {
|
|
|
|
|
{ |
|
|
|
|
label: t('userDropdown.profile'), |
|
|
|
|
key: 'profile', |
|
|
|
|
icon: renderIcon(UserOutlined), |
|
|
|
|
icon: renderIcon(UserOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('userDropdown.password'), |
|
|
|
|
key: 'password', |
|
|
|
|
icon: renderIcon(KeyOutlined), |
|
|
|
|
icon: renderIcon(KeyOutlined) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: t('userDropdown.logout'), |
|
|
|
|
key: 'logout', |
|
|
|
|
icon: renderIcon(LogoutOutlined), |
|
|
|
|
}, |
|
|
|
|
icon: renderIcon(LogoutOutlined) |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -286,6 +286,6 @@ export function useDataList() {
|
|
|
|
|
state, |
|
|
|
|
changeHeaderMenuOptions, |
|
|
|
|
changeMenuOption, |
|
|
|
|
changeUserDropdown, |
|
|
|
|
changeUserDropdown |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|