bigdata.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. import request from '@/utils/request'
  2. // 事件来源,类型统计
  3. export function getEventSourceAndTypeStatistics(param) {
  4. return request({
  5. url: '/center-resources/VisuForestCloudBigDataController/getEventSourceAndTypeStatistics',
  6. method: 'post',
  7. data: param
  8. })
  9. }
  10. // 设备类型统计
  11. export function getCameaCount() {
  12. return request({
  13. url: '/center-resources/VisuForestCloudBigDataController/getCameaCount',
  14. method: 'post',
  15. })
  16. }
  17. // 设备分布
  18. export function selectDeviceType() {
  19. return request({
  20. url: '/center-monitor/camera/selectDeviceType',
  21. method: 'post',
  22. data:{}
  23. })
  24. }
  25. // 设备分布
  26. export function getSbfb() {
  27. return request({
  28. url: '/center-resources/VisuForestCloudBigDataController/getSbfb',
  29. method: 'post',
  30. })
  31. }
  32. //林场分布统计
  33. export function getLcfbtj() {
  34. return request({
  35. url: '/center-resources/VisuForestCloudBigDataController/selectBigDataFarmDeptCount',
  36. method: 'post'
  37. })
  38. }
  39. // 地质灾害易发区
  40. export function get5() {
  41. return request({
  42. url: '/center-resources/VisuForestCloudBigDataController/getHazardResources',
  43. method: 'post',
  44. })
  45. }
  46. // 森林资源年统计
  47. export function getG2() {
  48. return request({
  49. url: '/center-resources/VisuForestCloudBigDataController/selectForestResourcesCount',
  50. method: 'post',
  51. })
  52. }
  53. // 水能资源
  54. export function get6() {
  55. return request({
  56. url: '/center-resources/VisuForestCloudBigDataController/selectHydroenergyCount',
  57. method: 'post',
  58. })
  59. }
  60. //土地资源管理信息--雷达图
  61. export function getQhyytj(param) {
  62. //暂时传当年,以后再说
  63. if (param == null) {
  64. let myDate = new Date();
  65. param = {day: myDate.getFullYear()}
  66. }
  67. return request({
  68. url: '/center-resources/VisuForestCloudBigDataController/selectEventByYearGroupByFireSource',
  69. data: param,
  70. method: 'post'
  71. })
  72. }
  73. //重点区域
  74. export function getZdqy() {
  75. return request({
  76. url: '/center-resources/VisuForestCloudBigDataController/selectBigDataImportareaDeptCount',
  77. method: 'post'
  78. })
  79. }
  80. //设备上报事件数量
  81. export function getSbsbsjsl(param) {
  82. //暂时传当年,以后再说
  83. if (param == null) {
  84. let myDate = new Date();
  85. param = {day: myDate.getFullYear()}
  86. }
  87. return request({
  88. url: '/center-resources/VisuForestCloudBigDataController/getAIEventNum',
  89. data: param,
  90. method: 'post'
  91. })
  92. }
  93. //珍惜古树
  94. export function getZxgs() {
  95. return request({
  96. url: '/center-resources/VisuForestCloudBigDataController/selectBigDataTreesDeptCount',
  97. method: 'post'
  98. })
  99. }
  100. //事件趋势
  101. export function getSjqs(param) {
  102. //暂时传当年,以后再说
  103. if (param == null) {
  104. let myDate = new Date();
  105. param = {day: myDate.getFullYear()}
  106. }
  107. return request({
  108. url: '/center-resources/VisuForestCloudBigDataController/getEventTrend',
  109. data: param,
  110. method: 'post'
  111. })
  112. }
  113. //网格分布
  114. export function getWgfb() {
  115. return request({
  116. url: '/center-resources/VisuForestCloudBigDataController/selectBigDataFridDeptCount',
  117. method: 'post'
  118. })
  119. }
  120. //天气趋势
  121. export function getTqqs(param) {
  122. if (param == null) {
  123. let myDate = new Date();
  124. let month = myDate.getMonth() + 1;
  125. if (month < 10) {
  126. month = "0" + month
  127. }
  128. param = {day: myDate.getFullYear() + "-" + month}
  129. }
  130. return request({
  131. url: '/center-resources/VisuForestCloudBigDataController/selectBigDataByYearMonthFegin',
  132. data: param,
  133. method: 'post'
  134. })
  135. }
  136. //网格人员
  137. export function getWgry() {
  138. return request({
  139. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFridLZDeptCount',
  140. method: 'post',
  141. data:6
  142. })
  143. }
  144. // 土地资源管理信息
  145. export function getFhd() {
  146. return request({
  147. url: '/center-resources/VisuForestCloudBigDataController/selectBigDataFireTeamDeptCount',
  148. method: 'post'
  149. })
  150. }
  151. // 水能资源
  152. export function getQxz() {
  153. return request({
  154. url: '/center-resources/VisuForestCloudBigDataController/selectHydroenergyCount',
  155. method: 'post'
  156. })
  157. }
  158. //综合信息
  159. export function getZhxx(param) {
  160. //暂时传当年,以后再说
  161. if (param == null) {
  162. let myDate = new Date();
  163. param = {day: myDate.getFullYear()}
  164. }
  165. return request({
  166. url: '/center-resources/VisuForestCloudBigDataController/selectBigDataZhxx',
  167. data: param,
  168. method: 'post'
  169. })
  170. }
  171. //热力图
  172. export function getRlt(param) {
  173. //暂时传当年,以后再说
  174. if (param == null) {
  175. let myDate = new Date();
  176. param = {day: myDate.getFullYear()}
  177. }
  178. return request({
  179. url: '/center-resources/VisuForestCloudBigDataController/getHeatMap',
  180. method: 'post',
  181. data : param
  182. })
  183. }
  184. //按时间、事件类别统计事件数据(年度、月份、四类事件数量)
  185. export function getEventTypeYearStatistics() {
  186. return request({
  187. url: '/center-resources/VisuForestCloudBigDataController/getEventTypeYearStatistics',
  188. method: 'post'
  189. })
  190. }
  191. //大数据查询大气环境数据的走势以月、年进行统计分析
  192. export function findDataByYear() {
  193. return request({
  194. url: '/center-resources/VisuForestCloudBigDataController/findDataByYear',
  195. method: 'post'
  196. })
  197. }
  198. //大数据查询大气环境数据的走势以日、月进行统计分析
  199. export function findDataByMonth() {
  200. return request({
  201. url: '/center-resources/VisuForestCloudBigDataController/findDataByMonth',
  202. method: 'post'
  203. })
  204. }