Detail.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <detail
  3. :on-manager="onManager"
  4. :data="data"
  5. :base-info="baseInfo"
  6. :extra-info="extraInfo"
  7. resource="vpc_peering_connections"
  8. statusModule="vpcPeerConnect"
  9. :hiddenKeys="['tenant', 'project_domain', 'region', 'zone']" />
  10. </template>
  11. <script>
  12. import {
  13. getBrandTableColumn,
  14. getDomainColumn,
  15. } from '@/utils/common/tableColumn'
  16. import {
  17. getUserTagColumn,
  18. getExtTagColumn,
  19. } from '@/utils/common/detailColumn'
  20. import {
  21. getVpcTableColumn,
  22. getPeerVpcTableColumn,
  23. getExtPeerAccountTableColumn,
  24. } from '../utils/column'
  25. import WindowsMixin from '@/mixins/windows'
  26. export default {
  27. name: 'vpcPeerConnectDetail',
  28. mixins: [WindowsMixin],
  29. props: {
  30. data: {
  31. type: Object,
  32. required: true,
  33. },
  34. onManager: {
  35. type: Function,
  36. required: true,
  37. },
  38. columns: Array,
  39. },
  40. data () {
  41. return {
  42. baseInfo: [
  43. getUserTagColumn({ onManager: this.onManager, resource: 'vpc_peering_connections', columns: () => this.columns, tipName: this.$t('dictionary.vpc_peer_connect') }),
  44. getExtTagColumn({ onManager: this.onManager, resource: 'vpc_peering_connections', columns: () => this.columns, tipName: this.$t('dictionary.vpc_peer_connect') }),
  45. getDomainColumn({ vm: this }),
  46. getBrandTableColumn(),
  47. ],
  48. extraInfo: [
  49. {
  50. title: this.$t('network.text_308'),
  51. items: [
  52. getVpcTableColumn(this),
  53. getPeerVpcTableColumn(),
  54. getExtPeerAccountTableColumn(),
  55. ],
  56. },
  57. ],
  58. }
  59. },
  60. }
  61. </script>