feat: 新增网元日志文件页面功能

This commit is contained in:
TsMask
2023-12-13 21:21:42 +08:00
parent 38e5e4a9e0
commit bc1f897660
4 changed files with 405 additions and 2 deletions

29
src/api/tool/neFile.ts Normal file
View File

@@ -0,0 +1,29 @@
import { request } from '@/plugins/http-fetch';
/**
* 查询文件列表列表
* @param query 查询参数
* @returns object
*/
export function listNeFiles(query: Record<string, any>) {
return request({
url: '/ne/action/files',
method: 'get',
params: query,
});
}
/**
* 获取文件
* @param query 查询参数
* @returns object
*/
export function getNeFile(query: Record<string, any>) {
return request({
url: '/ne/action/pullFile',
method: 'get',
params: query,
responseType: 'blob',
timeout: 180_000,
});
}