lishifeng
2020-09-15 ce10677f47a14879424e7f562f78442cc03cfda1
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
import axios from "../axios";
/* 设备告警实时页面查询 */
 
/* 查询设备实时告警
json={"stationName1":"","stationName":"","alm_type":"0","page":{"pageSize":14,"pageCurr":1}}
*/
export const deviceAlarm = (data) => {
    return axios({
        method: "post",
        url: "/yckj/zijing_sx/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: "/yckj/zijing_sx/Batt_devalarm_dataAction!updatePro",
        data: "json=" + JSON.stringify(data)
    })
}
 
 
/* 删除告警
json=[{"num":"166763","stationName":"湖北省-黄石市-黄石港区-测试机房-61850设备","note":"通信故障"}]
*/
export const deviceDelete = (data) => {
    return axios({
        method: "post",
        url: "/yckj/zijing_sx/Batt_devalarm_dataAction!deletePro ",
        data: "json=" + JSON.stringify(data)
    })
}
 
 
/* 页面加载时查询维护区中的枢纽类型
 无参
*/
export const deviceTypes = () => {
    return axios({
        method: "post",
        url: "/yckj/zijing_sx/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup ",
        data: null
    })
}
 
/* 
根据维护区查询站点  json={"UNote":""}
*/
export const deviceSeions = (data) => {
    return axios({
        method: "post",
        url: "/yckj/zijing_sx/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup ",
        data: "json=" + JSON.stringify(data)
    })
}