From 17d8fa4083f0d32673346d4d7aff3efb0ca0920b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A9=E8=8B=A5=E7=83=88=E9=85=92=E6=85=95=E8=8C=B6?= =?UTF-8?q?=E5=87=89=E4=B8=B7?= Date: Thu, 24 Apr 2025 17:10:12 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9AUI=E6=B5=8B=E8=AF=95-=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=8A=A5=E5=91=8A=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-ui/src/router/index.js | 22 +- .../src/views/test/uiTest/automationTest.vue | 6 +- .../src/views/test/uiTest/elementLibrary.vue | 8 +- test-ui/src/views/test/uiTest/testReport.vue | 88 ++++- .../views/test/uiTest/testReportDetail.vue | 341 ++++++++++++++++++ 5 files changed, 449 insertions(+), 16 deletions(-) create mode 100644 test-ui/src/views/test/uiTest/testReportDetail.vue diff --git a/test-ui/src/router/index.js b/test-ui/src/router/index.js index 71fa838..4b7a6bf 100644 --- a/test-ui/src/router/index.js +++ b/test-ui/src/router/index.js @@ -152,7 +152,7 @@ export const constantRoutes = [ { path: '', component: () => import('@/views/test/performance/performanceAdd'), - name: 'performanceAdd', + name: 'PerformanceAdd', noCache: true, meta: { title: '新增测试', activeMenu: '/performance' } } @@ -166,7 +166,7 @@ export const constantRoutes = [ { path: '', component: () => import('@/views/test/performance/performanceEdit'), - name: 'performanceAdd', + name: 'PerformanceEdit', noCache: true, meta: { title: '修改测试', activeMenu: '/performance' } } @@ -180,9 +180,23 @@ export const constantRoutes = [ { path: '', component: () => import('@/views/test/performance/reportDetail'), - name: 'performanceAdd', + name: 'ReportDetail', noCache: true, - meta: { title: '修改测试', activeMenu: '/performance' } + meta: { title: '报告详情', activeMenu: '/performance' } + } + ] + }, + { + path: '/ui-test/report/detail', + component: Layout, + hidden: true, + children: [ + { + path: '', + component: () => import('@/views/test/uiTest/testReportDetail'), + name: 'TestReportDetail', + noCache: true, + meta: { title: '测试报告', activeMenu: '/ui-test' } } ] }, diff --git a/test-ui/src/views/test/uiTest/automationTest.vue b/test-ui/src/views/test/uiTest/automationTest.vue index d75abd7..23a31cf 100644 --- a/test-ui/src/views/test/uiTest/automationTest.vue +++ b/test-ui/src/views/test/uiTest/automationTest.vue @@ -40,10 +40,8 @@ -
- -
+ diff --git a/test-ui/src/views/test/uiTest/elementLibrary.vue b/test-ui/src/views/test/uiTest/elementLibrary.vue index c3aefc8..f0d083d 100644 --- a/test-ui/src/views/test/uiTest/elementLibrary.vue +++ b/test-ui/src/views/test/uiTest/elementLibrary.vue @@ -26,10 +26,8 @@ -
- -
+ @@ -130,12 +128,12 @@ export default { }, // 查看 handleClickDetail() { }, - handleSizeChange() { }, // 确定 handleWithAdd() { console.log(this.editForm) }, handleCurrentChange() { }, + handleSizeChange() { }, }, } diff --git a/test-ui/src/views/test/uiTest/testReport.vue b/test-ui/src/views/test/uiTest/testReport.vue index 1446b2c..910cff6 100644 --- a/test-ui/src/views/test/uiTest/testReport.vue +++ b/test-ui/src/views/test/uiTest/testReport.vue @@ -1,5 +1,35 @@ + + + +