From e1db9e893046f8f8e0fcc24d9b34d43db8f616f8 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Sun, 23 Feb 2025 12:47:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(1.4.0-beta1):=201.=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=87=8D=E8=AF=95=E4=BF=A1=E6=81=AF=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=202.=20=E4=BF=AE=E5=A4=8D=E6=89=A7=E8=A1=8C=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/business.ts | 3 +- src/locales/langs/zh-cn.ts | 2 +- src/typings/api.d.ts | 9 ++- src/views/retry/info/index.vue | 18 ++--- .../info/modules/retry-operate-drawer.vue | 66 +++++++++---------- src/views/retry/task/index.vue | 6 +- 6 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/constants/business.ts b/src/constants/business.ts index d811474..28aa7a5 100644 --- a/src/constants/business.ts +++ b/src/constants/business.ts @@ -284,7 +284,8 @@ export const retryOperationReasonRecord: Record; /** retryLog search params */ diff --git a/src/views/retry/info/index.vue b/src/views/retry/info/index.vue index 1318da8..2f290ad 100644 --- a/src/views/retry/info/index.vue +++ b/src/views/retry/info/index.vue @@ -187,14 +187,11 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP show: row.retryStatus !== 1 && row.retryStatus !== 2, render: () => (
- handleExecute(row.groupName!, row.id! as any)} - v-if="row.retryStatus !== 1 && row.retryStatus !== 2" - > + handleExecute(row.groupName!, row.id! as any)}> {{ default: () => $t('common.confirmExecute'), trigger: () => ( - + {$t('common.execute')} ) @@ -219,7 +216,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP {{ default: () => $t('common.confirmPause'), trigger: () => ( - + {$t('common.pause')} ) @@ -231,7 +228,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP { type: 'divider', key: 'd2', - show: row.retryStatus === 0 + show: row.retryStatus === 3 }, { label: $t('common.pause'), @@ -244,7 +241,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP {{ default: () => $t('common.confirmResume'), trigger: () => ( - + {$t('common.resume')} ) @@ -256,7 +253,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP { type: 'divider', key: 'd2', - show: row.retryStatus === 0 + show: row.retryStatus !== 1 && row.retryStatus !== 2 }, { label: $t('common.finish'), @@ -268,7 +265,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP {{ default: () => $t('common.confirmFinish'), trigger: () => ( - + {$t('common.finish')} ) @@ -277,7 +274,6 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
) }, - { type: 'divider', key: 'd2' diff --git a/src/views/retry/info/modules/retry-operate-drawer.vue b/src/views/retry/info/modules/retry-operate-drawer.vue index 888ecd6..c1ed8cc 100644 --- a/src/views/retry/info/modules/retry-operate-drawer.vue +++ b/src/views/retry/info/modules/retry-operate-drawer.vue @@ -148,7 +148,7 @@ async function setIdempotentId() { const groupName = model.groupName; const sceneName = model.sceneName; const executorName = model.executorName; - const argsStr = model.argsStr; + const argsStr = JSON.stringify(argsList.value); const { data: idempotentId, error } = await fetchIdempotentIdGenerate({ groupName, sceneName, @@ -174,6 +174,35 @@ async function setIdempotentId() { :disabled="props.operateType === 'edit'" /> + + + + + + + + + + + - {{ $t('page.retryTask.generateIdempotentId') }} + {{ $t('page.retry.generateIdempotentId') }} - - - - - - - - - - - - + diff --git a/src/views/retry/task/index.vue b/src/views/retry/task/index.vue index b9f1711..8b01aae 100644 --- a/src/views/retry/task/index.vue +++ b/src/views/retry/task/index.vue @@ -12,7 +12,7 @@ import { import { $t } from '@/locales'; import { useAppStore } from '@/store/modules/app'; import { useTable, useTableOperate } from '@/hooks/common/table'; -import { operationReasonRecord, retryTaskStatusTypeRecord, retryTaskTypeRecord } from '@/constants/business'; +import { retryOperationReasonRecord, retryTaskStatusTypeRecord, retryTaskTypeRecord } from '@/constants/business'; import { monthRangeISO8601, tagColor } from '@/utils/common'; import SvgIcon from '@/components/custom/svg-icon.vue'; import RetryLogSearch from './modules/retry-task-search.vue'; @@ -142,12 +142,12 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP key: 'operationReason', title: $t('page.retryTask.operationReason'), align: 'center', - width: 120, + width: 240, render: row => { if (row.operationReason === null) { return null; } - const label = $t(operationReasonRecord[row.operationReason!]); + const label = $t(retryOperationReasonRecord[row.operationReason!]); return {label}; }