2024-04-29 23:12:14 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { watch } from 'vue';
|
|
|
|
import { $t } from '@/locales';
|
|
|
|
import { tagColor } from '@/utils/common';
|
|
|
|
import { retryTaskStatusTypeRecord, retryTaskTypeRecord } from '@/constants/business';
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
name: 'SceneDetailDrawer'
|
|
|
|
});
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
/** row data */
|
|
|
|
rowData?: Api.RetryTask.RetryTask | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
const visible = defineModel<boolean>('visible', {
|
|
|
|
default: false
|
|
|
|
});
|
|
|
|
const props = defineProps<Props>();
|
|
|
|
|
|
|
|
watch(
|
|
|
|
() => props.rowData,
|
|
|
|
() => {
|
|
|
|
console.log(props.rowData);
|
|
|
|
},
|
|
|
|
{ immediate: true }
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<OperateDrawer v-model="visible" :title="$t('page.retryTask.detail')">
|
2024-04-30 09:22:37 +08:00
|
|
|
<NDescriptions label-placement="top" bordered :column="2">
|
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.uniqueId')" :span="2">
|
2024-04-29 23:12:14 +08:00
|
|
|
{{ rowData?.uniqueId }}
|
|
|
|
</NDescriptionsItem>
|
2024-04-30 09:22:37 +08:00
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.groupName')" :span="2">{{ rowData?.groupName }}</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.sceneName')" :span="2">{{ rowData?.sceneName }}</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.nextTriggerAt')" :span="1">
|
|
|
|
{{ rowData?.nextTriggerAt }}
|
|
|
|
</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.retryCount')" :span="1">
|
|
|
|
{{ rowData?.retryCount }}
|
|
|
|
</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.retryStatus')" :span="1">
|
2024-04-29 23:12:14 +08:00
|
|
|
<NTag :type="tagColor(rowData?.retryStatus!)">
|
|
|
|
{{ $t(retryTaskStatusTypeRecord[rowData?.retryStatus!]) }}
|
|
|
|
</NTag>
|
|
|
|
</NDescriptionsItem>
|
2024-04-30 09:22:37 +08:00
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.taskType')" :span="1">
|
2024-04-29 23:12:14 +08:00
|
|
|
<NTag :type="tagColor(rowData?.taskType!)">{{ $t(retryTaskTypeRecord[rowData?.taskType!]) }}</NTag>
|
|
|
|
</NDescriptionsItem>
|
2024-04-30 09:22:37 +08:00
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.bizNo')" :span="2">{{ rowData?.bizNo }}</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.idempotentId')" :span="2">
|
2024-04-29 23:12:14 +08:00
|
|
|
{{ rowData?.idempotentId }}
|
|
|
|
</NDescriptionsItem>
|
2024-04-30 09:22:37 +08:00
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.executorName')" :span="2">
|
|
|
|
{{ rowData?.executorName }}
|
|
|
|
</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('page.retryTask.argsStr')" :span="2">{{ rowData?.argsStr }}</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('common.createDt')" :span="1">{{ rowData?.createDt }}</NDescriptionsItem>
|
|
|
|
<NDescriptionsItem :label="$t('common.updateDt')" :span="1">{{ rowData?.updateDt }}</NDescriptionsItem>
|
2024-04-29 23:12:14 +08:00
|
|
|
</NDescriptions>
|
|
|
|
</OperateDrawer>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped></style>
|