feat(1.4.0-beta1): 1. 重试任务详情添加重试信息
This commit is contained in:
parent
64b8ff0307
commit
5d1fcd104e
2
src/typings/api.d.ts
vendored
2
src/typings/api.d.ts
vendored
@ -1253,6 +1253,8 @@ declare namespace Api {
|
|||||||
clientInfo: string;
|
clientInfo: string;
|
||||||
/** 失败原因 */
|
/** 失败原因 */
|
||||||
operationReason: Common.RetryOperationReason;
|
operationReason: Common.RetryOperationReason;
|
||||||
|
/** 重试信息 */
|
||||||
|
responseVO: Api.Retry.Retry;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
/** retryLog search params */
|
/** retryLog search params */
|
||||||
|
@ -25,6 +25,8 @@ interface Props {
|
|||||||
rowData?: Api.RetryScene.Scene | null;
|
rowData?: Api.RetryScene.Scene | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ignoreRecovery = ref<Api.Common.BlockStrategy[]>([4]);
|
||||||
|
|
||||||
const delayLevelDesc = ref<string>('10s');
|
const delayLevelDesc = ref<string>('10s');
|
||||||
const callbackDelayLevelDesc = ref<string>('10s');
|
const callbackDelayLevelDesc = ref<string>('10s');
|
||||||
|
|
||||||
@ -329,7 +331,7 @@ watch(
|
|||||||
</NGi>
|
</NGi>
|
||||||
<NGi>
|
<NGi>
|
||||||
<NFormItem :label="$t('page.retryScene.blockStrategy')" path="blockStrategy">
|
<NFormItem :label="$t('page.retryScene.blockStrategy')" path="blockStrategy">
|
||||||
<BlockStrategy v-model:value="model.blockStrategy" />
|
<BlockStrategy v-model:value="model.blockStrategy" :ignore="ignoreRecovery" />
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
</NGi>
|
</NGi>
|
||||||
</NGrid>
|
</NGrid>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
import { tagColor } from '@/utils/common';
|
import { tagColor } from '@/utils/common';
|
||||||
import { retryTaskStatusTypeRecord, retryTaskTypeRecord } from '@/constants/business';
|
import { retryStatusTypeRecord, retryTaskStatusTypeRecord, retryTaskTypeRecord } from '@/constants/business';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'SceneDetailDrawer'
|
name: 'SceneDetailDrawer'
|
||||||
@ -38,6 +38,26 @@ const visible = defineModel<boolean>('visible', {
|
|||||||
<NDescriptionsItem :label="$t('page.retryTask.taskType')" :span="1">
|
<NDescriptionsItem :label="$t('page.retryTask.taskType')" :span="1">
|
||||||
<NTag :type="tagColor(rowData?.taskType!)">{{ $t(retryTaskTypeRecord[rowData?.taskType!]) }}</NTag>
|
<NTag :type="tagColor(rowData?.taskType!)">{{ $t(retryTaskTypeRecord[rowData?.taskType!]) }}</NTag>
|
||||||
</NDescriptionsItem>
|
</NDescriptionsItem>
|
||||||
|
<NDescriptionsItem :label="$t('page.retry.retryCount')" :span="1">
|
||||||
|
{{ rowData?.responseVO?.retryCount }}
|
||||||
|
</NDescriptionsItem>
|
||||||
|
<NDescriptionsItem :label="$t('page.retry.retryStatus')" :span="1">
|
||||||
|
<NTag :type="tagColor(rowData?.responseVO?.retryStatus!)">
|
||||||
|
{{ $t(retryStatusTypeRecord[rowData?.responseVO?.retryStatus!]) }}
|
||||||
|
</NTag>
|
||||||
|
</NDescriptionsItem>
|
||||||
|
<NDescriptionsItem :label="$t('page.retry.bizNo')" :span="2">
|
||||||
|
{{ rowData?.responseVO?.bizNo }}
|
||||||
|
</NDescriptionsItem>
|
||||||
|
<NDescriptionsItem :label="$t('page.retry.idempotentId')" :span="2">
|
||||||
|
{{ rowData?.responseVO?.idempotentId }}
|
||||||
|
</NDescriptionsItem>
|
||||||
|
<NDescriptionsItem :label="$t('page.retry.executorName')" :span="2">
|
||||||
|
{{ rowData?.responseVO?.executorName }}
|
||||||
|
</NDescriptionsItem>
|
||||||
|
<NDescriptionsItem :label="$t('page.retry.argsStr')" :span="2">
|
||||||
|
{{ rowData?.responseVO?.argsStr }}
|
||||||
|
</NDescriptionsItem>
|
||||||
<NDescriptionsItem :label="$t('common.createDt')">{{ rowData?.createDt }}</NDescriptionsItem>
|
<NDescriptionsItem :label="$t('common.createDt')">{{ rowData?.createDt }}</NDescriptionsItem>
|
||||||
</NDescriptions>
|
</NDescriptions>
|
||||||
</NTabPane>
|
</NTabPane>
|
||||||
|
Loading…
Reference in New Issue
Block a user