bigdata.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. import request from '@/utils/request'
  2. // 事件来源,类型统计
  3. export function getEventSourceAndTypeStatistics(param) {
  4. return request({
  5. url: '/center-water/VisuForestCloudBigDataController/getEventSourceAndTypeStatistics',
  6. method: 'post',
  7. data: param
  8. })
  9. }
  10. // 设备类型统计
  11. export function getCameaCount() {
  12. return request({
  13. url: '/center-water/VisuForestCloudBigDataController/getCameaCount',
  14. method: 'post',
  15. })
  16. }
  17. // 设备分布
  18. export function getSbfb() {
  19. return request({
  20. url: '/center-water/VisuForestCloudBigDataController/getSbfb',
  21. method: 'post',
  22. })
  23. }
  24. // 闸口资源统计
  25. export function getG1() {
  26. return request({
  27. url: '/center-water/VisuForestCloudBigDataController/selectWaterGateDeptCount',
  28. method: 'post',
  29. })
  30. }
  31. // 水利工程资源统计
  32. export function getG2() {
  33. return request({
  34. url: '/center-water/VisuForestCloudBigDataController/selectWaterProjectDeptCount',
  35. method: 'post',
  36. })
  37. }
  38. //林场分布统计
  39. export function getLcfbtj() {
  40. return request({
  41. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFarmDeptCount',
  42. method: 'post'
  43. })
  44. }
  45. //起火原因统计
  46. export function getQhyytj(param) {
  47. //暂时传当年,以后再说
  48. if (param == null) {
  49. let myDate = new Date();
  50. param = {day: myDate.getFullYear()}
  51. }
  52. return request({
  53. url: '/center-water/VisuForestCloudBigDataController/selectEventByYearGroupByFireSource',
  54. data: param,
  55. method: 'post'
  56. })
  57. }
  58. //重点区域
  59. export function getZdqy() {
  60. return request({
  61. url: '/center-water/VisuForestCloudBigDataController/selectBigDataImportareaDeptCount',
  62. method: 'post'
  63. })
  64. }
  65. //设备上报事件数量
  66. export function getSbsbsjsl(param) {
  67. //暂时传当年,以后再说
  68. if (param == null) {
  69. let myDate = new Date();
  70. param = {day: myDate.getFullYear()}
  71. }
  72. return request({
  73. url: '/center-water/VisuForestCloudBigDataController/getAIEventNum',
  74. data: param,
  75. method: 'post'
  76. })
  77. }
  78. //珍惜古树
  79. export function getZxgs() {
  80. return request({
  81. url: '/center-water/VisuForestCloudBigDataController/selectBigDataTreesDeptCount',
  82. method: 'post'
  83. })
  84. }
  85. //事件趋势
  86. export function getSjqs(param) {
  87. //暂时传当年,以后再说
  88. if (param == null) {
  89. let myDate = new Date();
  90. param = {day: myDate.getFullYear()}
  91. }
  92. return request({
  93. url: '/center-water/VisuForestCloudBigDataController/getEventTrend',
  94. data: param,
  95. method: 'post'
  96. })
  97. }
  98. //网格分布
  99. export function getWgfb() {
  100. return request({
  101. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFridDeptCount',
  102. method: 'post'
  103. })
  104. }
  105. //天气趋势
  106. export function getTqqs(param) {
  107. if (param == null) {
  108. let myDate = new Date();
  109. let month = myDate.getMonth() + 1;
  110. if (month < 10) {
  111. month = "0" + month
  112. }
  113. param = {day: myDate.getFullYear() + "-" + month}
  114. }
  115. return request({
  116. url: '/center-water/VisuForestCloudBigDataController/selectBigDataByYearMonthFegin',
  117. data: param,
  118. method: 'post'
  119. })
  120. }
  121. //网格人员
  122. export function getWgry() {
  123. return request({
  124. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFridLZDeptCount',
  125. method: 'post'
  126. })
  127. }
  128. //防火队
  129. export function getFhd() {
  130. return request({
  131. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFireTeamDeptCount',
  132. method: 'post'
  133. })
  134. }
  135. //气象站
  136. export function getQxz() {
  137. return request({
  138. url: '/center-water/VisuForestCloudBigDataController/selectBigDataWeatherStationDeptCount',
  139. method: 'post'
  140. })
  141. }
  142. //综合信息
  143. export function getZhxx(param) {
  144. //暂时传当年,以后再说
  145. if (param == null) {
  146. let myDate = new Date();
  147. param = {day: myDate.getFullYear()}
  148. }
  149. return request({
  150. url: '/center-water/VisuForestCloudBigDataController/selectBigDataZhxx',
  151. data: param,
  152. method: 'post'
  153. })
  154. }
  155. //热力图
  156. export function getRlt(param) {
  157. //暂时传当年,以后再说
  158. if (param == null) {
  159. let myDate = new Date();
  160. param = {day: myDate.getFullYear()}
  161. }
  162. return request({
  163. url: '/center-water/VisuForestCloudBigDataController/getHeatMap',
  164. method: 'post',
  165. data : param
  166. })
  167. }