diff --git a/atune/web/index.html b/atune/web/index.html index 338418c7bb49c56f66ed4a44eb97e1fe0edc67c0..9437bd9e7299d4de06c0003f5c42e6aee1fb52c6 100644 --- a/atune/web/index.html +++ b/atune/web/index.html @@ -1,14 +1,18 @@ - - - - - - 智能调优 - - -
- - - + + + + + + + 智能调优 + + + +
+
+ + + + \ No newline at end of file diff --git a/atune/web/src/App.vue b/atune/web/src/App.vue index 5bc96cbbd23ea48aea63cd90664352b5a1ee9ee0..63ccd49e67b52153e2b316feb9654082760a4117 100644 --- a/atune/web/src/App.vue +++ b/atune/web/src/App.vue @@ -9,7 +9,7 @@ diff --git a/atune/web/src/components/taskDetail.vue b/atune/web/src/components/taskDetail.vue new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/atune/web/src/router/index.ts b/atune/web/src/router/index.ts index 06d6afc25e22f2e2f725779c1b2066d8922c9ecf..20d23202b40a270f0a962636d6b4eaa21ba45852 100644 --- a/atune/web/src/router/index.ts +++ b/atune/web/src/router/index.ts @@ -5,19 +5,29 @@ import Result from '@/views/ResultInfo.vue'; const routes: Array = [ { - path: '/plugin/atune', + path: '/', + redirect: '/atune' + }, + { + path: '/atune', component: Home, - meta: { title: '首页' }, + meta: { title: '任务列表' }, + children: [ + { + path: 'detail', + component: () => import("../components/atuneTemplete.vue") + } + ] }, { - path: '/plugin/atune/result', + path: '/result', component: Result, meta: { title: '结果展示' }, }, ]; const router = createRouter({ - history: createWebHistory('/'), + history: createWebHistory(), routes, }); diff --git a/atune/web/src/types/atune.d.ts b/atune/web/src/types/atune.d.ts index 32dbd226e6aa503d4ea96a09faf516373acceb61..340465d80dd85451e39fed66f4db314cc30822c9 100644 --- a/atune/web/src/types/atune.d.ts +++ b/atune/web/src/types/atune.d.ts @@ -1,3 +1,12 @@ +export interface Task { + id: number; + name: string; + atune: string; + state: number; + createTime: string; + updateTime: string; +} + export interface Atune { id: number; tuneName: string; diff --git a/atune/web/src/views/Home.vue b/atune/web/src/views/Home.vue index 5057d95828b6be8d6a2bdf203f92d0e476975f21..dd4034fde3853eacdaa84c723452f7192bfeefad 100644 --- a/atune/web/src/views/Home.vue +++ b/atune/web/src/views/Home.vue @@ -1,28 +1,33 @@