columns.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import {
  2. getTimeTableColumn,
  3. getEnabledTableColumn,
  4. getProjectDomainTableColumn,
  5. } from '@/utils/common/tableColumn'
  6. import i18n from '@/locales'
  7. import {
  8. getMobileTableColumn,
  9. getEmailTableColumn,
  10. getVerifiedContactTypesTableColumn,
  11. } from '../utils/columns'
  12. export default {
  13. created () {
  14. this.columns = [
  15. {
  16. title: i18n.t('system.text_143'),
  17. field: 'name',
  18. sortable: true,
  19. showOverflow: 'ellipsis',
  20. minWidth: 100,
  21. slots: {
  22. default: ({ row }) => {
  23. return [
  24. <list-body-cell-wrap copy row={row} field='name' list={this.list} hideField addLock={ false } addBackup={ false }>
  25. <side-page-trigger onTrigger={ () => this.handleOpenSidepage(row) }>{ row.name }</side-page-trigger>
  26. </list-body-cell-wrap>,
  27. ]
  28. },
  29. },
  30. },
  31. getEnabledTableColumn(),
  32. getMobileTableColumn(),
  33. getEmailTableColumn(),
  34. getVerifiedContactTypesTableColumn({ vm: this }),
  35. getProjectDomainTableColumn(),
  36. getTimeTableColumn(),
  37. ]
  38. },
  39. }