questionnaire.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. const config = require("../config")
  2. module.exports = {
  3. // 录入用户权属信息
  4. addPlotInfo: {
  5. url: config.base_new_url + "questionnaire/add_plot_info",
  6. type: "post",
  7. },
  8. // 获取初始互动接口
  9. getInitialInteraction: {
  10. url: config.base_new_url + "pheno/initial_interact_options",
  11. type: "get",
  12. },
  13. // 保存感知结果接口
  14. saveInteractResult: {
  15. url: config.base_new_url + "pheno/interact_record",
  16. type: "post",
  17. },
  18. // 初始化报告
  19. generateReport: {
  20. url: config.base_new_url + "report/generate",
  21. type: "get",
  22. },
  23. // 查看报告是否生成
  24. checkReportGenerated: {
  25. url: config.base_new_url + "report/check",
  26. type: "get",
  27. },
  28. // 区县作物物候期(种植品类下拉)
  29. countyPhenophase: {
  30. url: config.base_new_url + "report/county_phenophase",
  31. type: "get",
  32. },
  33. // 用户农事列表
  34. userWork: {
  35. url: config.base_new_url + "report/user_work",
  36. type: "get",
  37. },
  38. // 修改农事状态(完成)
  39. updateWorkStatus: {
  40. url: config.base_new_url + "report/update_work_status",
  41. type: "post",
  42. },
  43. // 物候期问题查询
  44. phenologyProblem: {
  45. url: config.base_new_url + "report/crop_question",
  46. type: "get",
  47. },
  48. // 巡园互动解析(长势跟踪要点)
  49. parseInteract: {
  50. url: config.base_new_url + "report/parse_interact",
  51. type: "get",
  52. },
  53. // 异常内容查询
  54. abnormalContent: {
  55. url: config.base_new_url + "report/parse_anormal",
  56. type: "get",
  57. },
  58. // 物候调整确认
  59. adjustPhenology: {
  60. url: config.base_new_url + "report/adjust_phenophase",
  61. type: "get",
  62. },
  63. // 是否需要弹窗诊断报告
  64. getReportStatus: {
  65. url: config.base_new_url + "report/get_popup_status",
  66. type: "get",
  67. },
  68. // 修改诊断报告弹窗状态
  69. setReportStatus: {
  70. url: config.base_new_url + "report/set_popup_closed",
  71. type: "post",
  72. },
  73. // 查询物候期
  74. getPhenology: {
  75. url: config.base_new_url + "report/get_phenophase",
  76. type: "get",
  77. },
  78. // 作物档案:物候期信息列表
  79. getPhenophaseInfo: {
  80. url: config.base_new_url + "report/get_phenophase_info",
  81. type: "get",
  82. },
  83. // 气象风险报告
  84. riskReport: {
  85. url: config.base_new_url + "report/risk_report",
  86. type: "get",
  87. },
  88. // 胁迫报告
  89. stressReport: {
  90. url: config.base_new_url + "report/stress_report",
  91. type: "get",
  92. },
  93. // 异常农情研判报告列表
  94. queryAbnormalReport: {
  95. url: config.base_new_url + "report/query_abnormal_report",
  96. type: "get",
  97. },
  98. // 异常巡检拍照提交
  99. inspect: {
  100. url: config.base_new_url + "report/inspect",
  101. type: "post",
  102. },
  103. // 农情相册临时照片
  104. queryTmpImage: {
  105. url: config.base_new_url + "report/query_tmp_image",
  106. type: "get",
  107. },
  108. // 查询气象报告是否生成
  109. checkWeatherReportGenerated: {
  110. url: config.base_new_url + "report/check_stress_report",
  111. type: "get",
  112. },
  113. }