Newer
Older
KaiFengPC / src / api / scada / AlertService.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
import request from '@/utils/request';
// 获取用户详细信息
export function getSiteSelectList(params) {
  return request({
    url: `/scada/rtuSiteInfo/getSiteSelectList?siteType=${params}`,
    method: 'get',
  });
}
// 分页查询告警规则、
export function plcWarnConfigPage(params) {
  return request({
    url: `/scada/plcWarnConfig/page`,
    method: 'get',
    params,
  });
}

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

// 获取用户详细信息
export function plcWarnConfigAdd(data) {
  return request({
    url: `/scada/plcWarnConfig/add`,
    method: 'post',
    data,
  });
}
// 退出方法
// export function logout() {
//   return request({
//     url: "/auth/logout",
//     method: "delete",
//   });
// }

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

// 获取用户详细信息
export function plcWarnConfigedit(data) {
  return request({
    url: `/scada/plcWarnConfig/edit`,
    method: 'put',
    data,
  });
}