camera.data.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import { BasicColumn } from '/@/components/Table';
  2. export const columns: BasicColumn[] = [
  3. {
  4. title: '设备id',
  5. dataIndex: 'deviceid',
  6. ifShow: false,
  7. editRow: true,
  8. },
  9. {
  10. title: '摄像头名称',
  11. dataIndex: 'name',
  12. width: 100,
  13. editRow: true,
  14. editRule: true,
  15. },
  16. {
  17. title: '视频流类型',
  18. dataIndex: 'devicekind',
  19. width: 100,
  20. editRow: true,
  21. editRule: true,
  22. editComponent: 'Select',
  23. editComponentProps: {
  24. options: [
  25. {
  26. label: 'rtsp',
  27. value: 'rtsp',
  28. },
  29. {
  30. label: 'HLS ',
  31. value: 'HLS',
  32. },
  33. {
  34. label: 'flv',
  35. value: 'flv',
  36. },
  37. {
  38. label: '红柳林code转URl',
  39. value: 'HLL',
  40. },
  41. {
  42. label: '海康平台转换rtsp',
  43. value: 'toHKRtsp',
  44. },
  45. {
  46. label: '海康平台转换hls',
  47. value: 'toHKHLs',
  48. },
  49. ],
  50. },
  51. },
  52. {
  53. title: '摄像头地址',
  54. dataIndex: 'addr',
  55. width: 100,
  56. editRow: true,
  57. },
  58. {
  59. title: '视频播放倍速',
  60. dataIndex: 'cameraRate',
  61. width: 100,
  62. editRow: true,
  63. editComponentProps: {
  64. options: [
  65. {
  66. label: '0.5',
  67. value: 0.5,
  68. },
  69. {
  70. label: '1 ',
  71. value: 1,
  72. },
  73. {
  74. label: '1.5',
  75. value: 1.5,
  76. },
  77. {
  78. label: '2',
  79. value: 2,
  80. },
  81. ],
  82. },
  83. },
  84. // {
  85. // title: '端口号',
  86. // width: 100,
  87. // dataIndex: 'port',
  88. // editRow: true,
  89. // editRule: true,
  90. // editComponent: 'InputNumber',
  91. // },
  92. // {
  93. // title: '摄像头名称',
  94. // dataIndex: 'name',
  95. // width: 100,
  96. // editRow: true,
  97. // },
  98. // {
  99. // title: '控制密码',
  100. // dataIndex: 'password',
  101. // width: 120,
  102. // editRow: true,
  103. // editRule: true,
  104. // },
  105. // {
  106. // title: '摄像头用户',
  107. // dataIndex: 'username',
  108. // width: 120,
  109. // editRow: true,
  110. // },
  111. ];