index.vue 895 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <base-side-page
  3. @cancel="cancelSidePage"
  4. :title="$t('helm.text_66')"
  5. icon="res-k8s-job"
  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. <component :is="params.windowData.currentTab" :output="params.options.output" :onManager="onManager" />
  13. </base-side-page>
  14. </template>
  15. <script>
  16. import Logs from './Logs'
  17. import SidePageMixin from '@/mixins/sidePage'
  18. import WindowsMixin from '@/mixins/windows'
  19. import Actions from '@/components/PageList/Actions'
  20. export default {
  21. name: 'K8sAnsibleplaybookSidePage',
  22. components: {
  23. Actions,
  24. Logs,
  25. },
  26. mixins: [SidePageMixin, WindowsMixin],
  27. data () {
  28. return {
  29. detailTabs: [
  30. { label: this.$t('helm.text_67'), key: 'logs' },
  31. ],
  32. }
  33. },
  34. }
  35. </script>