longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
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
import axios from "axios";
/* 设备告警实时页面查询 */
 
/* 查询设备实时告警
json={"stationName1":"","stationName":"","alm_type":"0","page":{"pageSize":14,"pageCurr":1}}
*/
export const deviceAlarm = (data) => {
    return axios({
        method: "post",
        url: "Batt_devalarm_dataAction!serchByInfo",
        data: "json=" + JSON.stringify(data)
    })
}
 
/* 
确认告警
json=[{"num":"118001","stationName":"江苏省-连云港市-赣榆区-10kV紫菜工业园开闭所-LD9","alm_is_confirmed":1,
"alm_confirmed_time":"2020-09-11 09:51:57","note":"通信故障"}]
*/
export const deviceOk = (data) => {
    return axios({
        method: "post",
        url: "Batt_devalarm_dataAction!updatePro",
        data: "json=" + JSON.stringify(data)
    })
}
 
/* 删除告警
json=[{"num":"166763","stationName":"湖北省-黄石市-黄石港区-测试机房-61850设备","note":"通信故障"}]
*/
export const deviceDelete = (data) => {
    return axios({
        method: "post",
        url: "Batt_devalarm_dataAction!deletePro",
        data: "json=" + JSON.stringify(data)
    })
}
 
 
/* 页面加载时查询维护区中的枢纽类型
 无参
*/
export const deviceTypes = () => {
    return axios({
        method: "post",
        url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup ",
        data: null
    })
}
 
/* 
机房名称  json={"UNote":""}
*/
export const deviceSeions = (data) => {
    return axios({
        method: "post",
        url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup ",
        data: "json=" + JSON.stringify(data)
    })
}
 
/* 
json=[{"num":"586192","stationName":"广西省-南宁市-西乡塘区-西乡塘区清川桥北基站-设备",
"note":"通信故障","alm_cleared_type":2,"alm_end_time":"2020-09-30 11:43:14","record_id":0}]
*/
export const CancelWarning = (data) => {
    return axios({
        method: "post",
        url: "Batt_devalarm_dataAction!cancelPro",
        data: "json=" + JSON.stringify(data)
    })
}