From c12be119a34d32352b3e14a46cc3796513b1f319 Mon Sep 17 00:00:00 2001 From: pfl <14579250+shadowman1@user.noreply.gitee.com> Date: Fri, 27 Jun 2025 18:25:56 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E7=BC=96?= =?UTF-8?q?=E8=BE=91API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/controller/TestReportController.java | 10 ++++ test-ui/src/api/test/testPlan.js | 9 +++ .../test/testplan/caseReport/caseReport.vue | 8 ++- .../testplan/caseReport/platformReport.vue | 56 ++++++++++++++++--- 4 files changed, 73 insertions(+), 10 deletions(-) diff --git a/test-test/src/main/java/com/test/test/controller/TestReportController.java b/test-test/src/main/java/com/test/test/controller/TestReportController.java index fbfae98..e05599e 100644 --- a/test-test/src/main/java/com/test/test/controller/TestReportController.java +++ b/test-test/src/main/java/com/test/test/controller/TestReportController.java @@ -76,4 +76,14 @@ public class TestReportController extends BaseController { return toAjax(testReportService.updateExecuteCaseReport(testReport)); } + /** + * 修改测试计划关联测试报告 + * @param testReport + */ + @Log(title = "测试报告", businessType = BusinessType.UPDATE) + @PostMapping("/updateExecuteCaseReport") + public AjaxResult updateExecuteCaseReport(@RequestBody TestReport testReport) { + return toAjax(testReportService.updateExecuteCaseReport(testReport)); + } + } diff --git a/test-ui/src/api/test/testPlan.js b/test-ui/src/api/test/testPlan.js index 604c01c..c885184 100644 --- a/test-ui/src/api/test/testPlan.js +++ b/test-ui/src/api/test/testPlan.js @@ -10,6 +10,7 @@ const api = { addTestReport: 'test/testReport/addTestReport', getTestReportList: 'test/testReport/reportList', delExecuteCaseReport: 'test/testReport/delExecuteCaseReport', + updateExecuteCaseReport: 'test/testReport/updateExecuteCaseReport', getPlanOverview:'test/testPlan/planOverview', getPlanCaseTrendData: 'test/testPlan/planCaseTrendData', } @@ -86,6 +87,14 @@ export function delExecuteCaseReport(id) { }) } +export function updateExecuteCaseReport(data) { + return request({ + url: api.updateExecuteCaseReport, + method: 'post', + data: data + }) +} + export function getPlanOverview(id) { return request({ url: api.getPlanOverview, diff --git a/test-ui/src/views/test/testplan/caseReport/caseReport.vue b/test-ui/src/views/test/testplan/caseReport/caseReport.vue index 5246870..2f50e77 100644 --- a/test-ui/src/views/test/testplan/caseReport/caseReport.vue +++ b/test-ui/src/views/test/testplan/caseReport/caseReport.vue @@ -106,8 +106,14 @@ export default { } } }, + activated() { + this.$nextTick(() => { + console.log('getlist') + this.getList() + }) + }, mounted() { - this.getList() + }, methods: { handleRowClick(row){ diff --git a/test-ui/src/views/test/testplan/caseReport/platformReport.vue b/test-ui/src/views/test/testplan/caseReport/platformReport.vue index c235957..467f28e 100644 --- a/test-ui/src/views/test/testplan/caseReport/platformReport.vue +++ b/test-ui/src/views/test/testplan/caseReport/platformReport.vue @@ -3,7 +3,7 @@ -
+
测试结果 配置模块 保存报告 + 取消编辑 +
+
+ 下载报告 + 编辑报告
-
- {{ reportTitle }} +
+ +
+ 关联项目:中移商业保理平台 + 测试阶段:{{ reportType }} +
-
- 关联项目:中移商业保理平台 - 测试阶段:{{ reportType }} +
+ {{ reportTitle }} +
+ 关联项目:中移商业保理平台 + 测试阶段:{{ reportType }} +
@@ -73,6 +85,7 @@