home.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. const config = require("../config")
  2. module.exports = {
  3. weatherInfo: {
  4. url: config.base_dev_url + "lz_weather7d/get?key=" + config.mini_key,
  5. type: "get",
  6. },
  7. // 专家列表
  8. fetchExpertList: {
  9. url: config.base_dev_url + "container/expertList",
  10. type: "get",
  11. },
  12. listByFarmIdAndContainerId: {
  13. url: config.base_dev_url + "container_farm_work_scheme/listByFarmIdAndContainerId",
  14. type: "get",
  15. },
  16. savePlan: {
  17. url: config.base_dev_url + "container_farm_work_scheme/save",
  18. type: "post",
  19. },
  20. getPhenologyFarmWorkList: {
  21. url: config.base_dev_url + "container_farm_work_scheme/getPhenologyFarmWorkList",
  22. type: "get",
  23. },
  24. fetchDiseaseDetail: {
  25. url: config.base_dev_url + "pest_disease_dictionary/listByIds",
  26. type: "post",
  27. },
  28. fetchQuestPopup: {
  29. url: config.base_dev_url + "work_code/phenology/quest/popup",
  30. type: "get",
  31. },
  32. saveQuestPopup: {
  33. url: config.base_dev_url + "work_code/phenology/quest/save",
  34. type: "post",
  35. },
  36. getExpertByFarmId: {
  37. url: config.base_dev_url + "v2/farm/getExpertByFarmId",
  38. type: "get",
  39. },
  40. // 查询当前农资用户的所有方案列表
  41. listMySchemes:{
  42. url: config.base_dev_url + "container_farm_work_scheme/listMySchemes",
  43. type: "get",
  44. },
  45. //批量初始化农事方案(多个容器)
  46. batchInitSchemes:{
  47. url: config.base_dev_url + "container_farm_work_scheme/batchInitScheme",
  48. type: "post",
  49. },
  50. //根据方案ID查询农事列表(按物候期分组)
  51. listBySchemeId:{
  52. url: config.base_dev_url + "z_farm_work_lib/listBySchemeId",
  53. type: "get",
  54. }
  55. }