weatherRaw.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 查询短期气象原始数据列表
  3. export function listWeatherRaw(query) {
  4. return request({
  5. url: '/weather/weatherRaw/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询短期气象原始数据详细
  11. export function getWeatherRaw(Id) {
  12. return request({
  13. url: '/weather/weatherRaw/' + Id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增短期气象原始数据
  18. export function addWeatherRaw(data) {
  19. return request({
  20. url: '/weather/weatherRaw',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改短期气象原始数据
  26. export function updateWeatherRaw(data) {
  27. return request({
  28. url: '/weather/weatherRaw',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除短期气象原始数据
  34. export function delWeatherRaw(Id) {
  35. return request({
  36. url: '/weather/weatherRaw/' + Id,
  37. method: 'delete'
  38. })
  39. }
  40. // 查询风玫瑰图统计
  41. export function getRoseChart(query) {
  42. return request({
  43. url: '/weather/weatherRaw/rosechart',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 导出风玫瑰图统计
  49. export function exportRoseChart(query) {
  50. return request({
  51. url: '/weather/weatherRaw/rosechart/export',
  52. method: 'get',
  53. params: query,
  54. responseType: 'blob',
  55. timeout: 120000
  56. })
  57. }