|
|
@ -16,7 +16,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
import { reactive, h } from 'vue' |
|
|
|
import { reactive, h } from 'vue' |
|
|
|
import { NIcon } from 'naive-ui' |
|
|
|
import { NEllipsis, NIcon } from 'naive-ui' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { |
|
|
|
import { |
|
|
|
HomeOutlined, |
|
|
|
HomeOutlined, |
|
|
@ -90,12 +90,12 @@ export function useDataList() { |
|
|
|
const projectCode = route.params.projectCode || '' |
|
|
|
const projectCode = route.params.projectCode || '' |
|
|
|
state.menuOptions = [ |
|
|
|
state.menuOptions = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: t('menu.home'), |
|
|
|
label: () => h(NEllipsis, null, { default: () => t('menu.home') }), |
|
|
|
key: 'home', |
|
|
|
key: 'home', |
|
|
|
icon: renderIcon(HomeOutlined) |
|
|
|
icon: renderIcon(HomeOutlined) |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: t('menu.project'), |
|
|
|
label: () => h(NEllipsis, null, { default: () => t('menu.project') }), |
|
|
|
key: 'projects', |
|
|
|
key: 'projects', |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
icon: renderIcon(ProfileOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
@ -141,7 +141,7 @@ export function useDataList() { |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: t('menu.resources'), |
|
|
|
label: () => h(NEllipsis, null, { default: () => t('menu.resources') }), |
|
|
|
key: 'resource', |
|
|
|
key: 'resource', |
|
|
|
icon: renderIcon(FolderOutlined), |
|
|
|
icon: renderIcon(FolderOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
@ -183,7 +183,8 @@ export function useDataList() { |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: t('menu.data_quality'), |
|
|
|
label: () => |
|
|
|
|
|
|
|
h(NEllipsis, null, { default: () => t('menu.data_quality') }), |
|
|
|
key: 'data-quality', |
|
|
|
key: 'data-quality', |
|
|
|
icon: renderIcon(ContainerOutlined), |
|
|
|
icon: renderIcon(ContainerOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
@ -200,13 +201,14 @@ export function useDataList() { |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: t('menu.datasource'), |
|
|
|
label: () => |
|
|
|
|
|
|
|
h(NEllipsis, null, { default: () => t('menu.datasource') }), |
|
|
|
key: 'datasource', |
|
|
|
key: 'datasource', |
|
|
|
icon: renderIcon(DatabaseOutlined), |
|
|
|
icon: renderIcon(DatabaseOutlined), |
|
|
|
children: [] |
|
|
|
children: [] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: t('menu.monitor'), |
|
|
|
label: () => h(NEllipsis, null, { default: () => t('menu.monitor') }), |
|
|
|
key: 'monitor', |
|
|
|
key: 'monitor', |
|
|
|
icon: renderIcon(DesktopOutlined), |
|
|
|
icon: renderIcon(DesktopOutlined), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
@ -247,7 +249,7 @@ export function useDataList() { |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: t('menu.security'), |
|
|
|
label: () => h(NEllipsis, null, { default: () => t('menu.security') }), |
|
|
|
key: 'security', |
|
|
|
key: 'security', |
|
|
|
icon: renderIcon(SafetyCertificateOutlined), |
|
|
|
icon: renderIcon(SafetyCertificateOutlined), |
|
|
|
children: |
|
|
|
children: |
|
|
|