🔨 批量上传.

This commit is contained in:
lijiahang
2024-05-10 18:58:48 +08:00
parent 564e40a31d
commit 0a43e5db45
18 changed files with 557 additions and 135 deletions

View File

@@ -1,5 +1,4 @@
import type { DataGrid, Pagination } from '@/types/global';
import type { HostQueryResponse } from '@/api/asset/host';
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import axios from 'axios';
import qs from 'query-string';
@@ -29,7 +28,6 @@ export interface UploadTaskFileCreateRequest {
export interface UploadTaskCreateResponse {
id: number;
token: string;
hosts: Array<HostQueryResponse>;
}
/**
@@ -58,13 +56,24 @@ export interface UploadTaskQueryResponse extends TableData {
startTime: number;
endTime: number;
createTime: number;
files: Array<UploadTaskFileQueryResponse>;
hosts: Array<UploadTaskHost>;
}
/**
* 上传任务文件查询响应
* 上传任务主机响应
*/
export interface UploadTaskFileQueryResponse {
export interface UploadTaskHost {
id: number;
code: string;
name: string;
address: string;
files: Array<UploadTaskFile>;
}
/**
* 上传任务文件响应
*/
export interface UploadTaskFile {
id: number;
taskId: number;
hostId: number;