index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <base-side-page
  3. @cancel="cancelSidePage"
  4. :title="$t('compute.text_233')"
  5. icon="res-servicecatalog"
  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 :options="singleActions" :row="detailData" button-type="link" button-size="small" />
  13. </template>
  14. <component
  15. :is="params.windowData.currentTab"
  16. :res-id="detailData.network_id"
  17. :data="detailData"
  18. :on-manager="onManager"
  19. :getParams="getParams" />
  20. </base-side-page>
  21. </template>
  22. <script>
  23. import SingleActionsMixin from '../mixins/singleActions'
  24. import ColumnsMixin from '../mixins/columns'
  25. import SidePageMixin from '@/mixins/sidePage'
  26. import WindowsMixin from '@/mixins/windows'
  27. import Actions from '@/components/PageList/Actions'
  28. export default {
  29. name: 'NetwrokSidepage',
  30. components: {
  31. Actions,
  32. },
  33. mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin],
  34. data () {
  35. return {
  36. detailTabs: [
  37. { label: this.$t('compute.text_240'), key: 'event-drawer' },
  38. ],
  39. }
  40. },
  41. computed: {
  42. getParams () {
  43. return {
  44. host: this.data.id,
  45. }
  46. },
  47. },
  48. }
  49. </script>