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
import request from '@/utils/request'
import Qs from 'qs'
// 查询异常日志列表
export function list(query) {
return request({
url: '/monitor/errorLog/queryErrorLogListByPagination',
method: 'get',
params: query
})
}
// 删除异常日志
export function delErrLog(data) {
// data = Qs.stringify(data)
return request({
url: '/monitor/errorLog/delete',
method: 'post',
data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
// 清空异常日志
export function cleanErrLog() {
return request({
url: '/monitor/errorLog/clean',
method: 'delete'
})
}
// 导出异常日志
export function exportErrLog(query) {
return request({
url: '/monitor/errorLog/export',
method: 'get',
params: query,
responseType: 'blob'
})
}