diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 9ce91331d..dea25250b 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -457,6 +457,7 @@ "WebFTP": "文件管理", "WebTerminal": "Web终端", "BatchCommandLog": "批量命令", + "TaskMonitor": "任务监控", "": "" }, "sessions": { diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 8a9a4b427..70a438932 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -314,7 +314,8 @@ "totalVersions": "Total versions", "version": "Version", "versionDetail": "Version detail", - "versionRunExecution": "Version run execution" + "versionRunExecution": "Version run execution", + "TaskMonitor": "Task monitor" }, "perms": { "Actions": "Actions", diff --git a/src/views/xpack/router.js b/src/views/xpack/router.js index c61913483..a97683cee 100644 --- a/src/views/xpack/router.js +++ b/src/views/xpack/router.js @@ -10,6 +10,103 @@ export default { name: 'Xpack', meta: { title: 'Xpack', icon: 'sitemap', licenseRequired: true }, children: [ + { + path: 'change-auth-plan', + component: empty, + meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' }, + children: [ + { + path: 'plan', + component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanList.vue'), + name: 'ChangeAuthPlanList', + meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' } + }, + { + path: 'plan/create', + component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'), + name: 'ChangeAuthPlanCreate', + meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanCreate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'create' }, + hidden: true + }, + { + path: 'plan/:id/update', + component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'), + name: 'ChangeAuthPlanUpdate', + meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanUpdate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'update' }, + hidden: true + }, + { + path: 'plan/:id', + component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/index.vue'), + name: 'ChangeAuthPlanDetail', + meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' }, + hidden: true + }, + { + path: 'plan-execution/:id', + component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionDetail/index.vue'), + name: 'ChangeAuthPlanExecutionDetail', + meta: { title: i18n.t('xpack.ChangeAuthPlan.ExecutionDetail'), activeMenu: '/xpack/change-auth-plan/plan' }, + hidden: true + } + ] + }, + { + path: 'cloud', + component: empty, + redirect: '', + meta: { title: i18n.t('xpack.Cloud.Cloud') }, + children: [ + { + path: '', + component: () => import('@/views/xpack/Cloud/index.vue'), + name: 'CloudCenter', + meta: { title: i18n.t('xpack.Cloud.CloudCenter') } + }, + { + path: 'account', + component: () => import('@/views/xpack/Cloud/Account/AccountList'), + name: 'AccountList', + hidden: true, + meta: { title: i18n.t('xpack.Cloud.AccountList') } + }, + { + path: 'account/create', + component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'), + name: 'AccountCreate', + hidden: true, + meta: { title: i18n.t('xpack.Cloud.AccountCreate'), action: 'create' } + }, + { + path: 'account/:id/update', + component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'), + name: 'AccountUpdate', + hidden: true, + meta: { title: i18n.t('xpack.Cloud.AccountUpdate'), action: 'update', activeMenu: '/xpack/cloud' } + }, + { + path: 'sync-instance-tasks', + component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskList'), + name: 'SyncInstanceTaskList', + hidden: true, + meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskList') } + }, + { + path: 'sync-instance-tasks/create', + component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'), + name: 'SyncInstanceTaskCreate', + hidden: true, + meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskCreate') } + }, + { + path: 'sync-instance-tasks/:id/update', + component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'), + name: 'SyncInstanceTaskUpdate', + hidden: true, + meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskUpdate') } + } + ] + }, { path: 'interface-setting', component: () => import('@/views/xpack/InterfaceSettings.vue'), @@ -93,47 +190,6 @@ export default { } ] }, - { - path: 'change-auth-plan', - component: empty, - meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' }, - children: [ - { - path: 'plan', - component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanList.vue'), - name: 'ChangeAuthPlanList', - meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' } - }, - { - path: 'plan/create', - component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'), - name: 'ChangeAuthPlanCreate', - meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanCreate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'create' }, - hidden: true - }, - { - path: 'plan/:id/update', - component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'), - name: 'ChangeAuthPlanUpdate', - meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanUpdate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'update' }, - hidden: true - }, - { - path: 'plan/:id', - component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/index.vue'), - name: 'ChangeAuthPlanDetail', - meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' }, - hidden: true - }, - { - path: 'plan-execution/:id', - component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionDetail/index.vue'), - name: 'ChangeAuthPlanExecutionDetail', - meta: { title: i18n.t('xpack.ChangeAuthPlan.ExecutionDetail'), activeMenu: '/xpack/change-auth-plan/plan' }, - hidden: true - } - ] - }, { path: 'vault', component: empty, @@ -153,62 +209,6 @@ export default { hidden: true } ] - }, - { - path: 'cloud', - component: empty, - redirect: '', - meta: { title: i18n.t('xpack.Cloud.Cloud') }, - children: [ - { - path: '', - component: () => import('@/views/xpack/Cloud/index.vue'), - name: 'CloudCenter', - meta: { title: i18n.t('xpack.Cloud.CloudCenter') } - }, - { - path: 'account', - component: () => import('@/views/xpack/Cloud/Account/AccountList'), - name: 'AccountList', - hidden: true, - meta: { title: i18n.t('xpack.Cloud.AccountList') } - }, - { - path: 'account/create', - component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'), - name: 'AccountCreate', - hidden: true, - meta: { title: i18n.t('xpack.Cloud.AccountCreate'), action: 'create' } - }, - { - path: 'account/:id/update', - component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'), - name: 'AccountUpdate', - hidden: true, - meta: { title: i18n.t('xpack.Cloud.AccountUpdate'), action: 'update', activeMenu: '/xpack/cloud' } - }, - { - path: 'sync-instance-tasks', - component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskList'), - name: 'SyncInstanceTaskList', - hidden: true, - meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskList') } - }, - { - path: 'sync-instance-tasks/create', - component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'), - name: 'SyncInstanceTaskCreate', - hidden: true, - meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskCreate') } - }, - { - path: 'sync-instance-tasks/:id/update', - component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'), - name: 'SyncInstanceTaskUpdate', - hidden: true, - meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskUpdate') } - } - ] } ] }