You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
757 B
JavaScript
43 lines
757 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function reportList(params) {
|
|
return request({
|
|
url: '/report/pageList',
|
|
method: 'GET',
|
|
params,
|
|
})
|
|
}
|
|
|
|
export function reportAdd(data) {
|
|
return request({
|
|
url: '/report',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function reportDeleteBatch(data) {
|
|
return request({
|
|
url: '/report/delete/batch',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function reportUpdate(data) {
|
|
return request({
|
|
url: '/report',
|
|
method: 'put', data,
|
|
})
|
|
}
|
|
|
|
export function reportDetail(data) {
|
|
return request({
|
|
url: '/report/' + data.id,
|
|
method: 'get',
|
|
params: { accessKey: data.accessKey }
|
|
})
|
|
}
|
|
|
|
export default { reportList, reportAdd, reportDeleteBatch, reportUpdate, reportDetail }
|