home.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. //选择方案
  56. selectSchemes:{
  57. url: config.base_dev_url + "container_farm_work_scheme/selectSchemes",
  58. type: "get",
  59. },
  60. //农资弹出问卷接口
  61. popupByAgriculturalUserFarms: {
  62. url: config.base_dev_url + "work_code/phenology/quest/popupByAgriculturalUserFarms",
  63. type: "get",
  64. },
  65. //预警 气象 农事 专家问答 分页列表
  66. warningPageList: {
  67. url: config.base_dev_url + "bbs_post/page/{page}/{limit}",
  68. type: "get",
  69. },
  70. //预警 气象 详情
  71. warningDetail: {
  72. url: config.base_dev_url + "bbs_post/detail",
  73. type: "get",
  74. },
  75. //专家问答详情
  76. expertDetail: {
  77. url: config.base_dev_url + "bbs_post/topicDetail",
  78. type: "get",
  79. },
  80. //农情互动的农场列表接口(分页)
  81. listUnansweredFarms:{
  82. url: config.base_dev_url + "container_farm_work_arrange/listUnansweredFarms/{page}/{limit}",
  83. type: "get",
  84. },
  85. //查询未来农事预警
  86. listFutureFarmWorkWarning:{
  87. url: config.base_dev_url + "container_farm_work_arrange/futureFarmWorkWarning",
  88. type: "get",
  89. },
  90. //农资忽略农事库
  91. ignoreFarmWorkLib:{
  92. url: config.base_dev_url + "z_farm_work_lib/ignoreFarmWorkLib",
  93. type: "get",
  94. },
  95. //回答问题
  96. answerQuestion: {
  97. url: config.base_dev_url + "container_farm_work_arrange/answerQuestion",
  98. type: "post",
  99. },
  100. //判断是否存在可用方案
  101. existsEnabledScheme: {
  102. url: config.base_dev_url + "container_farm_work_scheme/existsEnabledScheme",
  103. type: "get",
  104. },
  105. //查询农场当前物候期的已触发的农情互动
  106. listTriggeredByFarm: {
  107. url: config.base_dev_url + "container_phenology_interaction/listTriggeredByFarm",
  108. type: "get",
  109. },
  110. //获取当前物候期和下一物候期
  111. getCurrentAndNextPhenology: {
  112. url: config.base_dev_url + "v2/farm/getCurrentAndNextPhenology",
  113. type: "get",
  114. },
  115. //农户上传图片、回答问题以及框选范围
  116. uploadAnswer: {
  117. url: config.base_dev_url + "container_phenology_interaction/uploadAnswer",
  118. type: "post",
  119. },
  120. //判断是否存在已触发但未回复的农情互动
  121. hasUnrepliedTriggeredInteraction: {
  122. url: config.base_dev_url + "container_phenology_interaction/hasUnrepliedTriggeredInteraction",
  123. type: "get",
  124. },
  125. //农户上传/更新互动数据(图片、指标答案、范围、回复文字等)
  126. uploadAnswerData: {
  127. url: config.base_dev_url + "container_phenology_interaction/uploadAnswerData",
  128. type: "post",
  129. },
  130. }