he wei
5 天以前 3c3576d5792bfabcef84979757ee344712e71cd3
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
import request from '@/utils/request';
 
/**
 * 历史测试记录
 * battgroupId
 */
export function getBattTinf(battgroupId) {
  return request({
    url: 'real/getBattTinf',
    method: 'GET',
    params: { battgroupId }
  });
}
 
/**
 * 历史实时查询
 * battgroupId, startTime, endTime, granularity
 */
export function getBattRealDataHis(battgroupId, startTime, endTime, granularity) {
  return request({
    url: 'real/getBattRealDataHis',
    method: 'GET',
    params: { battgroupId, startTime, endTime, granularity }
  });
}
 
/**
 * 历史测试记录具体某一次放电数据详情
 * battgroupId, granularity, recordNum, testRecordCount
 */
export function getTinfDataWithTestRecordCount(battgroupId, granularity, recordNum, testRecordCount) {
  return request({
    url: 'real/getTinfDataWithTestRecordCount',
    method: 'GET',
    params: { battgroupId, granularity, recordNum, testRecordCount }
  });
}