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
| import request from "@/utils/request";
|
| // 查询储气罐预警列表
| export const getStockWarningPage = (params) => {
| return request({
| url: "/gasTankWarning/listPage",
| method: "get",
| params,
| });
| };
|
| // 新增储气罐预警规则
| export const addStockWarning = (data) => {
| return request({
| url: "/gasTankWarning/add",
| method: "post",
| data,
| });
| };
|
| // 修改储气罐预警规则
| export const updateStockWarning = (data) => {
| return request({
| url: "/gasTankWarning/update",
| method: "put",
| data,
| });
| };
|
| // 删除储气罐预警规则
| export const deleteStockWarning = (ids) => {
| return request({
| url: "/gasTankWarning/delete",
| method: "delete",
| data: { ids },
| });
| };
|
| // 批量处理储气罐预警
| export const batchProcessStockWarning = (data) => {
| return request({
| url: "/gasTankWarning/batchProcess",
| method: "post",
| data,
| });
| };
|
| // 导出储气罐预警数据
| export const exportStockWarning = (params) => {
| return request({
| url: "/gasTankWarning/export",
| method: "get",
| params,
| responseType: "blob",
| });
| };
|
| // 根据ID获取储气罐预警详情
| export const getStockWarningById = (id) => {
| return request({
| url: `/gasTankWarning/${id}`,
| method: "get",
| });
| };
|
| // 启用/禁用预警规则
| export const toggleStockWarningStatus = (data) => {
| return request({
| url: "/gasTankWarning/toggleStatus",
| method: "put",
| data,
| });
| };
|
| // 获取预警统计信息
| export const getStockWarningStatistics = () => {
| return request({
| url: "/gasTankWarning/statistics",
| method: "get",
| });
| };
|
|