he wei
2022-11-13 b4816f6294646157b50bb49f1d19eaf306e0ac8c
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
import axios from "@/assets/js/axios";
 
/**
 * 查询台站列表
 */
export const getStation = () => {
  return axios({
    method: "GET",
    url: "station/getStation"
  })
}
 
/**
 * 台站下添加文件
 */
export const addFileInStation = (params) => {
  return axios({
    method: "GET",
    url: "stationInfo/addFileInStation",
    params
  })
}
/**
 * 移除台站下文件(单个文件)
 * ?FilePath=1&stationName=1
 */
export const delFileFromStation = (params) => {
  return axios({
    method: "GET",
    url: "stationInfo/delFileFromStation",
    params
  })
}
/**
 * 添加台站
 */
export const addStation = (params) => {
  return axios({
    method: "GET",
    url: "stationInfo/addStation",
    params
  })
}
/**
 * 删除台站
 * ?stationName1=null&stationName2=null&stationName3=null 
 */
export const deleteStation = (params) => {
  return axios({
    method: "GET",
    url: "stationInfo/deleteStation",
    params
  })
}
/**
 * 编辑台站
 */
export const updateStation = (params) => {
  return axios({
    method: "GET",
    url: "stationInfo/updateStation",
    params
  })
}
/**
 * 解析xml文件
 * filePath
 */
export const getXmlValue = (params) => {
  return axios({
    method: "GET",
    url: "fileInfo/getXmlValue",
    params
  })
}
/**
 * fileParam/getParamByFileId  根据文件id获取文件参数
 */
export const getParamByFileId = (fileId) => {
  return axios({
    method: "GET",
    url: "fileParam/getParamByFileId",
    params: { fileId }
  })
}
/**
 * 单数据分析
 * fileId
 */
export const getInfoByFileId = (fileId) => {
  return axios({
    method: "GET",
    url: "battGroupData/list",
    params: { fileId }
  })
}
/**
 * 对比时下拉选择站点下挂在的文件列表
 */
export const getFileList = () => {
  return axios({
    method: "GET",
    url: "fileInfo/selectFileInStation"
  })
}
/**
 * 对比分析-两组数据列表
 * ?baseFileId=1&fileId=2
 */
export const comparedList = (baseFileId, fileId) => {
  return axios({
    method: "GET",
    url: "battGroupData/comparedList",
    params: {
      baseFileId, fileId
    }
  })
}
/**
 * 按照筛选条件查询数据库信息
 * ?battVol=2&endTime=2222-01-01&pageCurr=1&pageSize=10&startTime=1982-01-01
 */
export const getDatas = (params) => {
  return axios({
    method: "GET",
    url: "fileParam/getDataByCondition",
    params
  })
}
/**
 * 删除基站下数据
 * ?fileId=2&stationId=2222
 */
export const deleteData = (params) => {
  return axios({
    method: "GET",
    url: "fileParam/deleteDataById",
    params
  })
}
/**
 * 生成报告 单文件分析
 * {dataList: [], fileParam: {},  resPic: '', volPic: '', stationInfo: {},"stdDevBr": "214.48%",
    stdDevBs: "66175.74%",
    stdDevBv: "586.35%",
    stdDevCr: "0.0%"}
 */
export const testReport = (data) => {
  return axios({
    method: "POST",
    url: "excelExport/resTestReport",
    responseType: 'blob',
    data
  })
}
/**
 * 生成报告 对比分析
 * ?fileId=1&fileId2=1
 * {resPic=1&volPic=1} data
 */
export const testCompareReport = (params, data) => {
  return axios({
    method: "POST",
    url: "excelExport/resTestCompareReport",
    responseType: 'blob',
    params,
    data
  })
}
/**
 * 分级评价-系数及阈值查询
 */
export const getParams = () => {
  return axios({
    method: "GET",
    url: "testParam/factorsAndThreshold"
  })
}
 
/**
 * 分级评价-系数及阈值 更新
 * {
  "chainRes": 0,
  "enabled": 0,
  "id": 0,
  "resBadCoeK4": 0,
  "resGoodCoeK3": 0,
  "volHighCoeK2": 0,
  "volLowCoeK1": 0
}
 */
export const setParams = (data) => {
  return axios({
    method: "PUT",
    url: "testParam/factorsAndThreshold",
    data
  })
}
 
/**
 * 弃用
 * 通过修改属性窗口值来修改文件值(传参对象)
 */
// export const updateFileParam = (filePath, data) => {
//   return axios({
//     method: "POST",
//     url: "fileInfo/updateXmlByFileParam",
//     params: { filePath },
//     data
//   })
// }
 
/**
 * 根据文件id改数据库
 * 
 * 通过修改属性窗口值来修改文件值(传参对象)
 */
export const updateFileParam = (fileId, data) => {
  return axios({
    method: "POST",
    url: "fileInfo/updateFileParamByFileId",
    params: { fileId },
    data
  })
}