Newer
Older
DH_Apicture / src / api / MonitorAssetsOnMap.js
@zhangqy zhangqy 17 days ago 8 KB 开发均值分析
  1. import request from '@/utils/request';
  2. // 查詢天氣
  3. export function getweather(forecastType, monitorTime) {
  4. return request({
  5. url: `/business/weather/predict?forecastType=${forecastType}&monitorTime=${monitorTime}`,
  6. method: 'get',
  7. });
  8. }
  9.  
  10. // 1.查询基础点位数据
  11. export function getBaseListPoint(query) {
  12. return request({
  13. url: '/business/dataSiteRelation/getBaseListPoint',
  14. method: 'get',
  15. params: query,
  16. });
  17. }
  18.  
  19. //diversion_well_info 分流井
  20. // drainage_info 排水户
  21. // port_channel_info 港渠
  22. // region_info 分区信息
  23. // sewage_factory_info 污水处理厂
  24. // storage_tank_info 调蓄池
  25. // water_gate_info 水闸
  26.  
  27. //点位查看绑定站点
  28. export function getRELAList(query) {
  29. return request({
  30. url: '/business/dataSiteRelation/list',
  31. method: 'get',
  32. params: query,
  33. });
  34. }
  35.  
  36. // id
  37. // point_type
  38. // 站点编号,名称,因子列表
  39. // stCode,stName,stConfigs,stConfigsName
  40.  
  41. // 查询出绑定站点数据
  42. export function getEchart(query) {
  43. return request({
  44. url: '/business/dataSiteRelation/getEchart',
  45. method: 'get',
  46. params: query,
  47. });
  48. }
  49. // stCode gens
  50.  
  51. // 点位信息查看绑定视频
  52. export function getdataCamera(query) {
  53. return request({
  54. url: '/business/dataCameraRelation/list',
  55. method: 'get',
  56. params: query,
  57. });
  58. }
  59. // dataId,cameraName
  60.  
  61. // 查询点位详情
  62. export function getBaseDetail(query) {
  63. return request({
  64. url: '/business/dataSiteRelation/getBaseDetail',
  65. method: 'get',
  66. params: query,
  67. });
  68. }
  69.  
  70. // dataID 数据id
  71. // dataCode 例如 lake_info
  72.  
  73. // 查询基础数据-水系汇水分区列表
  74. export function listwaterRegionInfo(query) {
  75. return request({
  76. url: '/business/waterRegionInfo/list',
  77. method: 'get',
  78. params: query,
  79. });
  80. }
  81. // 查询因子列表 get stCode 站点编号
  82. export function getDetailByCode(query) {
  83. return request({
  84. url: '/business/rtuSiteMonitor/getDetailByCode',
  85. method: 'get',
  86. params: query,
  87. });
  88. }
  89.  
  90. // 查询站点类型 get monitorTargetType 站点类型
  91. export function GetmonitorTargetType(query) {
  92. return request({
  93. url: '/business/monitorTargetType',
  94. method: 'get',
  95. params: query,
  96. });
  97. }
  98.  
  99. // 降雨过程线echart
  100. export function GettHourDataechart(query) {
  101. return request({
  102. url: '/rainfall/monitorUnitHourData/getEchart',
  103. method: 'get',
  104. params: query,
  105. });
  106. }
  107.  
  108. // 最大降雨统计
  109. export function getMaxRain(query) {
  110. return request({
  111. url: '/rainfall/monitorUnitSiteInfo/getMaxRain',
  112. method: 'get',
  113. params: query,
  114. });
  115. }
  116.  
  117. // 站点详情,降雨段+最大降雨
  118. export function getRainDetail(query) {
  119. return request({
  120. url: '/rainfall/monitorUnitSiteInfo/getRainDetail',
  121. method: 'get',
  122. params: query,
  123. });
  124. }
  125.  
  126. export const pipelineWarnConfiglist = data => {
  127. return request({
  128. url: `/business/pipelineWarnConfig/list`,
  129. method: 'get',
  130. params: data,
  131. });
  132. };
  133.  
  134. export const getConfigsiteNo = data => {
  135. return request({
  136. url: `/business/plcHomePage/getConfig`,
  137. method: 'get',
  138. params: data,
  139. });
  140. };
  141.  
  142. // 下游分析
  143. export function downStreamAnalyse(query) {
  144. return request({
  145. url: `/business/pipelineInfo/downStreamAnalyse/${query.startPointNumber}`,
  146. method: 'get',
  147. params: query,
  148. });
  149. }
  150.  
  151. // 上游分析
  152. export function upStreamAnalyse(query) {
  153. return request({
  154. url: `/business/pipelineInfo/upStreamAnalyse/${query.endPointNumber}`,
  155. // url: `/newfiber-project-dhgx/pipelineInfo/upStreamAnalyse/${query.endPointNumber}`,
  156. method: 'get',
  157. params: query,
  158. });
  159. }
  160.  
  161. // 连通性分析
  162. export function connectAnalyse(query) {
  163. return request({
  164. url: `/business/pipelineInfo/connectAnalyse`,
  165. method: 'get',
  166. params: query,
  167. });
  168. }
  169.  
  170. // 监测资产通用弹窗
  171. export function dataSiteRelationGetMenu(query) {
  172. return request({
  173. url: `/business/dataSiteRelation/getMenu`,
  174. method: 'get',
  175. params: query,
  176. });
  177. }
  178. // 大屏通用弹窗
  179. export function drainageDispatchGetMenu(query) {
  180. return request({
  181. url: `/business/drainageDispatch/getMenu`,
  182. method: 'get',
  183. params: query,
  184. });
  185. }
  186. // 汇水分区查询关联7类数据 get id
  187. export function getWaterRegionData(query) {
  188. return request({
  189. url: `/business/dataSiteRelation/getWaterRegionData`,
  190. method: 'get',
  191. params: query,
  192. });
  193. }
  194.  
  195. // 污水分区,查询污水泵站,污水厂数据 get id
  196. export function getRegionData(query) {
  197. return request({
  198. url: `/business/dataSiteRelation/getRegionData`,
  199. method: 'get',
  200. params: query,
  201. });
  202. }
  203.  
  204. // 湖泊,查询汇水分区绑定,泵站,水闸,分流井
  205. export function getReservoirData(query) {
  206. return request({
  207. url: `/business/dataSiteRelation/getReservoirData`,
  208. method: 'get',
  209. params: query,
  210. });
  211. }
  212.  
  213. // 湖泊,查询绑定的水位/水质站点列表
  214. export function getReservoirSiteList(query) {
  215. return request({
  216. url: `/business/dataSiteRelation/getReservoirSiteList`,
  217. method: 'get',
  218. params: query,
  219. });
  220. }
  221.  
  222. export function getSectionByWellCode(code) {
  223. return request({
  224. url: `/business/pipelineInfo/getSectionByWellCode/${code}`,
  225. method: 'get',
  226. });
  227. }
  228.  
  229. export function getSectionByWellCodeDetail(params) {
  230. return request({
  231. url: `/business/drainageMap/getSectionByWellCode/wellCode`,
  232. method: 'get',
  233. params,
  234. });
  235. }
  236. // 堤防防汛备料全部数据
  237. export function infoListallDFFXBL(params) {
  238. return request({
  239. url: '/business/managementDikeGood/list',
  240. method: 'get',
  241. params,
  242. });
  243. }
  244. // 分页查询防汛仓库和备料
  245. export function managementWarehouseGoodPage(params) {
  246. return request({
  247. url: '/business/managementWarehouseGood/page',
  248. method: 'get',
  249. params: {
  250. ...params,
  251. },
  252. });
  253. }
  254. // 排口整治列表
  255. export function outletRegulateList(query) {
  256. return request({
  257. url: '/business/outletRegulate/list',
  258. method: 'get',
  259. params: query,
  260. });
  261. }
  262. // 排口监测列表
  263. export function outletMonitorList(query) {
  264. return request({
  265. url: '/business/outletMonitor/list',
  266. method: 'get',
  267. params: query,
  268. });
  269. }
  270. // 渍水监测降雨历史
  271. export function drainageDispatchRainAnalysisByZsjcd(query) {
  272. return request({
  273. url: '/business/drainageDispatch/rainAnalysisByZsjcd',
  274. method: 'get',
  275. params: query,
  276. });
  277. }
  278. //管网监测历史经验
  279. export function drainageDispatchRainAnalysisByGwjcd(query) {
  280. return request({
  281. url: '/business/drainageDispatch/rainAnalysisByGwjcd',
  282. method: 'get',
  283. params: query,
  284. });
  285. }
  286. //泵站监测历史经验
  287. export function drainageDispatchRainAnalysisByBz(query) {
  288. return request({
  289. url: '/business/drainageDispatch/rainAnalysisByBz',
  290. method: 'get',
  291. params: query,
  292. });
  293. }
  294. //港渠列表
  295. export function getPortChannelLengthSum(params) {
  296. return request({
  297. url: '/business/drainageDispatch/getPortChannelLengthSum',
  298. method: 'get',
  299. params,
  300. });
  301. }
  302. // 河湖水文历史
  303. export function hisHydrologyList(query) {
  304. return request({
  305. url: '/business/hisHydrology/list',
  306. method: 'get',
  307. params: query,
  308. });
  309. }
  310. export function getByPipeLineCode(query) {
  311. return request({
  312. url: `/business/pipelineInfo/getByPipeLineCode`,
  313. method: 'get',
  314. params: query,
  315. });
  316. }
  317.  
  318. export function selectByPointNumber(query) {
  319. return request({
  320. url: `/business/pipelinePoint/selectByPointNumber`,
  321. method: 'get',
  322. params: query,
  323. });
  324. }
  325. //水质信息
  326. export function getWaterQualityEchart(code) {
  327. return request({
  328. url: `/business/dataSiteRelation/getWaterQualityEchart/${code}`,
  329. method: 'get',
  330. });
  331. }
  332. // 历史水质
  333. export function riverQualityGetHistory(query) {
  334. return request({
  335. url: `/business/riverQuality/getHistory`,
  336. method: 'get',
  337. params: query,
  338. });
  339. }
  340.  
  341. // 污水
  342. export function SWgetPumpDetail(query) {
  343. return request({
  344. url: '/business/sewagePumpStationInfo/getPumpDetail',
  345. method: 'get',
  346. params: query,
  347. });
  348. }
  349.  
  350. // 雨水
  351. export function RaingetPumpDetail(query) {
  352. return request({
  353. url: '/business/rainWaterPumpStationInfo/getPumpDetail',
  354. method: 'get',
  355. params: query,
  356. });
  357. }
  358.  
  359. // 雨水Echarts
  360. export function rainEcharts(query) {
  361. return request({
  362. url: '/business/rainWaterPumpStationInfo/getPumpEchart',
  363. method: 'get',
  364. params: query,
  365. });
  366. }
  367.  
  368. // 污水echarts
  369. export function sewageEcharts(query) {
  370. return request({
  371. url: '/business/sewagePumpStationInfo/getPumpEchart',
  372. method: 'get',
  373. params: query,
  374. });
  375. }
  376. // 均值查询
  377. export function dataSiteRelationGetHistoryCount(query) {
  378. return request({
  379. url: '/business/dataSiteRelation/getHistoryCount',
  380. method: 'get',
  381. params: query,
  382. });
  383. }