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
import axios from "./axios";
 
/**
 * 获取充放电记录
 * 参数:json={"num":910000119,"BattGroupId":1005129}
 * 返回结果说明:
 * test_type==3&&test_starttype==3?核容放电:监测放电
 * test_type==2&&test_starttype=3?核容充电:监测充电
 * test_starttime 开始测试时间
 * test_record_count 后台记录的笔数
 * test_stoptype_reason 停止原因
 */
 
export const searchBattTestData = (params) => {
    return axios({
        method: "post",
        url: "/yckj/zijing_sx/Batttestdata_infAction_searchBattTestInfDataById",
        data: "json=" + JSON.stringify(params)
    })
}
 
 
/**
 * 获取顶部电池组信息
 * 参数:btds.BattGroupId=1005129&btds.test_record_count=7 
 */
export const searchBattTestDataStop = (BattGroupId, count) => {
    return axios({
        method: "post",
        url: "/yckj/zijing_sx/BatttestdatastopAction_findByInfo",
        data: "btds.BattGroupId="+BattGroupId+"&btds.test_record_count="+count
    })
}
 
/**
 * 查询历史数据
 * 参数: json={"BattGroupId":1005129,"test_record_count":"7"}
 */
export const searchHistory = (params) => {
    return axios({
        method: "post",
        url: "/yckj/zijing_sx/BatttestdataAction!findhistory",
        data: "json=" + JSON.stringify(params)
    })
}