ledger.js 598 B

12345678910111213141516171819202122232425262728293031323334
  1. import { request } from "@/utils/request";
  2. /**
  3. * 获取设备台账列表
  4. * @param params
  5. */
  6. export const getDeviceLedgerList = (params) =>
  7. request({
  8. url: '/rq/iot-device/page/app',
  9. method: 'GET',
  10. params
  11. })
  12. /**
  13. * 新增台账
  14. * @param data
  15. */
  16. export const submitDeviceLedger = (data) =>
  17. request({
  18. url: '/rq/iot-device/create',
  19. method: 'POST',
  20. data
  21. })
  22. /**
  23. * 获取台账详情
  24. * @param id
  25. */
  26. export const getDeviceLedgerDetail = (id) =>
  27. request({
  28. url: '/rq/iot-device/get',
  29. method: 'GET',
  30. params: { id }
  31. })