From 774f55b22269b1e1642682bf916f9d5edd36d954 Mon Sep 17 00:00:00 2001 From: qz_cx Date: Sat, 11 Oct 2025 09:53:58 +0800 Subject: [PATCH 1/2] new version completed --- templates/front-project/src/App.vue | 9 +- .../front-project/src/components/AllMenu.vue | 1 - .../src/components/KytuningHome.vue | 76 +++--- .../src/components/TableHeader.vue | 256 ++++++++++++++++-- templates/front-project/src/router/index.js | 29 +- .../src/views/dataViews/StoreTable.vue | 254 ++++++++--------- .../src/views/errorViews/ErrorList.vue | 140 +++++----- .../src/views/testViews/ConfigList.vue | 72 ++--- .../src/views/testViews/DoTest.vue | 174 ++++++------ .../src/views/testViews/TestList.vue | 94 +++---- 10 files changed, 633 insertions(+), 472 deletions(-) diff --git a/templates/front-project/src/App.vue b/templates/front-project/src/App.vue index 5075192..cc8f815 100644 --- a/templates/front-project/src/App.vue +++ b/templates/front-project/src/App.vue @@ -6,9 +6,7 @@ * Date: Thu Mar 7 14:23:35 2024 +0800 --> diff --git a/templates/front-project/src/components/AllMenu.vue b/templates/front-project/src/components/AllMenu.vue index 7870b41..e3150d7 100644 --- a/templates/front-project/src/components/AllMenu.vue +++ b/templates/front-project/src/components/AllMenu.vue @@ -44,7 +44,6 @@ const handleClick = (path) => {router.push(path)} - diff --git a/templates/front-project/src/components/TableHeader.vue b/templates/front-project/src/components/TableHeader.vue index a71b30c..709146f 100644 --- a/templates/front-project/src/components/TableHeader.vue +++ b/templates/front-project/src/components/TableHeader.vue @@ -8,48 +8,256 @@ + + \ No newline at end of file + + \ No newline at end of file diff --git a/templates/front-project/src/router/index.js b/templates/front-project/src/router/index.js index e7da05b..7e9190a 100644 --- a/templates/front-project/src/router/index.js +++ b/templates/front-project/src/router/index.js @@ -10,21 +10,23 @@ import {createRouter, createWebHistory} from 'vue-router' const routes = [ { - name: 'Login', path: '/', + name: 'Login', hidden: true, component: () => import('@/components/kytuningLogin'), }, { - name: '设备管理', path: '/test1', - component: () => import('@/views/testViews/TestList'), - children: [] + name: '设备管理', + iconClass: 'fa fa-users', + redirect: '/home/student', + component: () => import('@/components/KytuningHome'), }, { + path: '/test/list', name: '测试管理', - path: '/test', - redirect: '/test/list', + iconClass: 'fa fa-users', + component: () => import('@/components/KytuningHome'), children: [ { path: '/test/list', @@ -46,12 +48,14 @@ const routes = [ ] }, { - name: '数据管理', path: '/storeData', - // component: () => import('@/views/dataViews/ProjectTable'), + name: '数据管理', + iconClass: 'fa fa-users', + redirect: '/home/student', + component: () => import('@/components/KytuningHome'), children: [ { - path: '/data/tempData', + path: '/tempData', name: '临时数据', component: () => import('@/views/dataViews/TempTable') }, @@ -63,9 +67,10 @@ const routes = [ ] }, { + path: '/error/list', name: '错误管理', - path: '/error', - redirect: '/error/list', + iconClass: 'fa fa-users', + component: () => import('@/components/KytuningHome'), children: [ { path: '/error/list', @@ -127,7 +132,7 @@ const routes = [ path: '/cpu2017/:baseId/:comparsionIds?', hidden: true, component: () => import('@/views/dataViews/Cpu2017Table'), - }, + } ] export default createRouter({ history: createWebHistory(), diff --git a/templates/front-project/src/views/dataViews/StoreTable.vue b/templates/front-project/src/views/dataViews/StoreTable.vue index 3c56cb2..fd295a6 100644 --- a/templates/front-project/src/views/dataViews/StoreTable.vue +++ b/templates/front-project/src/views/dataViews/StoreTable.vue @@ -7,136 +7,128 @@ -->