From cf17cf93b0d6034c226f015686cf6739587e5f0f Mon Sep 17 00:00:00 2001 From: lijiahang Date: Thu, 9 May 2024 15:43:35 +0800 Subject: [PATCH] =?UTF-8?q?:hammer:=20=E6=89=B9=E9=87=8F=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orion-ops-ui/src/api/exec/upload-task.ts | 17 +- .../components/batch-upload-files.vue | 162 ++++++++++++++++++ .../components/batch-upload-form.vue | 107 ++++++++++++ .../components/batch-upload-panel.vue | 83 +++++++++ .../components/batch-upload-step.vue | 30 ++++ .../src/views/exec/batch-upload/index.vue | 24 ++- .../views/exec/batch-upload/types/const.ts | 42 +++++ .../exec/batch-upload/types/form.rules.ts | 31 ++++ .../components/exec-command-panel.vue | 8 +- .../components/sftp/sftp-upload-modal.vue | 66 +++++-- 10 files changed, 539 insertions(+), 31 deletions(-) create mode 100644 orion-ops-ui/src/views/exec/batch-upload/components/batch-upload-files.vue create mode 100644 orion-ops-ui/src/views/exec/batch-upload/components/batch-upload-form.vue create mode 100644 orion-ops-ui/src/views/exec/batch-upload/components/batch-upload-panel.vue create mode 100644 orion-ops-ui/src/views/exec/batch-upload/components/batch-upload-step.vue create mode 100644 orion-ops-ui/src/views/exec/batch-upload/types/const.ts create mode 100644 orion-ops-ui/src/views/exec/batch-upload/types/form.rules.ts diff --git a/orion-ops-ui/src/api/exec/upload-task.ts b/orion-ops-ui/src/api/exec/upload-task.ts index 93c35628..7aa11e3c 100644 --- a/orion-ops-ui/src/api/exec/upload-task.ts +++ b/orion-ops-ui/src/api/exec/upload-task.ts @@ -7,14 +7,19 @@ import qs from 'query-string'; * 上传任务创建请求 */ export interface UploadTaskCreateRequest { - userId?: number; - username?: string; remotePath?: string; description?: string; - status?: string; - extraInfo?: string; - startTime?: string; - endTime?: string; + hostIdList?: Array; + files?: Array; +} + +/** + * 上传任务文件创建请求 + */ +export interface UploadTaskFileCreateRequest { + fileId?: string; + filePath?: string; + fileSize?: number; } /** diff --git a/orion-ops-ui/src/views/exec/batch-upload/components/batch-upload-files.vue b/orion-ops-ui/src/views/exec/batch-upload/components/batch-upload-files.vue new file mode 100644 index 00000000..2545ed23 --- /dev/null +++ b/orion-ops-ui/src/views/exec/batch-upload/components/batch-upload-files.vue @@ -0,0 +1,162 @@ +