You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.0 KiB

import api from '@/utils/api'
import qs from 'qs'
export function add(data) {
return api({
url: '/certificate',
method: 'post',
data
})
}
export function edit(data) {
return api({
url: '/certificate',
method: 'put',
data
})
}
export function del(params) {
return api({
url: '/certificate',
method: 'delete',
params,
paramsSerializer: function(params) {
return qs.stringify(params, { indices: false })
}
})
}
export function getList(params) {
return api({
url: '/certificate',
method: 'get',
params
})
}
export function exportExcel(params, exportOptions) {
return api({
url: '/certificate/exportExcel' + '?' + qs.stringify(params, { indices: false }),
method: 'get',
params: {
exportOptions: exportOptions
},
paramsSerializer: function(params) {
return qs.stringify(params, { indices: false })
},
responseType: 'blob'
})
}
export default { add, edit, del, getList }