From 5b6cd8a47ca846204bda750d25cf90268a7c67d7 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Thu, 30 May 2024 22:52:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(sj=5F1.0.0=5Fbeta3):=20=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=AF=BC=E5=87=BA=E6=89=A7=E8=A1=8C=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/typings/api.d.ts | 5 +++++ src/views/job/task/index.vue | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 80b4e6e..3106f27 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -987,6 +987,11 @@ declare namespace Api { /** JobTask list */ type JobList = Common.PaginatingQueryRecord; + type ExportJob = Common.CommonRecord<{ + jobIds: string[]; + }> & + JobSearchParams; + /** 2、固定时间 3、CRON表达式 99、工作流 */ type TriggerType = 2 | 3 | 99; diff --git a/src/views/job/task/index.vue b/src/views/job/task/index.vue index 586b237..e802b1a 100644 --- a/src/views/job/task/index.vue +++ b/src/views/job/task/index.vue @@ -253,8 +253,17 @@ function goToBatch(jobId: string) { routerPushByKey('job_batch', { query: { jobId } }); } +function body(): Api.Job.ExportJob { + return { + jobIds: checkedRowKeys.value, + groupName: searchParams.groupName, + jobName: searchParams.jobName, + jobStatus: searchParams.jobStatus + }; +} + function handleExport() { - downloadFetch('/job/export', checkedRowKeys.value, $t('page.jobTask.title')); + downloadFetch('/job/export', body(), $t('page.jobTask.title')); }