perf: 优化账号备份

This commit is contained in:
ibuler
2022-03-07 20:11:06 +08:00
parent 067fdd5993
commit f2e7cfa5de
4 changed files with 5 additions and 41 deletions

View File

@@ -238,7 +238,7 @@ export default [
children: [
{
path: '',
component: () => import('@/views/accounts/AccountBackupPlan/index.vue'),
component: () => import('@/views/accounts/AccountBackupPlan/AccountBackupPlanList'),
name: 'AccountBackupPlanIndex',
meta: { title: i18n.t('xpack.AccountBackupPlan.AccountBackupPlan') }
},

View File

@@ -1,16 +1,16 @@
<template>
<GenericListTable :table-config="tableConfig" :header-actions="headerActions" />
<GenericListPage :table-config="tableConfig" :header-actions="headerActions" />
</template>
<script>
import { GenericListTable } from '@/layout/components'
import { GenericListPage } from '@/layout/components'
import { DetailFormatter } from '@/components/TableFormatters'
import { openTaskPage } from '@/utils/jms'
export default {
name: 'AccountBackupPlanList',
components: {
GenericListTable
GenericListPage
},
data() {
const vm = this

View File

@@ -3,7 +3,7 @@
:data="iData"
show-checkbox
node-key="id"
:default-expand-all="false"
:default-expand-all="true"
:default-checked-keys="value"
:props="defaultProps"
v-bind="$attrs"

View File

@@ -1,36 +0,0 @@
<template>
<TabPage :active-menu.sync="config.activeMenu" :submenu="config.submenu">
<keep-alive>
<component :is="config.activeMenu" />
</keep-alive>
</TabPage>
</template>
<script>
import { TabPage } from '@/layout/components'
import AccountBackupPlanList from './AccountBackupPlanList'
export default {
name: 'Index',
components: {
TabPage,
AccountBackupPlanList
},
data() {
return {
config: {
activeMenu: 'AccountBackupPlanList',
submenu: [
{
title: this.$t('xpack.AccountBackupPlan.AccountBackupPlan'),
name: 'AccountBackupPlanList'
}
]
}
}
}
}
</script>
<style scoped>
</style>