60 lines
946 B
JavaScript
60 lines
946 B
JavaScript
import request from '@/utils/request'
|
|
|
|
|
|
|
|
export function getEa(query) {
|
|
return request({
|
|
url: '/info/ea/',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function getMyEas(query) {
|
|
return request({
|
|
url: '/info/ea/activate_info/',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function getOneEa(id) {
|
|
return request({
|
|
url: `/info/ea/${id}/`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
|
|
export function updateEa(id, data) {
|
|
return request({
|
|
url: `/info/ea/${id}/`,
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function createEa(data) {
|
|
return request({
|
|
url: `/info/ea/`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
export function delEa(id) {
|
|
return request({
|
|
url: `/info/ea/${id}/`,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
|
|
export function exportData(data) {
|
|
return request({
|
|
url: `/info/ea/filter_by_date/`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
} |