Detail.vue 816 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <detail
  3. :on-manager="onManager"
  4. :data="data"
  5. :base-info="baseInfo"
  6. :showDesc="false"
  7. :showName="false"
  8. :hiddenKeys="['status']" />
  9. </template>
  10. <script>
  11. import {
  12. getDevTypeColumn,
  13. getModelColumn,
  14. getVendorIdColumn,
  15. getDeviceIdColumn,
  16. getHotPluggableColumn,
  17. } from '../utils/columns'
  18. import WindowsMixin from '@/mixins/windows'
  19. export default {
  20. name: 'PciDetail',
  21. mixins: [WindowsMixin],
  22. props: {
  23. data: {
  24. type: Object,
  25. required: true,
  26. },
  27. onManager: {
  28. type: Function,
  29. required: true,
  30. },
  31. },
  32. data () {
  33. return {
  34. baseInfo: [
  35. getDevTypeColumn({ vm: this }),
  36. getModelColumn(),
  37. getVendorIdColumn(),
  38. getDeviceIdColumn(),
  39. getHotPluggableColumn(),
  40. ],
  41. }
  42. },
  43. }
  44. </script>