columns.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import {
  2. getNameDescriptionTableColumn,
  3. getStatusTableColumn,
  4. getPublicScopeTableColumn,
  5. getProjectDomainTableColumn,
  6. getBrandTableColumn,
  7. getAccountTableColumn,
  8. getTagTableColumn,
  9. getTimeTableColumn,
  10. } from '@/utils/common/tableColumn'
  11. import i18n from '@/locales'
  12. export default {
  13. created () {
  14. this.columns = [
  15. getNameDescriptionTableColumn({
  16. onManager: this.onManager,
  17. hideField: true,
  18. // addLock: true,
  19. slotCallback: row => {
  20. return (
  21. <side-page-trigger onTrigger={ () => this.handleOpenSidepage(row) }>{ row.name }</side-page-trigger>
  22. )
  23. },
  24. }),
  25. getStatusTableColumn({ statusModule: 'globalVpc', vm: this }),
  26. getTagTableColumn({ onManager: this.onManager, resource: 'network_globalvpcs', columns: () => this.columns, tipName: this.$t('dictionary.globalvpc') }),
  27. getBrandTableColumn(),
  28. {
  29. field: 'vpc_count',
  30. title: i18n.t('network.text_243'),
  31. width: 100,
  32. },
  33. getAccountTableColumn(),
  34. getPublicScopeTableColumn({ vm: this, resource: 'globalvpcs' }),
  35. getProjectDomainTableColumn(),
  36. getTimeTableColumn(),
  37. ]
  38. },
  39. }