diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml index e1beb8145a..efa9cdcd2b 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestMapper.xml @@ -5,6 +5,7 @@ + - select ltr.id, ltr.name, ltr.test_id as testId, ltr.description, + select ltr.id, ltr.name, ltr.test_id as testId, ltr.description, user.name as userName, ltr.create_time as createTime, ltr.update_time as updateTime, ltr.status as status, lt.name as testName - from load_test_report ltr join load_test lt on ltr.test_id = lt.id + from load_test_report ltr + join load_test lt on ltr.test_id = lt.id + join user on ltr.user_id = user.id JOIN project on project.id = lt.project_id diff --git a/backend/src/main/java/io/metersphere/dto/ReportDTO.java b/backend/src/main/java/io/metersphere/dto/ReportDTO.java index b5137550a4..6baf51fe59 100644 --- a/backend/src/main/java/io/metersphere/dto/ReportDTO.java +++ b/backend/src/main/java/io/metersphere/dto/ReportDTO.java @@ -18,4 +18,5 @@ public class ReportDTO { private String testName; private String projectId; private String projectName; + private String userName; } diff --git a/frontend/src/business/components/performance/report/PerformanceTestReport.vue b/frontend/src/business/components/performance/report/PerformanceTestReport.vue index 7d1aebed68..2785aa2fd0 100644 --- a/frontend/src/business/components/performance/report/PerformanceTestReport.vue +++ b/frontend/src/business/components/performance/report/PerformanceTestReport.vue @@ -20,6 +20,7 @@ + + diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 4a9f0ff21e..5ab5419ef9 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -195,6 +195,7 @@ export default { 'delete_confirm': 'Confirm delete: ', 'start_status': 'The test is starting, please check the report later!', 'run_status': 'The test is running, please check the report later!', + 'user_name': 'Creator' }, load_test: { 'operating': 'Operating', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index c9fab2f186..7a67822b64 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -193,6 +193,7 @@ export default { 'delete_confirm': '确认删除报告: ', 'start_status': '测试处于开始状态,请稍后查看报告!', 'run_status': '测试处于运行状态,请稍后查看报告!', + 'user_name': '创建人' }, load_test: { 'operating': '操作', diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index a4fbbff78e..4655ba6a63 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -194,6 +194,7 @@ export default { 'delete_confirm': '確認刪除報告: ', 'start_status': '測試處於開始狀態,請稍後查看報告!', 'run_status': '測試處於運行狀態,請稍後查看報告!', + 'user_name': '創建人' }, load_test: { 'operating': '操作',