initData.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. export const initColumns = [
  2. {
  3. title: '序号',
  4. dataIndex: 'index',
  5. align: 'center',
  6. width: 50
  7. },
  8. {
  9. title: '告警来源',
  10. dataIndex: 'source',
  11. align: 'center',
  12. ellipsis: true,
  13. resizable: true
  14. },
  15. // {
  16. // title: '通知类型',
  17. // dataIndex: 'type',
  18. // align: 'center',
  19. // customRender({ value }) {
  20. // return value == '1' ? '系统' : '预警'
  21. // }
  22. // },
  23. {
  24. title: '告警优先级',
  25. dataIndex: 'priority',
  26. align: 'center',
  27. ellipsis: true,
  28. resizable: true
  29. },
  30. {
  31. title: '告警类型',
  32. dataIndex: 'alarmType',
  33. align: 'center',
  34. ellipsis: true,
  35. resizable: true
  36. },
  37. {
  38. title: '告警内容',
  39. dataIndex: 'message',
  40. align: 'center',
  41. ellipsis: true,
  42. resizable: true,
  43. width: 200
  44. },
  45. {
  46. title: '告警值',
  47. dataIndex: 'value',
  48. align: 'center',
  49. ellipsis: true,
  50. resizable: true
  51. },
  52. {
  53. title: '告警接收人',
  54. dataIndex: 'alarmUsers',
  55. align: 'center',
  56. ellipsis: true,
  57. resizable: true
  58. },
  59. {
  60. title: '创建人',
  61. dataIndex: 'createUserName',
  62. align: 'center',
  63. ellipsis: true,
  64. resizable: true
  65. },
  66. {
  67. title: '告警时间',
  68. dataIndex: 'alarmTime',
  69. align: 'center',
  70. ellipsis: true,
  71. resizable: true
  72. }
  73. // {
  74. // title: '操作',
  75. // dataIndex: 'options',
  76. // align: 'center',
  77. // ellipsis: true,
  78. // resizable: true
  79. // }
  80. ]