fix(测试计划): 报告执行时间展示问题
This commit is contained in:
parent
99567aa268
commit
ab4113c975
|
@ -70,7 +70,7 @@ export const defaultReportDetail: PlanReportDetail = {
|
|||
id: '',
|
||||
name: '',
|
||||
startTime: 0,
|
||||
executeTime: 0, // 报告执行开始时间
|
||||
createTime: 0, // 报告执行开始时间
|
||||
endTime: 0,
|
||||
summary: '',
|
||||
passThreshold: 0, // 通过阈值
|
||||
|
|
|
@ -8,9 +8,9 @@ export interface countDetail {
|
|||
export interface PlanReportDetail {
|
||||
id: string;
|
||||
name: string;
|
||||
startTime: number;
|
||||
executeTime: number; // 报告执行开始时间
|
||||
endTime: number;
|
||||
startTime: number; // 报告执行开始时间
|
||||
createTime: number; // 报告生成时间
|
||||
endTime: number; // 报告执行结束时间
|
||||
summary: string;
|
||||
passThreshold: number; // 通过阈值
|
||||
passRate: number; // 通过率
|
||||
|
|
|
@ -24,6 +24,7 @@ export default {
|
|||
'report.detail.api.errorTip': 'There are pre/post script running errors in the current use case execution.',
|
||||
'report.detail.api.resContent': 'Response content',
|
||||
'report.detail.api.executionTime': 'Execution time',
|
||||
'report.detail.api.createTime': 'Generation time',
|
||||
'report.detail.api.executionTimeTo': 'To',
|
||||
'report.detail.api.stepAnalysis': 'Step analysis',
|
||||
'report.detail.api.reportAnalysis': 'Report analysis',
|
||||
|
|
|
@ -23,6 +23,7 @@ export default {
|
|||
'report.detail.api.errorTip': '当前用例执行存在 前/后置脚本运行错误',
|
||||
'report.detail.api.resContent': '响应内容',
|
||||
'report.detail.api.executionTime': '执行时间',
|
||||
'report.detail.api.createTime': '报告生成时间',
|
||||
'report.detail.api.executionTimeTo': '至',
|
||||
'report.detail.api.stepAnalysis': '步骤分析',
|
||||
'report.detail.api.reportAnalysis': '报告分析',
|
||||
|
|
|
@ -3,15 +3,15 @@
|
|||
<a-popover position="bottom" content-class="response-popover-content">
|
||||
<div>
|
||||
<span class="text-[var(--color-text-4)]">{{ t('report.detail.api.executionTime') }}</span>
|
||||
{{ props.detail.executeTime ? dayjs(props.detail.executeTime).format('YYYY-MM-DD HH:mm:ss') : '-' }}
|
||||
{{ props.detail.startTime ? dayjs(props.detail.startTime).format('YYYY-MM-DD HH:mm:ss') : '-' }}
|
||||
<span class="text-[var(--color-text-4)]">{{ t('report.detail.api.executionTimeTo') }}</span>
|
||||
{{ props.detail.endTime ? dayjs(props.detail.endTime).format('YYYY-MM-DD HH:mm:ss') : '-' }}
|
||||
</div>
|
||||
<template #content>
|
||||
<div class="max-w-[400px] items-center gap-[8px] text-[14px]">
|
||||
<div class="flex-shrink-0 text-[var(--color-text-4)]">{{ t('report.detail.api.executionTime') }}</div>
|
||||
<div class="flex-shrink-0 text-[var(--color-text-4)]">{{ t('report.detail.api.createTime') }}</div>
|
||||
<div class="mt-2">
|
||||
{{ dayjs(props.detail.executeTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||
{{ dayjs(props.detail.createTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue