index.vue 1.2 KB

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