| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <base-side-page
- @cancel="cancelSidePage"
- :title="$t('compute.disk_backup')"
- icon="res-disk-backup"
- :res-name="detailData.name"
- :current-tab="params.windowData.currentTab"
- :tabs="detailTabs"
- :loaded="loaded"
- @tab-change="handleTabChange">
- <template v-slot:actions>
- <actions :options="singleActions" :row="detailData" button-type="link" button-size="small" />
- </template>
- <component
- :is="params.windowData.currentTab"
- :data="detailData"
- :res-id="data.id"
- :id="listId"
- :on-manager="onManager"
- :columns="columns"
- taskResource="compute-tasks" />
- </base-side-page>
- </template>
- <script>
- import SidePageMixin from '@/mixins/sidePage'
- import WindowsMixin from '@/mixins/windows'
- import Actions from '@/components/PageList/Actions'
- import SingleActionsMixin from '../mixins/singleActions'
- import ColumnsMixin from '../mixins/columns'
- import DiskBackupDetail from './Detail'
- export default {
- name: 'DiskBackupSidePage',
- components: {
- DiskBackupDetail,
- Actions,
- },
- mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
- data () {
- return {
- detailTabs: [
- { label: this.$t('compute.text_238'), key: 'disk-backup-detail' },
- { label: this.$t('table.title.task'), key: 'task-drawer' },
- { label: this.$t('compute.text_240'), key: 'event-drawer' },
- ],
- }
- },
- computed: {
- listId () {
- switch (this.params.windowData.currentTab) {
- case 'event-drawer':
- return 'EventListForDiskBackupSidePage'
- default:
- return ''
- }
- },
- },
- }
- </script>
|