Newer
Older
KaiFengPC / src / api / dataAnalysis / AlertService.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
import request from '@/utils/request';

// 获取用户详细信息
export function getSiteSelectList(params) {
  return request({
    url: `/business/rtuSiteInfo/getSiteSelectList?siteType=${params}`,
    method: 'get',
  });
}
// 分页查询告警规则、
export function rtuWarnConfigPage(params) {
  return request({
    url: `/business/rtuWarnConfig/page`,
    method: 'get',
    params,
  });
}

// 获取用户详细信息
export function rtuWarnConfigInfo(params) {
  return request({
    url: `/business/rtuWarnConfig/${params}`,
    method: 'get',
  });
}

// 获取用户详细信息
export function rtuWarnConfigAdd(data) {
  return request({
    url: `/business/rtuWarnConfig/add`,
    method: 'post',
    data,
  });
}

// 获取用户详细信息
export function rtuWarnConfDelete(params) {
  return request({
    url: `/business/rtuWarnConfig/${params}`,
    method: 'delete',
  });
}
// 列表查询RTU监测项&实时数据
export function rtuSiteMonitorList(params) {
  return request({
    url: `/business/rtuSiteMonitor/list`,
    method: 'get',
    params,
  });
}

// 获取用户详细信息
export function rtuWarnConfigedit(data) {
  return request({
    url: `/business/rtuWarnConfig/edit`,
    method: 'put',
    data,
  });
}
//查询所有站点
export function rtuSiteInfoList() {
  return request({
    url: '/business/rtuSiteInfo/list',
    method: 'get',
  });
}