longyvfengyun
2023-11-16 b537c7bccbcc20644902ad6f0e309bbe9a6eda24
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
import axios from "@/assets/js/axios";
 
/**
 * 查询车辆名称
 * @return {Promise<AxiosResponse<any>> | *}
 */
export const searchCarNames = ()=>{
  return axios({
    method: "GET",
    url: "/monitor/box/selectNameByName",
  });
}
 
export const searchBattHistory= (boxSn, startTime, endTime) => {
  return axios({
    method: "GET",
    url: "/monitor/bmsMonitor/selectHistory",
    params: {
      boxSn,
      startTime,
      endTime
    }
  });
}
 
/**
 * 统计最近7日新增的电池组
 * @return {Promise<axios.AxiosResponse<any>> | *}
 */
export const searchStatisticCreate = ()=>{
  return axios({
    method: "GET",
    url: "/monitor/bmsAlamMonitor/statisticCreate",
  });
}
 
/**
 * 统计电池组总数
 * @return {Promise<axios.AxiosResponse<any>> | *}
 */
export const searchStatisticSum = ()=>{
  return axios({
    method: "GET",
    url: "/monitor/bmsAlamMonitor/statisticSum",
  });
}