camera.data.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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: '园子沟转URL',
  39. value: 'YZG_URL',
  40. },
  41. {
  42. label: '红柳林code转URl',
  43. value: 'HLL',
  44. },
  45. {
  46. label: '海康平台转换rtsp',
  47. value: 'toHKRtsp',
  48. },
  49. {
  50. label: '海康平台转换hls',
  51. value: 'toHKHLs',
  52. },
  53. ],
  54. },
  55. },
  56. {
  57. title: '摄像头地址',
  58. dataIndex: 'addr',
  59. width: 100,
  60. editRow: true,
  61. },
  62. {
  63. title: '视频播放倍速',
  64. dataIndex: 'cameraRate',
  65. width: 100,
  66. editRow: true,
  67. editComponentProps: {
  68. options: [
  69. {
  70. label: '0.5',
  71. value: 0.5,
  72. },
  73. {
  74. label: '1 ',
  75. value: 1,
  76. },
  77. {
  78. label: '1.5',
  79. value: 1.5,
  80. },
  81. {
  82. label: '2',
  83. value: 2,
  84. },
  85. ],
  86. },
  87. },
  88. // {
  89. // title: '端口号',
  90. // width: 100,
  91. // dataIndex: 'port',
  92. // editRow: true,
  93. // editRule: true,
  94. // editComponent: 'InputNumber',
  95. // },
  96. // {
  97. // title: '摄像头名称',
  98. // dataIndex: 'name',
  99. // width: 100,
  100. // editRow: true,
  101. // },
  102. // {
  103. // title: '控制密码',
  104. // dataIndex: 'password',
  105. // width: 120,
  106. // editRow: true,
  107. // editRule: true,
  108. // },
  109. // {
  110. // title: '摄像头用户',
  111. // dataIndex: 'username',
  112. // width: 120,
  113. // editRow: true,
  114. // },
  115. ];