diff --git a/src/router/index.js b/src/router/index.js index df41c175..50f3552b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -96,14 +96,14 @@ export const constantRoutes = [ ] }, { - path: '/guide', + path: '/schedule', component: Layout, - redirect: '/guide/index', + redirect: '/schedule/index', children: [ { path: 'index', - component: () => import('@/views/guide/index'), - name: 'Guide', + component: () => import('@/views/schedule/index'), + name: 'Schedule', meta: { title: '调度决策', icon: 'guide', noCache: true } } ] diff --git a/src/router/modules/charts.js b/src/router/modules/charts.js index 20ef4862..ea2b2bfc 100644 --- a/src/router/modules/charts.js +++ b/src/router/modules/charts.js @@ -3,49 +3,61 @@ import Layout from '@/layout' const chartsRouter = { - path: '/charts', + path: '/route', component: Layout, redirect: 'noRedirect', - name: 'Charts', + name: 'Route', meta: { title: '路由控制', icon: 'tree' }, children: [ { - path: 'keyboard', - component: () => import('@/views/charts/keyboard'), - name: 'KeyboardChart', + path: 'show_paths', + component: () => import('@/views/route/show_paths'), + name: 'ShowPaths', meta: { title: '查看最短路径', noCache: true } }, { - path: 'keyboard', - component: () => import('@/views/charts/keyboard'), - name: 'KeyboardChart', + path: 'show_sid', + component: () => import('@/views/route/show_sid'), + name: 'ShowSID', meta: { title: '查看SID', noCache: true } }, { - path: 'line', - component: () => import('@/views/charts/line'), - name: 'LineChart', + path: 'show_policy', + component: () => import('@/views/route/show_policy.vue'), + name: 'ShowPolicy', meta: { title: '查看路由', noCache: true } }, { - path: 'mix-chart', - component: () => import('@/views/charts/mix-chart'), - name: 'MixChart', + path: 'show_steer', + component: () => import('@/views/route/show_steer'), + name: 'ShowSteer', + meta: { title: '查看引导', noCache: true } + }, + { + path: 'add_policy', + component: () => import('@/views/route/add_policy.vue'), + name: 'AddPolicy', meta: { title: '添加路由', noCache: true } }, { - path: 'mix-chart', - component: () => import('@/views/charts/mix-chart'), - name: 'MixChart', + path: 'steer', + component: () => import('@/views/route/steer.vue'), + name: 'Steer', meta: { title: '更新引导', noCache: true } }, { - path: 'mix-chart', - component: () => import('@/views/charts/mix-chart'), - name: 'MixChart', + path: 'del_steer', + component: () => import('@/views/route/del_steer.vue'), + name: 'DelSteer', + meta: { title: '删除引导', noCache: true } + }, + { + path: 'del_policy', + component: () => import('@/views/route/del_policy.vue'), + name: 'DelPolicy', meta: { title: '删除路由', noCache: true } } ] diff --git a/src/views/route/add_policy.vue b/src/views/route/add_policy.vue new file mode 100644 index 00000000..8a94ca40 --- /dev/null +++ b/src/views/route/add_policy.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/src/views/route/del_policy.vue b/src/views/route/del_policy.vue new file mode 100644 index 00000000..cc0dbe16 --- /dev/null +++ b/src/views/route/del_policy.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/route/del_steer.vue b/src/views/route/del_steer.vue new file mode 100644 index 00000000..4d2f3f8b --- /dev/null +++ b/src/views/route/del_steer.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/route/show_paths.vue b/src/views/route/show_paths.vue new file mode 100644 index 00000000..74eed06c --- /dev/null +++ b/src/views/route/show_paths.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/src/views/route/show_policy.vue b/src/views/route/show_policy.vue new file mode 100644 index 00000000..84b02d94 --- /dev/null +++ b/src/views/route/show_policy.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/views/route/show_sid.vue b/src/views/route/show_sid.vue new file mode 100644 index 00000000..694a7432 --- /dev/null +++ b/src/views/route/show_sid.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/src/views/route/show_steer.vue b/src/views/route/show_steer.vue new file mode 100644 index 00000000..7bd313e6 --- /dev/null +++ b/src/views/route/show_steer.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/views/route/steer.vue b/src/views/route/steer.vue new file mode 100644 index 00000000..fb1bc0b2 --- /dev/null +++ b/src/views/route/steer.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/src/views/schedule/index.vue b/src/views/schedule/index.vue new file mode 100644 index 00000000..707707e4 --- /dev/null +++ b/src/views/schedule/index.vue @@ -0,0 +1,104 @@ + + + + +