faultConfig.data.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { BasicColumn } from '/@/components/Table';
  2. export const columns: BasicColumn[] = [
  3. {
  4. title: '序号',
  5. width: 60,
  6. align: 'center',
  7. customRender: ({ index }: { index: number }) => `${index + 1}`
  8. },
  9. {
  10. title: '门板最大基准面积(cm²)',
  11. dataIndex: 'maxAreaBase',
  12. key: 'maxAreaBase',
  13. align: 'center',
  14. ellipsis: true,
  15. },
  16. {
  17. title: '像素面积比',
  18. dataIndex: 'pixelAreaRatio',
  19. key: 'pixelAreaRatio',
  20. align: 'center',
  21. ellipsis: true,
  22. },
  23. {
  24. title: '面积百分比阈值(%)',
  25. dataIndex: 'areaPercentThreshold',
  26. key: 'areaPercentThreshold',
  27. align: 'center',
  28. ellipsis: true,
  29. },
  30. {
  31. title: '检测间隔(秒)',
  32. dataIndex: 'detectInterval',
  33. key: 'detectInterval',
  34. align: 'center',
  35. ellipsis: true,
  36. },
  37. {
  38. title: '持续时间阈值(秒)',
  39. dataIndex: 'durationThreshold',
  40. key: 'durationThreshold',
  41. align: 'center',
  42. ellipsis: true,
  43. },
  44. {
  45. title: '任务状态',
  46. dataIndex: 'status',
  47. key: 'status',
  48. align: 'center',
  49. ellipsis: true,
  50. },
  51. {
  52. title: '操作',
  53. dataIndex: 'actionSp',
  54. width: 200,
  55. align: 'center',
  56. slots: { customRender: 'action' },
  57. },
  58. ]
  59. //任务状态
  60. export const taskData = [
  61. { label: '开启', value: '1' },
  62. { label: '关闭', value: '0' }
  63. ]