Detail.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <detail
  3. :on-manager="onManager"
  4. :data="data"
  5. statusModule="ipv6_gateway"
  6. resource="ipv6_gateways"
  7. :base-info="baseInfo" />
  8. </template>
  9. <script>
  10. import { getBrandTableColumn, getCopyWithContentTableColumn } from '@/utils/common/tableColumn'
  11. import WindowsMixin from '@/mixins/windows'
  12. export default {
  13. name: 'LbDetail',
  14. mixins: [WindowsMixin],
  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. getCopyWithContentTableColumn({
  30. field: 'vpc',
  31. title: 'VPC',
  32. hideField: true,
  33. slotCallback: row => {
  34. if (!row.region) return '-'
  35. return [
  36. <side-page-trigger permission='vpcs_get' name='VpcSidePage' id={row.vpc_id} vm={this}>{ row.vpc }</side-page-trigger>,
  37. ]
  38. },
  39. }),
  40. {
  41. field: 'instance_type',
  42. title: this.$t('network.text_268'),
  43. },
  44. getBrandTableColumn(),
  45. ],
  46. }
  47. },
  48. }
  49. </script>