|
|
@ -26,6 +26,20 @@ import { |
|
|
|
SafetyCertificateOutlined, |
|
|
|
SafetyCertificateOutlined, |
|
|
|
UserOutlined, |
|
|
|
UserOutlined, |
|
|
|
LogoutOutlined, |
|
|
|
LogoutOutlined, |
|
|
|
|
|
|
|
FundProjectionScreenOutlined, |
|
|
|
|
|
|
|
PartitionOutlined, |
|
|
|
|
|
|
|
SettingOutlined, |
|
|
|
|
|
|
|
FileSearchOutlined, |
|
|
|
|
|
|
|
RobotOutlined, |
|
|
|
|
|
|
|
AppstoreOutlined, |
|
|
|
|
|
|
|
UsergroupAddOutlined, |
|
|
|
|
|
|
|
UserAddOutlined, |
|
|
|
|
|
|
|
WarningOutlined, |
|
|
|
|
|
|
|
InfoCircleOutlined, |
|
|
|
|
|
|
|
ControlOutlined, |
|
|
|
|
|
|
|
SlackOutlined, |
|
|
|
|
|
|
|
EnvironmentOutlined, |
|
|
|
|
|
|
|
KeyOutlined |
|
|
|
} from '@vicons/antd' |
|
|
|
} from '@vicons/antd' |
|
|
|
|
|
|
|
|
|
|
|
export function useDataList() { |
|
|
|
export function useDataList() { |
|
|
@ -47,34 +61,31 @@ export function useDataList() { |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '工作流监控', |
|
|
|
label: '工作流监控', |
|
|
|
key: 'workflow-monitoring', |
|
|
|
key: 'workflow-monitoring', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(FundProjectionScreenOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '工作流关系', |
|
|
|
label: '工作流关系', |
|
|
|
key: 'workflow-relationships', |
|
|
|
key: 'workflow-relationships', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(PartitionOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '工作流', |
|
|
|
label: '工作流', |
|
|
|
key: 'workflow', |
|
|
|
key: 'workflow', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(SettingOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '工作流定义', |
|
|
|
label: '工作流定义', |
|
|
|
key: 'workflow-definition', |
|
|
|
key: 'workflow-definition' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '工作流实例', |
|
|
|
label: '工作流实例', |
|
|
|
key: 'workflow-instance', |
|
|
|
key: 'workflow-instance' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '任务实例', |
|
|
|
label: '任务实例', |
|
|
|
key: 'task-instance', |
|
|
|
key: 'task-instance' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
@ -86,24 +97,22 @@ export function useDataList() { |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '文件管理', |
|
|
|
label: '文件管理', |
|
|
|
key: 'file-management', |
|
|
|
key: 'file-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(FileSearchOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'UDF管理', |
|
|
|
label: 'UDF管理', |
|
|
|
key: 'UDF-management', |
|
|
|
key: 'UDF-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(RobotOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '资源管理', |
|
|
|
label: '资源管理', |
|
|
|
key: 'resource-management', |
|
|
|
key: 'resource-management' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '函数管理', |
|
|
|
label: '函数管理', |
|
|
|
key: 'function-management', |
|
|
|
key: 'function-management' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
@ -120,34 +129,30 @@ export function useDataList() { |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '服务管理', |
|
|
|
label: '服务管理', |
|
|
|
key: 'service-management', |
|
|
|
key: 'service-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(AppstoreOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Master', |
|
|
|
label: 'Master', |
|
|
|
key: 'master', |
|
|
|
key: 'master' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Worker', |
|
|
|
label: 'Worker', |
|
|
|
key: 'worker', |
|
|
|
key: 'worker' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'DB', |
|
|
|
label: 'DB', |
|
|
|
key: 'DB', |
|
|
|
key: 'DB' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '统计管理', |
|
|
|
label: '统计管理', |
|
|
|
key: 'statistical-management', |
|
|
|
key: 'statistical-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(AppstoreOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Statistics', |
|
|
|
label: 'Statistics', |
|
|
|
key: 'statistics', |
|
|
|
key: 'statistics' |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
@ -161,42 +166,42 @@ export function useDataList() { |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '租户管理', |
|
|
|
label: '租户管理', |
|
|
|
key: 'tenant-management', |
|
|
|
key: 'tenant-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(UsergroupAddOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '用户管理', |
|
|
|
label: '用户管理', |
|
|
|
key: 'user-management', |
|
|
|
key: 'user-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(UserAddOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '告警组管理', |
|
|
|
label: '告警组管理', |
|
|
|
key: 'alarm-group-management', |
|
|
|
key: 'alarm-group-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(WarningOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '告警实例管理', |
|
|
|
label: '告警实例管理', |
|
|
|
key: 'alarm-instance-management', |
|
|
|
key: 'alarm-instance-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(InfoCircleOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Worker分组管理', |
|
|
|
label: 'Worker分组管理', |
|
|
|
key: 'worker-group-management', |
|
|
|
key: 'worker-group-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(ControlOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Yarn 队列管理', |
|
|
|
label: 'Yarn 队列管理', |
|
|
|
key: 'yarn-queue-management', |
|
|
|
key: 'yarn-queue-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(SlackOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '环境管理', |
|
|
|
label: '环境管理', |
|
|
|
key: 'environmental-management', |
|
|
|
key: 'environmental-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(EnvironmentOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '令牌管理', |
|
|
|
label: '令牌管理', |
|
|
|
key: 'token-management', |
|
|
|
key: 'token-management', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(KeyOutlined), |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
@ -241,9 +246,10 @@ export function useDataList() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const state = reactive({ |
|
|
|
const state = reactive({ |
|
|
|
|
|
|
|
isShowSide: false, |
|
|
|
menuOptions: menuOptions, |
|
|
|
menuOptions: menuOptions, |
|
|
|
languageOptions: languageOptions, |
|
|
|
languageOptions: languageOptions, |
|
|
|
profileOptions: profileOptions, |
|
|
|
profileOptions: profileOptions |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|