camera.data.ts 1.9 KB

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