device.js 569 B

1234567891011121314151617181920212223242526272829
  1. import { request } from "@/utils/request";
  2. // 获取可选择设备列表
  3. export function devicePage(params) {
  4. return request({
  5. url: "/rq/iot-device/page/app",
  6. method: "get",
  7. params,
  8. });
  9. }
  10. /**
  11. * 获取设备规格型号
  12. * @param params
  13. */
  14. export const getDeviceModelList = (params) =>
  15. request({
  16. url: "/rq/iot-model/page",
  17. method: "GET",
  18. params,
  19. })
  20. /**
  21. * 获取设备类别
  22. */
  23. export const getAllDeviceTypeList = () =>
  24. request({
  25. url: "/rq/iot-product-classify/simple-list",
  26. method: "GET",
  27. })