longyvfengyun
2023-12-20 e20bc2892a994f220a176336c6b6f14eeb3e1937
src/api/analysis/index.js
@@ -3,14 +3,35 @@
/**
 * 获取电池分析数据
 * @param type 分析数据的算法类型
 * @param boxSn 车辆编码
 * @param startTime 开始时间
 * @param endTime   结束时间
 * @return {Promise<AxiosResponse<any>> | *}
 */
export const bmsAnalysisApi = (type)=>{
export const bmsAnalysisApi = (type, boxSn, startTime, endTime)=>{
  return axios({
    method: "POST",
    url: "/monitor/box/bmsAlgorith",
    params: {
    data: {
      type,
      boxSn,
      startTime,
      endTime
    }
  });
}
/**
 * 更具数据类型查询可使用日期
 * @param algorithmType 数据类型
 * @return {Promise<AxiosResponse<any>> | *}
 */
export const bmsAnalysisTimeApi = (algorithmType)=>{
  return axios({
    method: "GET",
    url: "/monitor/box/selectByAlgotithmType",
    params: {
      algorithmType
    }
  });
}