Detail.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <detail
  3. :on-manager="onManager"
  4. :data="data"
  5. :base-info="baseInfo"
  6. resource="globalvpcs"
  7. statusModule="globalVpc" />
  8. </template>
  9. <script>
  10. import {
  11. getPublicScopeTableColumn,
  12. getBrandTableColumn,
  13. getAccountTableColumn,
  14. } from '@/utils/common/tableColumn'
  15. import {
  16. getUserTagColumn,
  17. getExtTagColumn,
  18. } from '@/utils/common/detailColumn'
  19. import WindowsMixin from '@/mixins/windows'
  20. export default {
  21. name: 'GlobalVPCDetail',
  22. mixins: [WindowsMixin],
  23. props: {
  24. data: {
  25. type: Object,
  26. required: true,
  27. },
  28. onManager: {
  29. type: Function,
  30. required: true,
  31. },
  32. },
  33. data () {
  34. return {
  35. baseInfo: [
  36. getUserTagColumn({ onManager: this.onManager, resource: 'globalvpc', columns: () => this.columns, tipName: this.$t('dictionary.globalvpc') }),
  37. getExtTagColumn({ onManager: this.onManager, resource: 'globalvpc', columns: () => this.columns, tipName: this.$t('dictionary.globalvpc') }),
  38. getBrandTableColumn(),
  39. getAccountTableColumn(),
  40. getPublicScopeTableColumn({ vm: this, resource: 'globalvpcs' }),
  41. // {
  42. // field: 'model',
  43. // title: '设备型号',
  44. // },
  45. ],
  46. }
  47. },
  48. }
  49. </script>