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
73
74
75
76
77
78
import axios from "../axios";
/* 电池放电测试页面 */
 
//根据机房名称查询机房下的电池组信息
//bif.StationName1=&bif.StationName=江苏省-泰州市-海陵区-美好易居城领域小区1#开闭所-LD9设备
export const BatteryInformation = (data) => {
    return axios({
        method: "post",
        url: "attInfAction!serchByBattGroupName",
        data: "json=" + JSON.stringify(data)
    })
}
 
 
/* 页面加载时查询维护区中的枢纽类型  无参 */
export const assertClaim = () => {
    return axios({
        method: "post",
        url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",
        data: null
    })
}
 
/* 根据维护区查询站点  
json={"UNote":"上海市"}
*/
export const serachStation = (data) => {
    return axios({
        method: "post",
        url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup",
        data: "json=" + JSON.stringify(data)
    })
}
 
 
/* 根据机房查询电池组 
json={"UNote":"","UName":""}
*/
export const serachBattery = (data) => {
    return axios({
        method: "post",
        url: "User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup",
        data: "json=" + JSON.stringify(data)
    })
}
 
/* 移除指定的电池组从表格中  Devstate_usrAction!del*/
 
 
/* 读取BTS等设备的放电参数  json={"num":41,"dev_id":"910000012"} */
/*返回 {"result":"{\"code\":0,\"msg\":\"设置9100参数失败,请检查网络!\",\"sum\":0,\"newsum\":0}"} */
export const readParameter = (data) => {
    return axios({
        method: "post",
        url: "Fbs9100_setparamAction_action_serchbyDev_id",
        data: "json=" + JSON.stringify(data)
    })
}
 
 
//查询用户之前的添加设备的记录  无参
export const addDevicerecord = (data) => {
    return axios({
        method: "post",
        url: "Devstate_usrAction!serchByCondition",
        data: "json=" + JSON.stringify(data)
    })
}
 
 
// 根据设备id判断是否可以放电  json={"dev_id":910000011}
export const dataDischarge = (data) => {
    return axios({
        method: "post",
        url: "Batt_dischargeAction!serchByCondition",
        data: "json=" + JSON.stringify(data)
    })
}