safetyList.data.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: '安装位置',
  11. dataIndex: 'strinstallpos',
  12. key: 'strinstallpos',
  13. align: 'center',
  14. },
  15. {
  16. title: '名称',
  17. dataIndex: 'strname',
  18. key: 'strname',
  19. align: 'center',
  20. },
  21. {
  22. title: '监测值',
  23. dataIndex: 'valueJc',
  24. key: 'valueJc',
  25. align: 'center',
  26. },
  27. {
  28. title: '连接状态',
  29. dataIndex: 'linkstatusC',
  30. key: 'linkstatusC',
  31. align: 'center',
  32. },
  33. {
  34. title: '时间',
  35. dataIndex: 'updateTime',
  36. key: 'updateTime',
  37. align: 'center',
  38. },
  39. {
  40. title: '操作',
  41. dataIndex: 'action',
  42. width: 200,
  43. align: 'center',
  44. slots: { customRender: 'action' },
  45. },
  46. ];