Newer
Older
KaiFengPC / src / api / cameraResource / cameraGroupInfo.js
@鲁yixuan 鲁yixuan on 19 Aug 2 KB updata
  1. import request from '@/utils/request';
  2.  
  3. // 搜索自定义视频分组-分组分页
  4. export function pagecameraGroupInfo(query) {
  5. return request({
  6. url: '/business/cameraGroupInfo/page',
  7. method: 'get',
  8. params: query,
  9. });
  10. }
  11.  
  12. // 搜索自定义视频分组-分组列表
  13. export function listcameraGroupInfo(query) {
  14. return request({
  15. url: '/business/cameraGroupInfo/list',
  16. method: 'get',
  17. params: query,
  18. });
  19. }
  20.  
  21. // 搜索自定义视频分组-分组详细
  22. export function getcameraGroupInfo(id) {
  23. return request({
  24. url: '/business/cameraGroupInfo/' + id,
  25. method: 'get',
  26. });
  27. }
  28.  
  29. // 新增自定义视频分组-分组
  30. export function addcameraGroupInfo(data) {
  31. return request({
  32. url: '/business/cameraGroupInfo/add',
  33. method: 'post',
  34. data: data,
  35. });
  36. }
  37.  
  38. // 修改自定义视频分组-分组
  39. export function updatecameraGroupInfo(data) {
  40. return request({
  41. url: '/business/cameraGroupInfo/edit',
  42. method: 'put',
  43. data: data,
  44. });
  45. }
  46.  
  47. // 删除自定义视频分组-分组
  48. export function delcameraGroupInfo(id) {
  49. return request({
  50. url: '/business/cameraInfo/batchRemove' + id,
  51. method: 'delete',
  52. });
  53. }
  54.  
  55. // 需要删除的人员id 删除时传id 回显时用userId
  56. export const batchRemove = params => {
  57. return request({
  58. url: `/business/cameraInfo/batchRemove`,
  59. method: 'post',
  60. data: params,
  61. });
  62. };
  63.  
  64. // 部门id+用户信息数组
  65. export const batchSave = params => {
  66. return request({
  67. url: `/business/cameraInfo/batchSave`,
  68. method: 'post',
  69. data: params,
  70. });
  71. };
  72.  
  73. // 分组列表
  74. export const cameraGroupInfopage = params => {
  75. return request({
  76. url: `/business/cameraGroupInfo/page`,
  77. method: 'post',
  78. data: params,
  79. });
  80. };
  81.  
  82. // 全部 摄像头
  83. export const cameraInfolist = () => {
  84. return request({
  85. url: `/business/cameraInfo/list`,
  86. method: 'get',
  87. });
  88. };
  89.  
  90. // 已绑定 摄像头列表
  91. export const getBoundData = params => {
  92. return request({
  93. url: `/business/cameraInfo/getBoundData`,
  94. method: 'post',
  95. params: params,
  96. });
  97. };
  98.  
  99. // 搜索未绑定的所有
  100. export const getNotBoundData = params => {
  101. return request({
  102. url: `/business/cameraInfo/getNotBoundData`,
  103. method: 'post',
  104. params: params,
  105. });
  106. };