From fa4dcdc8c7e94e7cf42a453e7ea0e6d4bebf7f53 Mon Sep 17 00:00:00 2001 From: qz_cx Date: Fri, 26 Sep 2025 09:08:01 +0800 Subject: [PATCH] Launch test page development completed --- templates/front-project/src/api/api.js | 20 +- templates/front-project/src/router/index.js | 9 +- .../front-project/src/views/ProjectTable.vue | 5 +- .../src/views/testViews/DoTest.vue | 273 ++++++++++++++++++ .../src/views/testViews/TestList.vue | 2 +- 5 files changed, 301 insertions(+), 8 deletions(-) create mode 100644 templates/front-project/src/views/testViews/DoTest.vue diff --git a/templates/front-project/src/api/api.js b/templates/front-project/src/api/api.js index bfdc417..00eb275 100644 --- a/templates/front-project/src/api/api.js +++ b/templates/front-project/src/api/api.js @@ -18,7 +18,6 @@ export function login(data) { } - // 测试管理列表 export function test_case(type,data) { return service({ @@ -27,6 +26,7 @@ export function test_case(type,data) { data }) } + //测试日志导出 export function down_message(params) { return service({ @@ -37,6 +37,24 @@ export function down_message(params) { }) } +//发起测试 +export function do_test_case(data) { + return service({ + method: 'post', + url: '/do_test_case/', + data + }) +} + +//发起测试 +export function save_config(data) { + return service({ + method: 'post', + url: '/save_config/', + data + }) +} + // 获取指定的project组 export function get_project(params) { return service({ diff --git a/templates/front-project/src/router/index.js b/templates/front-project/src/router/index.js index cf22122..857adf4 100644 --- a/templates/front-project/src/router/index.js +++ b/templates/front-project/src/router/index.js @@ -37,10 +37,15 @@ const routes = [ name: '测试列表', component: () => import('@/views/testViews/TestList') }, + { + path: '/test/do_test/', + name: '发起测试', + component: () => import('@/views/testViews/DoTest') + }, { path: '/test/config', - name: '测试配置', - component: () => import('@/views/testViews/TestConfig') + name: '配置管理', + component: () => import('@/views/testViews/DoTest') }, ] }, diff --git a/templates/front-project/src/views/ProjectTable.vue b/templates/front-project/src/views/ProjectTable.vue index 53cc43a..69c83d4 100644 --- a/templates/front-project/src/views/ProjectTable.vue +++ b/templates/front-project/src/views/ProjectTable.vue @@ -160,10 +160,7 @@ diff --git a/templates/front-project/src/views/testViews/DoTest.vue b/templates/front-project/src/views/testViews/DoTest.vue new file mode 100644 index 0000000..b783200 --- /dev/null +++ b/templates/front-project/src/views/testViews/DoTest.vue @@ -0,0 +1,273 @@ + + + + + \ No newline at end of file diff --git a/templates/front-project/src/views/testViews/TestList.vue b/templates/front-project/src/views/testViews/TestList.vue index e664331..4581d2c 100644 --- a/templates/front-project/src/views/testViews/TestList.vue +++ b/templates/front-project/src/views/testViews/TestList.vue @@ -120,7 +120,7 @@ import Menu from "@/components/common/AllMenu"; import {test_case, down_message} from "@/api/api"; export default { - name: 'kytuningHome', + name: 'testList', components: { AllHeader, Menu -- Gitee