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.
 
 
 
 

39 lines
770 B

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