Newer
Older
KaiFengPC / src / api / scada / historyGj.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
import request from '@/utils/request';

// 获取用户详细信息
export function getSiteSelectList(params) {
  return request({
    url: `/scada/rtuSiteInfo/getSiteSelectList?siteType=${params}`,
    method: 'get',
  });
}
// 分页搜索告警规则、
export function warnRecordHistoryPage(params) {
  return request({
    url: `/scada/warnRecordHistory/page`,
    method: 'get',
    params,
  });
}
//搜索历史告警记录类型统计
export function warnRecordHistory() {
  return request({
    url: '/scada/warnRecordHistory/plcWarnTypeStatistic',
    method: 'get',
  });
}

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

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

// 获取用户详细信息
export function rtuWarnConfDelete(params) {
  return request({
    url: `/scada/rtuWarnRecordHistory/${params}`,
    method: 'delete',
  });
}
// 获取用户详细信息
export function rtuSiteMonitorList() {
  return request({
    url: `/scada/rtuMonitorProperty/list`,
    method: 'get',
  });
}

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