he wei
2024-09-21 70edda3b00f2528a473c28ec5a50b739ed160f0f
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import axios from "axios";
 
/**
 * 查询A059的机房列表
 * BattInfAction!serchAllStationName_8059 // 旧
 */
export const getA059StationList = () => {
  return axios({
    method: "GET",
    url: 'battInf/stationList8059'
  });
}
/**
 * Fgcd_filedownloadAction_action_serchByCondition // 旧
 * 实时查询设备文件下载情况  传参
 * json:{"deviceId":"805900001"}
 * 0 不下载
 * 1 正在下载
 * 2 下载完成
 * -1 下载失败
 */
export const getDownloadInfo = (deviceId) => {
  return axios({
    method: "GET",
    url: 'FGCDFileDownload/listByDeviceId',
    params: {
      deviceId
    }
  });
}
 
/**
 * Fgcd_filedownloadAction_action_sendCmdToA059_readFile // 旧
 * {deviceId, fileIndex}
 * A059一体机命令操作读取设备文件的cmd和ack校验 file_index页码数
 * 传参json:{"dev_id":"805900001","op_cmd":"161","file_index":"1"}
 */
export const getFileList = (params) => {
  return axios({
    method: "POST",
    url: 'FGCDFileDownload/sendCmdToA059_readFile',
    params
  });
}
/**
 * Fgcd_filedownloadAction_action_sendCmdToA059_downLoadFile // 旧
 * A059一体机命令操作导入设备文件的cmd和ack校验 BattGroupId 电池组id,file_index文件对应的索引号
 * 传参json:{"dev_id":"805900001","op_cmd":"163","BattGroupId":"1000048""download_flag1":"1","download_flag2":"1","download_flag3":"1", "download_flag4":"1""download_flag5":"1","download_flag6":"1","download_flag7":"1","download_flag8":"1"}
 */
export const importData = (data) => {
  return axios({
    method: "POST",
    url: 'FGCDFileDownload/sendCmdToA059_downloadFile',
    data
  });
}
 
/**
 * Fbotestdata_infAction!serchByCondition // 旧
 * {battGroupId}
 * 下拉读取导入数据记录,test_type分充电:2 ,放电:3 ,活化:4
 * 传参 json:{"BattGroupId":"1000007"}
 */
export const getTestList = (params) => {
  return axios({
    method: "GET",
    url: 'fBOTestDataInf/list',
    params
  });
}
 
/**
 * FbotestdataAction!serchByCondition // 旧
 * {battGroupId, testRecordCount}
 * 查询具体某一次放电的详细数据
 * 传参 json:{"test_record_count":"1","BattGroupId":"1000007"}
 */
export const getTestData = (params) => {
  return axios({
    method: "GET",
    url: 'FBOTestData/list',
    params
  });
}
 
/**
 * Fbotestdata_infAction!del // 旧
 * {battGroupId, testRecordCount}
 * 一体机界面查看到导入错误数据,删除
 * json:{"BattGroupId":"1000048","test_record_count":"1"}
 */
export const delTestData = (params) => {
  return axios({
    method: "POST",
    url: 'fBOTestDataInf/delete',
    params
  });
}
 
/**
 * Fgcd_filedownloadAction_action_sendCmdToA059_stopFile // 旧
 * A059一体机命令操作停止下载文件
 * {deviceId}
 */
export const stopImport = (params) => {
  return axios({
    method: "POST",
    url: 'FGCDFileDownload/sendCmdToA059',
    params
  });
}