bigdata.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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 getG3() {
  40. return request({
  41. url: '/center-water/VisuForestCloudBigDataController/selectReachWaterDeptCount',
  42. method: 'post',
  43. })
  44. }
  45. // 河流资源统计
  46. export function getG4() {
  47. return request({
  48. url: '/center-water/VisuForestCloudBigDataController/selectRiverWaterDeptCount',
  49. method: 'post',
  50. })
  51. }
  52. // 偷钓偷捕事件分析
  53. export function get5() {
  54. return request({
  55. url: '/center-water/VisuForestCloudBigDataController/getEventDeptStatistics',
  56. method: 'post',
  57. })
  58. }
  59. // 水利事件分析
  60. export function get6() {
  61. return request({
  62. url: '/center-water/VisuForestCloudBigDataController/getEventTypeRadar',
  63. method: 'post',
  64. })
  65. }
  66. //林场分布统计
  67. export function getLcfbtj() {
  68. return request({
  69. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFarmDeptCount',
  70. method: 'post'
  71. })
  72. }
  73. //起火原因统计
  74. export function getQhyytj(param) {
  75. //暂时传当年,以后再说
  76. if (param == null) {
  77. let myDate = new Date();
  78. param = {day: myDate.getFullYear()}
  79. }
  80. return request({
  81. url: '/center-water/VisuForestCloudBigDataController/selectEventByYearGroupByFireSource',
  82. data: param,
  83. method: 'post'
  84. })
  85. }
  86. //重点区域
  87. export function getZdqy() {
  88. return request({
  89. url: '/center-water/VisuForestCloudBigDataController/selectBigDataImportareaDeptCount',
  90. method: 'post'
  91. })
  92. }
  93. //设备上报事件数量
  94. export function getSbsbsjsl(param) {
  95. //暂时传当年,以后再说
  96. if (param == null) {
  97. let myDate = new Date();
  98. param = {day: myDate.getFullYear()}
  99. }
  100. return request({
  101. url: '/center-water/VisuForestCloudBigDataController/getAIEventNum',
  102. data: param,
  103. method: 'post'
  104. })
  105. }
  106. //珍惜古树
  107. export function getZxgs() {
  108. return request({
  109. url: '/center-water/VisuForestCloudBigDataController/selectBigDataTreesDeptCount',
  110. method: 'post'
  111. })
  112. }
  113. //事件趋势
  114. export function getSjqs(param) {
  115. //暂时传当年,以后再说
  116. if (param == null) {
  117. let myDate = new Date();
  118. param = {day: myDate.getFullYear()}
  119. }
  120. return request({
  121. url: '/center-water/VisuForestCloudBigDataController/getEventTrend',
  122. data: param,
  123. method: 'post'
  124. })
  125. }
  126. //事件趋势
  127. export function getWaterSjqs(param) {
  128. //暂时传当年,以后再说
  129. if (param == null) {
  130. let myDate = new Date();
  131. param = {day: myDate.getFullYear()}
  132. }
  133. return request({
  134. url: '/center-water/VisuForestCloudBigDataController/getEventWaterTrend',
  135. data: param,
  136. method: 'post'
  137. })
  138. }
  139. //网格分布
  140. export function getWgfb() {
  141. return request({
  142. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFridDeptCount',
  143. method: 'post'
  144. })
  145. }
  146. //天气趋势
  147. export function getTqqs(param) {
  148. if (param == null) {
  149. let myDate = new Date();
  150. let month = myDate.getMonth() + 1;
  151. if (month < 10) {
  152. month = "0" + month
  153. }
  154. param = {day: myDate.getFullYear() + "-" + month}
  155. }
  156. return request({
  157. url: '/center-water/VisuForestCloudBigDataController/selectBigDataByYearMonthFegin',
  158. data: param,
  159. method: 'post'
  160. })
  161. }
  162. //网格人员
  163. export function getWgry() {
  164. return request({
  165. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFridLZDeptCount',
  166. method: 'post'
  167. })
  168. }
  169. //防火队
  170. export function getFhd() {
  171. return request({
  172. url: '/center-water/VisuForestCloudBigDataController/selectBigDataFireTeamDeptCount',
  173. method: 'post'
  174. })
  175. }
  176. //气象站
  177. export function getQxz() {
  178. return request({
  179. url: '/center-water/VisuForestCloudBigDataController/selectBigDataWeatherStationDeptCount',
  180. method: 'post'
  181. })
  182. }
  183. //综合信息
  184. export function getZhxx(param) {
  185. //暂时传当年,以后再说
  186. if (param == null) {
  187. let myDate = new Date();
  188. param = {day: myDate.getFullYear()}
  189. }
  190. return request({
  191. url: '/center-water/VisuForestCloudBigDataController/selectBigDataZhxx',
  192. data: param,
  193. method: 'post'
  194. })
  195. }
  196. //热力图
  197. export function getRlt(param) {
  198. //暂时传当年,以后再说
  199. if (param == null) {
  200. let myDate = new Date();
  201. param = {day: myDate.getFullYear()}
  202. }
  203. return request({
  204. url: '/center-water/VisuForestCloudBigDataController/getHeatMap',
  205. method: 'post',
  206. data : param
  207. })
  208. }