elevatordevice.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. import request from '@/router/axios';
  2. export const getList = (current, size, params) => {
  3. return request({
  4. url: '/api/cyzh-smart-device/elevatordevice/list',
  5. method: 'get',
  6. params: {
  7. ...params,
  8. current,
  9. size,
  10. }
  11. })
  12. }
  13. export const getDetail = (id) => {
  14. return request({
  15. url: '/api/cyzh-smart-device/elevatordevice/detail',
  16. method: 'get',
  17. params: {
  18. id
  19. }
  20. })
  21. }
  22. export const remove = (ids) => {
  23. return request({
  24. url: '/api/cyzh-smart-device/elevatordevice/remove',
  25. method: 'post',
  26. params: {
  27. ids,
  28. }
  29. })
  30. }
  31. export const add = (row) => {
  32. return request({
  33. url: '/api/cyzh-smart-device/elevatordevice/submit',
  34. method: 'post',
  35. data: row
  36. })
  37. }
  38. export const update = (row) => {
  39. return request({
  40. url: '/api/cyzh-smart-device/elevatordevice/submit',
  41. method: 'post',
  42. data: row
  43. })
  44. }
  45. export const getLiftResidentialSelect = () => {
  46. return request({
  47. url: '/api/cyzh-smart-device/elevatordevice/getLiftResidentialSelect',
  48. method: 'get',
  49. })
  50. }
  51. export const getLiftList = (params) => {
  52. return request({
  53. url: '/api/cyzh-smart-device/elevatordevice/getLiftList',
  54. method: 'get',
  55. params: {
  56. ...params,
  57. }
  58. })
  59. }
  60. export const getRealvideo = (registerCode) => {
  61. return request({
  62. url: '/api/cyzh-smart-device/elevatordevice/getRealvideo',
  63. method: 'get',
  64. params: {
  65. registerCode
  66. }
  67. })
  68. }
  69. export const getLiftHisAlarm = (registerCodes) => {
  70. return request({
  71. url: '/api/cyzh-smart-device/elevatordevice/getLiftHisAlarm',
  72. method: 'get',
  73. params: {
  74. registerCodes
  75. }
  76. })
  77. }
  78. export const sync = () => {
  79. return request({
  80. url: '/api/cyzh-smart-device/elevatordevice/sync',
  81. method: 'post',
  82. })
  83. }
  84. export const getLiftStatus = (registerCode) => {
  85. return request({
  86. url: '/api/cyzh-smart-device/elevatordevice/getLiftStatus',
  87. method: 'get',
  88. params: {
  89. registerCode
  90. }
  91. })
  92. }
  93. export const getLiftPointData = (registerCode) => {
  94. return request({
  95. url: '/api/cyzh-smart-device/elevatordevice/getLiftPointData',
  96. method: 'get',
  97. params: {
  98. registerCode
  99. }
  100. })
  101. }