index.js 516 B

12345678910111213141516171819202122232425
  1. import { http, Method } from '@/utils/request.js'
  2. /**
  3. * 根据设备类型获取设备列表
  4. * @param {Object} params - 查询参数
  5. * @returns {Promise} 设备列表
  6. */
  7. export function listWeather(params) {
  8. return http.request({
  9. url: `/base/weather/listWeatherStatisticsJyhy`,
  10. method: Method.POST,
  11. data: params
  12. });
  13. }
  14. /**
  15. * 获取批次详细信息
  16. */
  17. export function getTraceDetail(id){
  18. return http.request({
  19. url: `/base/batch/${id}`,
  20. method: Method.GET,
  21. needToken: true
  22. })
  23. }