columns.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import {
  2. getCopyWithContentTableColumn,
  3. getStatusTableColumn,
  4. getEnabledTableColumn,
  5. getProjectTableColumn,
  6. getPublicScopeTableColumn,
  7. getTimeTableColumn,
  8. } from '@/utils/common/tableColumn'
  9. import {
  10. getTypeTableColumn,
  11. } from '../utils/columns'
  12. export default {
  13. created () {
  14. this.columns = [
  15. {
  16. title: this.$t('system.text_101'),
  17. field: 'name',
  18. showOverflow: 'ellipsis',
  19. minWidth: 100,
  20. slots: {
  21. default: ({ row }) => {
  22. return [
  23. <list-body-cell-wrap copy row={row} field='name' hideField>
  24. <side-page-trigger onTrigger={ () => this.handleOpenSidepage(row) }>{ row.name }</side-page-trigger>
  25. </list-body-cell-wrap>,
  26. ]
  27. },
  28. },
  29. },
  30. getStatusTableColumn({ statusModule: 'robot' }),
  31. getEnabledTableColumn(),
  32. getTypeTableColumn(),
  33. getProjectTableColumn(),
  34. getPublicScopeTableColumn({ vm: this, resource: 'robots' }),
  35. getCopyWithContentTableColumn({
  36. title: 'Webhook/URL',
  37. field: 'address',
  38. }),
  39. getTimeTableColumn(),
  40. ]
  41. },
  42. }