Newer
Older
KaiFengPC / src / api / scada / historyGj.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
  1. import request from '@/utils/request';
  2.  
  3. // 获取用户详细信息
  4. export function getSiteSelectList(params) {
  5. return request({
  6. url: `/scada/rtuSiteInfo/getSiteSelectList?siteType=${params}`,
  7. method: 'get',
  8. });
  9. }
  10. // 分页查询告警规则、
  11. export function warnRecordHistoryPage(params) {
  12. return request({
  13. url: `/scada/warnRecordHistory/page`,
  14. method: 'get',
  15. params,
  16. });
  17. }
  18. //查询历史告警记录类型统计
  19. export function warnRecordHistory() {
  20. return request({
  21. url: '/scada/warnRecordHistory/plcWarnTypeStatistic',
  22. method: 'get',
  23. });
  24. }
  25.  
  26. // 获取用户详细信息
  27. export function rtuWarnConfigInfo(params) {
  28. return request({
  29. url: `/scada/rtuWarnRecordHistory/${params}`,
  30. method: 'get',
  31. });
  32. }
  33.  
  34. // 获取用户详细信息
  35. export function rtuWarnConfigAdd(data) {
  36. return request({
  37. url: `/scada/rtuWarnRecordHistory/add`,
  38. method: 'post',
  39. data,
  40. });
  41. }
  42. // 退出方法
  43. // export function logout() {
  44. // return request({
  45. // url: "/auth/logout",
  46. // method: "delete",
  47. // });
  48. // }
  49.  
  50. // 获取用户详细信息
  51. export function rtuWarnConfDelete(params) {
  52. return request({
  53. url: `/scada/rtuWarnRecordHistory/${params}`,
  54. method: 'delete',
  55. });
  56. }
  57. // 获取用户详细信息
  58. export function rtuSiteMonitorList() {
  59. return request({
  60. url: `/scada/rtuMonitorProperty/list`,
  61. method: 'get',
  62. });
  63. }
  64.  
  65. // 获取用户详细信息
  66. export function rtuWarnConfigedit(data) {
  67. return request({
  68. url: `/scada/rtuWarnRecordHistory/edit`,
  69. method: 'put',
  70. data,
  71. });
  72. }