he wei
2024-04-15 c94f1afa786f297be86b01b49a641b2c0ad98b6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import axios from "axios";
 
/**
 * 查询 分页 获取断路器开关
 */
export const getList = (params) => {
  return axios({
    method: "GET",
    url: "breakerInf/getBreakerInf",
    params,
  });
};
 
/**
 * 查询 分页 获取网关配置
 */
export const getGatewayList = (params) => {
  return axios({
    method: "GET",
    url: "gatewayInf/getGatewayInf",
    params,
  });
};
 
/**
 * 获取网关类别
 */
export const getGatewayType = () => {
  return axios({
    method: "GET",
    url: "gatewayInf/getGatewayType",
  });
};
 
/**
 * 获取通讯类别
 */
export const getCommType = () => {
  return axios({
    method: "GET",
    url: "gatewayInf/getCommType",
  });
};
/**
 * 增加网关
 */
export const addGateway = (data) => {
  return axios({
    method: "POST",
    url: "gatewayInf/addGateway",
    data,
  });
};
/**
 * 编辑网关
 */
export const updateGateway = (data) => {
  return axios({
    method: "POST",
    url: "gatewayInf/updateGateway",
    data,
  });
};
/**
 * 删除网关
 */
export const deleteGateway = (num) => {
  return axios({
    method: "GET",
    url: "gatewayInf/deleteGateway",
    params: { num },
  });
};
/**
 * 断路器 获取安装位置
 */
export const getBreakerAddr = () => {
  return axios({
    method: "GET",
    url: "breakerInf/getBreakerAddr",
  });
};
 
/**
 * 断路器 获取断路器类别 下接
 */
export const getBreakerType = () => {
  return axios({
    method: "GET",
    url: "breakerInf/getBreakerType",
  });
};
/**
 * 断路器 获取所属网关
 */
export const getGatewayName = () => {
  return axios({
    method: "GET",
    url: "gatewayInf/getGatewayName",
  });
};
 
/**
 * 断路器 获取断路器名称 下拉
 */
export const getBreakerName = () => {
  return axios({
    method: "GET",
    url: "breakerInf/getBreakerName",
  });
};
 
 
/**
 * 断路器 获取断路器名称 分组
 */
export const getBreakerNamesInGroup = () => {
  return axios({
    method: "GET",
    url: "breakerInf/getBreakerClassification",
  });
};