index.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <base-side-page
  3. @cancel="cancelSidePage"
  4. :title="$t('k8s.text_21')"
  5. icon="res-vminstance"
  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. :data="detailData"
  21. :serverColumns="columns"
  22. :res-id="data.id"
  23. :getParams="getParams"
  24. :on-manager="onManager"
  25. @refresh="refresh"
  26. @single-refresh="singleRefresh"
  27. @tab-change="handleTabChange" />
  28. </base-side-page>
  29. </template>
  30. <script>
  31. import SingleActionsMixin from '../mixins/singleActions'
  32. import ColumnsMixin from '../mixins/columns'
  33. import SidePageMixin from '@/mixins/sidePage'
  34. import WindowsMixin from '@/mixins/windows'
  35. import Actions from '@/components/PageList/Actions'
  36. export default {
  37. name: 'K8SKubeMachineSidePage',
  38. components: {
  39. Actions,
  40. },
  41. mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
  42. data () {
  43. return {
  44. detailTabs: [
  45. { label: this.$t('k8s.text_202'), key: 'event-drawer' },
  46. ],
  47. }
  48. },
  49. computed: {
  50. getParams () {
  51. return null
  52. },
  53. },
  54. }
  55. </script>