From 4b738d49078fbc4fcbfaa282ee5ffc8cb72ab6d0 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sun, 5 May 2024 21:56:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=89=B9=E6=AC=A1=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 5 +- src/locales/langs/zh-cn.ts | 5 +- src/service/api/job-batch.ts | 7 +++ src/typings/app.d.ts | 3 + src/views/job/batch/index.vue | 43 +++++++------ .../batch/modules/job-batch-detail-drawer.vue | 62 +++++++++++++++++++ 6 files changed, 104 insertions(+), 21 deletions(-) create mode 100644 src/views/job/batch/modules/job-batch-detail-drawer.vue diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 064acbb..8727e1e 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -951,6 +951,8 @@ const local: App.I18n.Schema = { title: 'Job Batch List', groupName: 'Group name', jobName: 'Job name', + executorInfo: 'Executor Name', + executorType: 'Executor type', executionAt: 'Start execution time', taskBatchStatus: 'Task Batch Status', operationReason: 'Reason for operation', @@ -958,7 +960,8 @@ const local: App.I18n.Schema = { groupName: 'Please enter group name', jobName: 'Please enter job name', taskBatchStatus: 'Please enter state' - } + }, + detail: 'Job Batch Detail' }, userManager: { title: 'UserCenter List', diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index 8eda425..f0fe1aa 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -946,6 +946,8 @@ const local: App.I18n.Schema = { title: '任务批次列表', groupName: '组名称', jobName: '任务名称', + executorInfo: '执行器名称', + executorType: '执行器类型', executionAt: '开始执行时间', taskBatchStatus: '状态', operationReason: '操作原因', @@ -953,7 +955,8 @@ const local: App.I18n.Schema = { groupName: '请输入组名称', jobName: '请输入任务名称', taskBatchStatus: '请输入状态' - } + }, + detail: '执行批次详情' }, userManager: { title: '用户列表', diff --git a/src/service/api/job-batch.ts b/src/service/api/job-batch.ts index 82f2f2b..847682f 100644 --- a/src/service/api/job-batch.ts +++ b/src/service/api/job-batch.ts @@ -8,3 +8,10 @@ export function fetchGetJobBatchList(params?: Api.JobBatch.JobBatchSearchParams) params }); } + +export function fetchGetJobBatchDetail(id: string) { + return request({ + url: `/job/batch/${id}`, + method: 'get' + }); +} diff --git a/src/typings/app.d.ts b/src/typings/app.d.ts index c8b58f6..04f3da8 100644 --- a/src/typings/app.d.ts +++ b/src/typings/app.d.ts @@ -1093,6 +1093,8 @@ declare namespace App { title: string; groupName: string; jobName: string; + executorInfo: string; + executorType: string; executionAt: string; taskBatchStatus: string; operationReason: string; @@ -1101,6 +1103,7 @@ declare namespace App { jobName: string; taskBatchStatus: string; }; + detail: string; }; userManager: { title: string; diff --git a/src/views/job/batch/index.vue b/src/views/job/batch/index.vue index a735159..4570d7e 100644 --- a/src/views/job/batch/index.vue +++ b/src/views/job/batch/index.vue @@ -1,14 +1,23 @@ + + + +