Detail.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <detail
  3. :on-manager="onManager"
  4. :data="data"
  5. :base-info="baseInfo"
  6. :extra-info="extraInfo" />
  7. </template>
  8. <script>
  9. import {
  10. getUserTagColumn,
  11. getExtTagColumn,
  12. } from '@/utils/common/detailColumn'
  13. export default {
  14. name: 'LoadbalancerclusterDetail',
  15. props: {
  16. data: {
  17. type: Object,
  18. required: true,
  19. },
  20. onManager: {
  21. type: Function,
  22. required: true,
  23. },
  24. columns: Array,
  25. },
  26. data () {
  27. return {
  28. baseInfo: [
  29. getUserTagColumn({ onManager: this.onManager, resource: 'loadbalancercluster', columns: () => this.columns, tipName: this.$t('network.text_19') }),
  30. getExtTagColumn({ onManager: this.onManager, resource: 'loadbalancercluster', columns: () => this.columns, tipName: this.$t('network.text_19') }),
  31. {
  32. field: 'zone',
  33. title: this.$t('network.text_24'),
  34. formatter: ({ row }) => {
  35. return `${row.region} ${row.zone}`
  36. },
  37. },
  38. ],
  39. extraInfo: [],
  40. }
  41. },
  42. }
  43. </script>