无线电资产管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
2.1 KiB

2 weeks ago
  1. import request from '@/utils/request'
  2. // 获取区域树
  3. export function FetchRegionTree(params) {
  4. return request({
  5. url: 'api/device/getRegionTree',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 设备列表
  11. export function FetchinitDeviceInfoList(params) {
  12. return request({
  13. url: 'api/device/initDeviceInfoList',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. export function add(data) {
  19. return request({
  20. url: 'api/device/editDeviceInfo',
  21. method: 'post',
  22. data
  23. })
  24. }
  25. export function edit(data) {
  26. return request({
  27. url: 'api/device/editDeviceInfo',
  28. method: 'post',
  29. data
  30. })
  31. }
  32. export function del(data) {
  33. return request({
  34. url: 'api/device/delDeviceInfo',
  35. method: 'post',
  36. data
  37. })
  38. }
  39. // 通过设备id获取设备详情
  40. export function FetchDeviceById(params) {
  41. return request({
  42. url: 'api/device/getDeviceById',
  43. method: 'get',
  44. params
  45. })
  46. }
  47. // 摄像头绑定书架
  48. export function FetchDeviceShelfGridBinding(data) {
  49. return request({
  50. url: 'api/device/deviceShelfGridBinding',
  51. method: 'post',
  52. data
  53. })
  54. }
  55. // 根据设备和条件获取已绑定书架
  56. export function FetchBoundGridByDevice(params) {
  57. return request({
  58. url: 'api/device/getBoundGridByDevice',
  59. method: 'get',
  60. params
  61. })
  62. }
  63. // 根据条件获取未绑定书架
  64. export function FetchUnboundGrid(params) {
  65. return request({
  66. url: 'api/device/getUnboundGrid',
  67. method: 'get',
  68. params
  69. })
  70. }
  71. // 根据摄像头信息获取摄像头状态2export function FetchBoundGridByDevice(params) {
  72. export function FetchPingIP(params) {
  73. return request({
  74. url: 'api/queryDeviceAPI/pingIP',
  75. method: 'get',
  76. params
  77. })
  78. }
  79. // 根据设备类别获取设备树
  80. export function FetchDeviceTreeByType(params) {
  81. return request({
  82. url: 'api/device/getDeviceTreeByType',
  83. method: 'get',
  84. params
  85. })
  86. }
  87. export default { add, edit, del, FetchRegionTree, FetchinitDeviceInfoList, FetchDeviceById, FetchDeviceShelfGridBinding, FetchBoundGridByDevice, FetchUnboundGrid, FetchPingIP, FetchDeviceTreeByType }