searchRangeColumns.ts 852 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import type { BasicColumn } from '@/components/Table';
  2. export const columns: BasicColumn[] = [
  3. {
  4. minWidth: 30,
  5. type: 'selection',
  6. fixed: 'left',
  7. selectable(row, _) {
  8. return row.name === 'SHGD-XDJS-0003';
  9. },
  10. },
  11. {
  12. label: '序号',
  13. minWidth: 40,
  14. type: 'index',
  15. fixed: 'left',
  16. },
  17. {
  18. label: 'IP地址',
  19. prop: 'cameraIp',
  20. minWidth: 80,
  21. },
  22. {
  23. label: '协议类型',
  24. prop: 'protocal',
  25. minWidth: 60,
  26. },
  27. {
  28. label: '端口地址',
  29. prop: 'cameraPort',
  30. minWidth: 60,
  31. },
  32. {
  33. label: 'MAC地址',
  34. prop: 'mac',
  35. minWidth: 100,
  36. },
  37. {
  38. label: '设备ID',
  39. prop: 'name',
  40. minWidth: 110,
  41. },
  42. {
  43. label: '车间场景',
  44. prop: 'workshopId',
  45. minWidth: 100,
  46. },
  47. {
  48. label: '工位场景',
  49. prop: 'workspaceId',
  50. minWidth: 60,
  51. },
  52. ];