From 1049a082c2b6e9cc9b515b9f347775bf472e9536 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Tue, 28 May 2024 00:30:34 +0800 Subject: [PATCH] =?UTF-8?q?wip(sj=5F1.0.0):=20=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=AF=BC=E5=85=A5=E3=80=81=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/job/task/index.vue | 23 ++++++++++++++++++++++- src/views/retry/scene/index.vue | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/views/job/task/index.vue b/src/views/job/task/index.vue index 04a3298..e49b4a2 100644 --- a/src/views/job/task/index.vue +++ b/src/views/job/task/index.vue @@ -10,9 +10,11 @@ import { blockStrategyRecord, taskTypeRecord, triggerTypeRecord } from '@/consta import StatusSwitch from '@/components/common/status-switch.vue'; import { useRouterPush } from '@/hooks/common/router'; import { useAuth } from '@/hooks/business/auth'; +import { downloadFetch } from '@/utils/download'; import JobTaskOperateDrawer from './modules/job-task-operate-drawer.vue'; import JobTaskSearch from './modules/job-task-search.vue'; import JobTaskDetailDrawer from './modules/job-task-detail-drawer.vue'; + const { hasAuth } = useAuth(); const appStore = useAppStore(); @@ -33,6 +35,11 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP jobStatus: null }, columns: () => [ + { + type: 'selection', + align: 'center', + width: 48 + }, { key: 'index', title: $t('common.index'), @@ -245,6 +252,10 @@ async function handleTriggerJob(id: string) { function goToBatch(jobId: string) { routerPushByKey('job_batch', { query: { jobId } }); } + +function handleExport() { + downloadFetch('/job/export', checkedRowKeys.value, $t('page.jobTask.title')); +}