mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-26 14:23:48 +00:00
1、前端日志、公告、岗位、角色、用户导出、用户导入、下载导入模版功能调试通过
This commit is contained in:
@@ -30,9 +30,5 @@ export function exportLog(query) {
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob',
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// 'Accept': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||
// }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -53,5 +53,6 @@ export function exportNotice(body) {
|
||||
url: "/api/v1/system/notice/export",
|
||||
method: "post",
|
||||
data: body,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -53,5 +53,6 @@ export function exportPosition(body) {
|
||||
url: "/api/v1/system/position/export",
|
||||
method: "post",
|
||||
data: body,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -61,5 +61,6 @@ export function exportRole(body) {
|
||||
url: "/api/v1/system/role/export",
|
||||
method: "post",
|
||||
data: body,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ export function batchAvailableUser(body) {
|
||||
export function exportUser(query) {
|
||||
return request({
|
||||
url: '/api/v1/system/user/export',
|
||||
method: 'get',
|
||||
method: 'post',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
@@ -108,7 +108,7 @@ export function exportUser(query) {
|
||||
export function downloadTemplate() {
|
||||
return request({
|
||||
url: '/api/v1/system/user/import/template',
|
||||
method: 'get',
|
||||
method: 'post',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user