index.vue 731 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div>
  3. <page-header :title="$t('compute.text_113')" :tabs="tabOptions" :current-tab.sync="curTab" />
  4. <page-body>
  5. <component :is="curTab" :id="listId" />
  6. </page-body>
  7. </div>
  8. </template>
  9. <script>
  10. import PciList from '../pci/components/PciList'
  11. import GpuList from './components/List'
  12. export default {
  13. name: 'GPUIndex',
  14. components: {
  15. GpuList,
  16. PciList,
  17. },
  18. data () {
  19. return {
  20. listId: 'GpuList',
  21. curTab: 'gpu-list',
  22. }
  23. },
  24. computed: {
  25. tabOptions () {
  26. return [
  27. { label: this.$t('compute.pci.passthrough_device'), key: 'gpu-list' },
  28. { label: this.$t('compute.pci.passthrough_device_type'), key: 'pci-list' },
  29. ]
  30. },
  31. },
  32. }
  33. </script>