columns.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import {
  2. getNameDescriptionTableColumn,
  3. getStatusTableColumn,
  4. getBrandTableColumn,
  5. getCopyWithContentTableColumn,
  6. getAccountTableColumn,
  7. } from '@/utils/common/tableColumn'
  8. export default {
  9. created () {
  10. this.columns = [
  11. getNameDescriptionTableColumn({
  12. onManager: this.onManager,
  13. hideField: true,
  14. slotCallback: row => {
  15. return (
  16. <side-page-trigger
  17. name='SamluserSidePage'
  18. id={row.id}
  19. list={this.list}
  20. vm={this}
  21. tab='samluser-detail'
  22. options={{
  23. apiVersion: 'v1',
  24. resource: 'samlusers',
  25. }}>{ row.name }</side-page-trigger>
  26. )
  27. },
  28. }),
  29. getStatusTableColumn({ statusModule: 'samluser' }),
  30. getCopyWithContentTableColumn({
  31. field: 'cloudgroup',
  32. title: this.$t('dictionary.cloudgroup'),
  33. hideField: true,
  34. slotCallback: row => {
  35. return (
  36. <side-page-trigger permission='cloudgroup_get' name='CloudgroupSidePage' id={row.cloudgroup_id} list={this.list} vm={this} tab='cloudgroup-detail'>{ row.cloudgroup }</side-page-trigger>
  37. )
  38. },
  39. }),
  40. getBrandTableColumn(),
  41. getAccountTableColumn({ field: 'cloudaccount', title: this.$t('common.text00108') }),
  42. ]
  43. },
  44. }