From ab4113c975b950ac722ecab6e4e551eaf2bfb671 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Sat, 15 Jun 2024 16:17:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=89=A7=E8=A1=8C=E6=97=B6=E9=97=B4=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/config/testPlan.ts | 2 +- frontend/src/models/testPlan/testPlanReport.ts | 6 +++--- frontend/src/views/api-test/report/locale/en-US.ts | 1 + frontend/src/views/api-test/report/locale/zh-CN.ts | 1 + .../report/detail/component/planDetailHeaderRight.vue | 6 +++--- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/src/config/testPlan.ts b/frontend/src/config/testPlan.ts index 27db0ba8d2..d8370f5495 100644 --- a/frontend/src/config/testPlan.ts +++ b/frontend/src/config/testPlan.ts @@ -70,7 +70,7 @@ export const defaultReportDetail: PlanReportDetail = { id: '', name: '', startTime: 0, - executeTime: 0, // 报告执行开始时间 + createTime: 0, // 报告执行开始时间 endTime: 0, summary: '', passThreshold: 0, // 通过阈值 diff --git a/frontend/src/models/testPlan/testPlanReport.ts b/frontend/src/models/testPlan/testPlanReport.ts index 91e76b95a7..02fb5acbb6 100644 --- a/frontend/src/models/testPlan/testPlanReport.ts +++ b/frontend/src/models/testPlan/testPlanReport.ts @@ -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; // 通过率 diff --git a/frontend/src/views/api-test/report/locale/en-US.ts b/frontend/src/views/api-test/report/locale/en-US.ts index f67e45e484..67b57f9ac9 100644 --- a/frontend/src/views/api-test/report/locale/en-US.ts +++ b/frontend/src/views/api-test/report/locale/en-US.ts @@ -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', diff --git a/frontend/src/views/api-test/report/locale/zh-CN.ts b/frontend/src/views/api-test/report/locale/zh-CN.ts index e792b91688..c78eca7d68 100644 --- a/frontend/src/views/api-test/report/locale/zh-CN.ts +++ b/frontend/src/views/api-test/report/locale/zh-CN.ts @@ -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': '报告分析', diff --git a/frontend/src/views/test-plan/report/detail/component/planDetailHeaderRight.vue b/frontend/src/views/test-plan/report/detail/component/planDetailHeaderRight.vue index 2ad74379b4..ced7d822a0 100644 --- a/frontend/src/views/test-plan/report/detail/component/planDetailHeaderRight.vue +++ b/frontend/src/views/test-plan/report/detail/component/planDetailHeaderRight.vue @@ -3,15 +3,15 @@
{{ t('report.detail.api.executionTime') }} - {{ 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') : '-' }} {{ t('report.detail.api.executionTimeTo') }} {{ props.detail.endTime ? dayjs(props.detail.endTime).format('YYYY-MM-DD HH:mm:ss') : '-' }}