diff --git a/orion-ops-ui/src/router/routes/modules/exec.ts b/orion-ops-ui/src/router/routes/modules/exec.ts index 81c6c20f..9e4eb3b9 100644 --- a/orion-ops-ui/src/router/routes/modules/exec.ts +++ b/orion-ops-ui/src/router/routes/modules/exec.ts @@ -14,19 +14,9 @@ const EXEC: AppRouteRecordRaw[] = [ }, { name: 'execCommandLog', - path: '/exec-command-log', + path: '/exec-log', component: () => import('@/views/exec/exec-command-log/index.vue'), }, - { - name: 'execJob', - path: '/exec-job', - component: () => import('@/views/exec/exec-job/index.vue'), - }, - { - name: 'execJobLog', - path: '/exec-job-log', - component: () => import('@/views/exec/exec-job-log/index.vue'), - }, { name: 'execTemplate', path: '/exec-template', @@ -41,14 +31,9 @@ const EXEC: AppRouteRecordRaw[] = [ children: [ { name: 'execCommandLogView', - path: '/exec-command-log-view', + path: '/exec-log-view', component: () => import('@/views/exec/exec-command-log-view/index.vue'), }, - { - name: 'execJobLogView', - path: '/exec-job-log-view', - component: () => import('@/views/exec/exec-job-log-view/index.vue'), - }, ], } ]; diff --git a/orion-ops-ui/src/router/routes/modules/job.ts b/orion-ops-ui/src/router/routes/modules/job.ts new file mode 100644 index 00000000..d16eddc5 --- /dev/null +++ b/orion-ops-ui/src/router/routes/modules/job.ts @@ -0,0 +1,36 @@ +import type { AppRouteRecordRaw } from '../types'; +import { DEFAULT_LAYOUT, FULL_LAYOUT } from '../base'; + +const JOB: AppRouteRecordRaw[] = [ + { + name: 'jobModule', + path: '/job-module', + component: DEFAULT_LAYOUT, + children: [ + { + name: 'execJob', + path: '/exec-job', + component: () => import('@/views/job/exec-job/index.vue'), + }, + { + name: 'execJobLog', + path: '/exec-job-log', + component: () => import('@/views/job/exec-job-log/index.vue'), + }, + ], + }, + { + name: 'jobFullModule', + path: '/job-full-module', + component: FULL_LAYOUT, + children: [ + { + name: 'execJobLogView', + path: '/job-log-view', + component: () => import('@/views/job/exec-job-log-view/index.vue'), + }, + ], + } +]; + +export default JOB; diff --git a/orion-ops-ui/src/views/dashboard/workplace/components/docs.vue b/orion-ops-ui/src/views/dashboard/workplace/components/docs.vue index a169d03d..2ea97164 100644 --- a/orion-ops-ui/src/views/dashboard/workplace/components/docs.vue +++ b/orion-ops-ui/src/views/dashboard/workplace/components/docs.vue @@ -20,7 +20,7 @@ 操作文档 - 更新文档 + 更新日志 diff --git a/orion-ops-ui/src/views/exec/exec-job-log-view/index.vue b/orion-ops-ui/src/views/job/exec-job-log-view/index.vue similarity index 90% rename from orion-ops-ui/src/views/exec/exec-job-log-view/index.vue rename to orion-ops-ui/src/views/job/exec-job-log-view/index.vue index a4f1603e..7c6a50e1 100644 --- a/orion-ops-ui/src/views/exec/exec-job-log-view/index.vue +++ b/orion-ops-ui/src/views/job/exec-job-log-view/index.vue @@ -17,7 +17,7 @@