alarm.data.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import { BasicColumn } from '/@/components/Table';
  2. import { render } from '/@/utils/common/renderUtils';
  3. export const manageAutoColumns: BasicColumn[] = [
  4. {
  5. title: '预警名称',
  6. dataIndex: 'alarmName',
  7. width: 100,
  8. align: 'center',
  9. },
  10. {
  11. title: '报警开始时间',
  12. dataIndex: 'starttime',
  13. width: 100,
  14. align: 'center',
  15. },
  16. {
  17. title: '所属场景',
  18. dataIndex: 'systemName',
  19. width: 100,
  20. align: 'center',
  21. },
  22. {
  23. title: '报警描述',
  24. dataIndex: 'autoContent',
  25. width: 210,
  26. align: 'center',
  27. },
  28. {
  29. title: '报警等级',
  30. dataIndex: 'alarmLevel',
  31. customRender: ({ record }) => {
  32. return render.renderDict(record.alarmLevel, 'leveltype');
  33. },
  34. width: 100,
  35. align: 'center',
  36. },
  37. {
  38. title: '是否解决',
  39. dataIndex: 'isok_dictText',
  40. width: 50,
  41. align: 'center',
  42. },
  43. ];
  44. export const manageAutoColumns1: BasicColumn[] = [
  45. {
  46. title: '预警名称',
  47. dataIndex: 'alarmName',
  48. width: 100,
  49. align: 'center',
  50. },
  51. {
  52. title: '报警等级',
  53. dataIndex: 'alarmLevel',
  54. customRender: ({ record }) => {
  55. return render.renderDict(record.alarmLevel, 'leveltype');
  56. },
  57. width: 100,
  58. align: 'center',
  59. },
  60. {
  61. title: '报警描述',
  62. dataIndex: 'autoContent',
  63. width: 210,
  64. align: 'center',
  65. },
  66. {
  67. title: '报警开始时间',
  68. dataIndex: 'starttime',
  69. width: 100,
  70. align: 'center',
  71. },
  72. {
  73. title: '报警结束时间',
  74. dataIndex: 'endtime',
  75. width: 100,
  76. align: 'center',
  77. },
  78. {
  79. title: '是否解决',
  80. dataIndex: 'isok_dictText',
  81. width: 50,
  82. align: 'center',
  83. },
  84. ];