entry.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. const config = require("../config")
  2. module.exports = {
  3. // 获取种植品类列表
  4. getCropHierarchy: {
  5. url: config.base_new_url + "get_crop_hierarchy",
  6. type: "get",
  7. },
  8. // 获取小品种对应列表
  9. getVarietiesByCrop: {
  10. url: config.base_new_url + "questionnaire/farmer_crop_pheno",
  11. type: "get",
  12. },
  13. // 农户新增
  14. addFarmInfo: {
  15. url: config.base_new_url + "questionnaire/add_farm_info",
  16. type: "post",
  17. },
  18. // 品类列表
  19. getCrops: {
  20. url: config.base_new_url + "questionnaire/crops",
  21. type: "get",
  22. },
  23. // 农机设备列表(农户用)
  24. getMachines: {
  25. url: config.base_new_url + "questionnaire/farmer_crop_detail",
  26. type: "get",
  27. },
  28. // 问卷-品类对应农事列表
  29. getCropTasks: {
  30. url: config.base_new_url + "questionnaire/farm_tasks",
  31. type: "get",
  32. },
  33. // 作物档案-物候记录
  34. getPhenoRecord: {
  35. url: config.base_new_url + "questionnaire/pheno_record",
  36. type: "get",
  37. },
  38. }