From 09567751e39c09a88c2076315f46dd49afb0e540 Mon Sep 17 00:00:00 2001 From: qz_cx Date: Fri, 26 Sep 2025 10:53:37 +0800 Subject: [PATCH] Add personal configuration list page development --- templates/front-project/src/api/api.js | 8 +- templates/front-project/src/router/index.js | 2 +- .../src/views/testViews/ConfigList.vue | 188 ++++++++++++++++++ .../src/views/testViews/TestList.vue | 43 +--- 4 files changed, 195 insertions(+), 46 deletions(-) create mode 100644 templates/front-project/src/views/testViews/ConfigList.vue diff --git a/templates/front-project/src/api/api.js b/templates/front-project/src/api/api.js index 00eb275..3c4a9b4 100644 --- a/templates/front-project/src/api/api.js +++ b/templates/front-project/src/api/api.js @@ -46,11 +46,11 @@ export function do_test_case(data) { }) } -//发起测试 -export function save_config(data) { +//用户配置文件接口 +export function user_config(type, data) { return service({ - method: 'post', - url: '/save_config/', + method: type, + url: '/user_config/', data }) } diff --git a/templates/front-project/src/router/index.js b/templates/front-project/src/router/index.js index 857adf4..44cd536 100644 --- a/templates/front-project/src/router/index.js +++ b/templates/front-project/src/router/index.js @@ -45,7 +45,7 @@ const routes = [ { path: '/test/config', name: '配置管理', - component: () => import('@/views/testViews/DoTest') + component: () => import('@/views/testViews/ConfigList') }, ] }, diff --git a/templates/front-project/src/views/testViews/ConfigList.vue b/templates/front-project/src/views/testViews/ConfigList.vue new file mode 100644 index 0000000..8da29ac --- /dev/null +++ b/templates/front-project/src/views/testViews/ConfigList.vue @@ -0,0 +1,188 @@ + + + + + + + + + diff --git a/templates/front-project/src/views/testViews/TestList.vue b/templates/front-project/src/views/testViews/TestList.vue index 4581d2c..b5e10ae 100644 --- a/templates/front-project/src/views/testViews/TestList.vue +++ b/templates/front-project/src/views/testViews/TestList.vue @@ -23,65 +23,29 @@ :header-cell-style="{fontSize:'5px'}" class="tableHead" > - - + - - - - - - - - - - -