znxy.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-02-07 13:40:50
  4. * @LastEditTime: 2021-12-02 15:59:52
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \vue3-element-admin\src\api\modules\system.js
  8. */
  9. // const Mock = require("mockjs"); //引入
  10. const config = require("../config")
  11. module.exports = {
  12. baseInfo: {
  13. url: config.base_url + "home/base-info/{gardenId}",
  14. type: "get",
  15. },
  16. weatherWarning: {
  17. url: config.base_url + "home/weather-warning/{gardenId}",
  18. type: "get",
  19. },
  20. outputCalc: {
  21. url: config.base_url + "home/output-calc/{gardenId}",
  22. type: "get",
  23. },
  24. growAbnormal: {
  25. url: config.base_url + "home/grow-abnormal/{gardenId}",
  26. type: "get",
  27. },
  28. pestAbnormal: {
  29. url: config.base_url + "home/pest-abnormal/{gardenId}",
  30. type: "get",
  31. },
  32. pestStatistics: {
  33. url: config.base_url + "home/pest-statistics/{gardenId}/{warningType}",
  34. type: "get",
  35. },
  36. // 生长态势图例
  37. szLegend: {
  38. url: config.base_url + "lz_period_progress/list/{periodId}",
  39. type: "get",
  40. },
  41. // 生长态势数据
  42. szList: {
  43. url: config.base_url + "home/grow-statistics/{gardenId}",
  44. type: "get",
  45. },
  46. };