Newer
Older
KaiFengPC / src / api / dataAnalysis / realAlarm.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
  1. /*
  2. * @Author: liyingjing ll47991367@qq.com
  3. * @Date: 2023-06-19 14:37:34
  4. * @LastEditors: liyingjing ll47991367@qq.com
  5. * @LastEditTime: 2023-06-26 17:47:23
  6. * @FilePath: \equipmentMonitor\src\api\realAlarm.js
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9.  
  10. import request from '@/utils/request';
  11.  
  12. export function getSiteSelectList(params) {
  13. return request({
  14. url: `/business/rtuSiteInfo/getSiteSelectList?siteType=${params}`,
  15. method: 'get',
  16. });
  17. }
  18. // 分页搜索告警规则、
  19. export function rtuWarnConfigPage(params) {
  20. return request({
  21. url: `/business/rtuWarnRecordRealtime/page`,
  22. method: 'get',
  23. params,
  24. });
  25. }
  26.  
  27. export function rtuWarnConfigInfo(params) {
  28. return request({
  29. url: `/business/rtuWarnRecordRealtime/${params}`,
  30. method: 'get',
  31. });
  32. }
  33.  
  34. export function rtuWarnConfigAdd(data) {
  35. return request({
  36. url: `/business/rtuWarnRecordRealtime/add`,
  37. method: 'post',
  38. data,
  39. });
  40. }
  41.  
  42. export function rtuWarnConfDelete(params) {
  43. return request({
  44. url: `/business/rtuWarnRecordRealtime/${params}`,
  45. method: 'delete',
  46. });
  47. }
  48.  
  49. export function rtuSiteMonitorList() {
  50. return request({
  51. url: `/business/rtuMonitorProperty/list`,
  52. method: 'get',
  53. });
  54. }
  55.  
  56. export function rtuWarnConfigedit(data) {
  57. return request({
  58. url: `/business/rtuWarnRecordRealtime/edit`,
  59. method: 'put',
  60. data,
  61. });
  62. }
  63.  
  64. // 遥测站数据统计报表搜索
  65. export function siteMonitorReport(params) {
  66. return request({
  67. url: `/business/siteHistoryMonitor/siteMonitorReport`,
  68. method: 'get',
  69. params,
  70. });
  71. }