columns.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import {
  2. getNameDescriptionTableColumn,
  3. getStatusTableColumn,
  4. getTimeTableColumn,
  5. getProjectTableColumn,
  6. getBrandTableColumn,
  7. getAccountTableColumn,
  8. } from '@/utils/common/tableColumn'
  9. import {
  10. healthCheckTypeColumn,
  11. healthCheckUriColumn,
  12. healthCheckPortColumn,
  13. // healthCheckDomainColumn,
  14. healthCheckMethodColumn,
  15. healthCheckHttpCodeColumn,
  16. healthCheckIntervalColumn,
  17. healthCheckTimeoutColumn,
  18. healthCheckHealthyThresholdColumn,
  19. healthCheckUnhealthyThresholdColumn,
  20. } from '../utils/columns'
  21. export default {
  22. created () {
  23. this.columns = [
  24. getNameDescriptionTableColumn({
  25. onManager: this.onManager,
  26. hideField: true,
  27. slotCallback: row => {
  28. return (
  29. <side-page-trigger onTrigger={() => this.handleOpenSidepage(row)}>{row.name}</side-page-trigger>
  30. )
  31. },
  32. }),
  33. getStatusTableColumn({
  34. statusModule: 'healthCheck',
  35. vm: this,
  36. }),
  37. healthCheckTypeColumn(),
  38. healthCheckUriColumn(),
  39. healthCheckPortColumn(),
  40. // healthCheckDomainColumn(),
  41. healthCheckMethodColumn(),
  42. healthCheckHttpCodeColumn(),
  43. healthCheckIntervalColumn(),
  44. healthCheckTimeoutColumn(),
  45. healthCheckHealthyThresholdColumn(),
  46. healthCheckUnhealthyThresholdColumn(),
  47. getBrandTableColumn(),
  48. getAccountTableColumn(),
  49. getProjectTableColumn(),
  50. getTimeTableColumn(),
  51. ]
  52. },
  53. }