diff --git a/src/service/api/group.ts b/src/service/api/group.ts index e152b3c..8b9a587 100644 --- a/src/service/api/group.ts +++ b/src/service/api/group.ts @@ -60,7 +60,7 @@ export function fetchGetAllGroupConfigList(data: string[]) { }); } -/** delete Group by id */ +/** delete group by id */ export function fetchDeleteGroup(id: string) { return request({ url: `/group/${id}`, diff --git a/src/service/api/job-batch.ts b/src/service/api/job-batch.ts index 8e3ce9f..36ea90f 100644 --- a/src/service/api/job-batch.ts +++ b/src/service/api/job-batch.ts @@ -31,3 +31,20 @@ export function fetchJobBatchRetry(jobId: string) { method: 'post' }); } + +/** delete job */ +export function fetchDeleteJobBatch(id: string) { + return request({ + url: `/job/batch/${id}`, + method: 'delete' + }); +} + +/** delete job */ +export function fetchBatchDeleteJobBatch(data: string[]) { + return request({ + url: '/job/batch/ids', + method: 'delete', + data + }); +} diff --git a/src/service/api/job.ts b/src/service/api/job.ts index 96a557a..d79a793 100644 --- a/src/service/api/job.ts +++ b/src/service/api/job.ts @@ -79,6 +79,15 @@ export function fetchDeleteJob(id: string) { }); } +/** batch delete Job by id */ +export function fetchBatchDeleteJob(data: string[]) { + return request({ + url: '/job/ids', + method: 'delete', + data + }); +} + /** trigger Job by id */ export function fetchTriggerJob(jobId: string) { return request({ diff --git a/src/service/api/workflow.ts b/src/service/api/workflow.ts index eb575e6..5d86a24 100644 --- a/src/service/api/workflow.ts +++ b/src/service/api/workflow.ts @@ -50,6 +50,14 @@ export function fetchDelWorkflow(id: string) { }); } +export function fetchBatchDeleteWorkflow(data: string[]) { + return request({ + url: '/workflow/ids', + method: 'delete', + data + }); +} + export function fetchStopWorkflowBatch(id: string) { return request({ url: `/workflow/batch/stop/${id}`, @@ -118,3 +126,18 @@ export function fetchNodeStop(nodeId: string, taskBatchId: string) { method: 'post' }); } + +export function fetchDeleteWorkflowBatch(id: string) { + return request({ + url: `/workflow/batch/${id}`, + method: 'delete' + }); +} + +export function fetchBatchDeleteWorkflowBatch(data: string[]) { + return request({ + url: '/workflow/batch/ids', + method: 'delete', + data + }); +} diff --git a/src/views/group/index.vue b/src/views/group/index.vue index 1464c11..f8c5d45 100644 --- a/src/views/group/index.vue +++ b/src/views/group/index.vue @@ -31,11 +31,6 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP groupStatus: null }, columns: () => [ - { - type: 'selection', - align: 'center', - width: 48 - }, { key: 'id', title: $t('common.index'), @@ -207,10 +202,9 @@ function handleExport() {