index.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <base-side-page
  3. @cancel="cancelSidePage"
  4. :title="$t('helm.text_95')"
  5. icon="res-k8s-repo"
  6. :res-name="detailData.name"
  7. :actions="params.actions"
  8. :current-tab="params.windowData.currentTab"
  9. :tabs="detailTabs"
  10. :loaded="loaded"
  11. @tab-change="handleTabChange">
  12. <template v-slot:actions>
  13. <actions :options="singleActions" :row="detailData" button-type="link" button-size="small" />
  14. </template>
  15. <component :is="params.windowData.currentTab" :res-id="data.id" :data="detailData" :onManager="onManager" resource="persistentvolumeclaims" />
  16. </base-side-page>
  17. </template>
  18. <script>
  19. import ColumnsMixin from '../mixins/columns'
  20. import SingleActionsMixin from '../mixins/singleActions'
  21. import Detail from './Detail'
  22. import SourceInformationSidepage from '@K8S/sections/SourceInformationSidepage'
  23. import SidePageMixin from '@/mixins/sidePage'
  24. import WindowsMixin from '@/mixins/windows'
  25. import Actions from '@/components/PageList/Actions'
  26. export default {
  27. name: 'K8SRepoSidePage',
  28. components: {
  29. Actions,
  30. Detail,
  31. SourceInformationSidepage,
  32. },
  33. mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
  34. data () {
  35. return {
  36. detailTabs: [
  37. { label: this.$t('helm.text_78'), key: 'detail' },
  38. { label: this.$t('dictionary.actions'), key: 'event-drawer' },
  39. ],
  40. }
  41. },
  42. }
  43. </script>