lina/src/views/accounts/AccountDiscover/index.vue
2025-02-05 16:34:17 +08:00

49 lines
1.4 KiB
Vue

<template>
<TabPage :active-menu.sync="config.activeMenu" :submenu="config.submenu" :disabled="!hasValidLicense" />
</template>
<script>
import { TabPage } from '@/layout/components'
import { mapGetters } from 'vuex'
export default {
name: 'Index',
components: {
TabPage
},
data() {
return {
config: {
activeMenu: 'AccountDiscoverList',
submenu: [
{
title: this.$t('DiscoveredAccountList'),
name: 'AccountDiscoverList',
hidden: !this.$hasPerm('accounts.view_gatheredaccount'),
component: () => import('@/views/accounts/AccountDiscover/AccountDiscoverList.vue')
},
{
title: this.$t('AccountDiscoverTaskList'),
name: 'AccountDiscoverTaskList',
hidden: !this.$hasPerm('accounts.view_gatheraccountsautomation'),
component: () => import('@/views/accounts/AccountDiscover/AccountDiscoverTaskList.vue')
},
{
title: this.$t('ExecutionList'),
name: 'AccountDiscoverTaskExecutionList',
hidden: !this.$hasPerm('accounts.view_gatheraccountsexecution'),
component: () => import('@/views/accounts/AccountDiscover/TaskExecutionList.vue')
}
]
}
}
},
computed: {
...mapGetters(['hasValidLicense'])
}
}
</script>
<style scoped>
</style>