diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 8322a0b14..21f73821d 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -1411,7 +1411,7 @@ "CASSetting": "CAS setting", "CAS": "CAS", "OIDC": "OIDC", - "Other": "More...", + "Other": "Other", "Auth": "Auth", "SyncSetting": "Sync setting", "Advanced": "Advanced", @@ -1592,7 +1592,7 @@ "AppEndpoint": "Application access address", "authCASAttrMap": "User Attribute Mapping", "SignaturesAndTemplates": "Signatures and Templates", - "SystemTools": "System Tool", + "SystemTools": "Tools", "testTools": "Test", "basicTools": "Basic tool" }, @@ -1994,7 +1994,7 @@ "Import": "Import", "ImportLicense": "Import license", "ImportLicenseTip": "Please Import License", - "InterfaceSettings": "Interface Setting", + "InterfaceSettings": "Interface", "License": "License", "LicenseDetail": "License detail", "ComponentMonitor": "System Monitor", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 21568b23f..13f1410fd 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -1242,7 +1242,7 @@ "SystemUserUpdate": "更新系统用户", "AssetUserList": "资产用户", "TaskDetail": "任务详情", - "TaskList": "任务列表", + "TaskList": "系统任务", "TaskMonitor": "任务监控", "Terminal": "终端管理", "TicketDetail": "工单详情", diff --git a/src/router/console/index.js b/src/router/console/index.js index 3283451d9..66e1296ae 100644 --- a/src/router/console/index.js +++ b/src/router/console/index.js @@ -6,7 +6,6 @@ import store from '@/store' import UsersRoute from './users' import AssetsRoute from './assets' import PermsRoute from './perms' -import TaskRoutes from './tasks' import AccountRoutes from './accounts' export default { @@ -74,16 +73,6 @@ export default { icon: 'permission' }, children: PermsRoute - }, - { - path: '/console/tasks', - component: empty, - name: 'TaskCenter', - meta: { - title: i18n.t('route.TaskCenter'), - icon: 'tasks' - }, - children: TaskRoutes } ] } diff --git a/src/router/console/tasks.js b/src/router/console/tasks.js index e6df23156..e69de29bb 100644 --- a/src/router/console/tasks.js +++ b/src/router/console/tasks.js @@ -1,44 +0,0 @@ -import i18n from '@/i18n/i18n' -import { BASE_URL } from '@/utils/common' -import empty from '@/layout/empty' - -export default [ - { - path: 'tasks', - component: empty, - meta: { - title: i18n.t('route.TaskList'), - permissions: ['ops.view_celerytask'] - }, - children: [ - { - path: '', - name: 'TaskList', - component: () => import('@/views/tasks/TaskList'), - meta: { - title: i18n.t('route.TaskList'), - permissions: ['ops.view_celerytask'] - } - }, - { - path: ':id', - component: () => import('@/views/tasks/TaskDetail'), - name: 'TaskDetail', - hidden: true, - meta: { - title: i18n.t('route.TaskDetail'), - permissions: ['ops.view_celerytask'] - } - } - ] - }, - { - path: `${BASE_URL}/core/flower/?_=${Date.now()}`, - name: 'TaskMonitor', - // component: () => window.open(`/core/flower?_=${Date.now()}`), - meta: { - title: i18n.t('route.TaskMonitor'), - permissions: ['ops.view_taskmonitor'] - } - } -] diff --git a/src/router/settings/index.js b/src/router/settings/index.js index 93aaa1a33..e4128b3cb 100644 --- a/src/router/settings/index.js +++ b/src/router/settings/index.js @@ -352,16 +352,7 @@ export default { } ] }, - { - path: '/settings/other', - name: 'Other', - component: () => import('@/views/settings/Other'), - meta: { - title: i18n.t('setting.Other'), - icon: 'other', - permissions: ['settings.change_other'] - } - }, + { path: '/settings/tools', name: 'Tools', @@ -372,6 +363,47 @@ export default { permissions: ['settings.view_setting'] } }, + { + path: '/settings/tasks', + component: empty, + meta: { + title: i18n.t('route.TaskList'), + icon: 'tasks', + permissions: ['ops.view_celerytask'] + }, + children: [ + { + path: '', + name: 'TaskList', + component: () => import('@/views/tasks/TaskList'), + meta: { + title: i18n.t('route.TaskList'), + permissions: ['ops.view_celerytask'] + } + }, + { + path: ':id', + component: () => import('@/views/tasks/TaskDetail'), + name: 'TaskDetail', + hidden: true, + meta: { + title: i18n.t('route.TaskDetail'), + permissions: ['ops.view_celerytask'], + activeMenu: '/settings/tasks' + } + } + ] + }, + { + path: '/settings/other', + name: 'Other', + component: () => import('@/views/settings/Other'), + meta: { + title: i18n.t('setting.Other'), + icon: 'other', + permissions: ['settings.change_other'] + } + }, { path: '/settings/license', name: 'License', diff --git a/src/views/settings/Other.vue b/src/views/settings/Other.vue index b261afe76..dc227d04f 100644 --- a/src/views/settings/Other.vue +++ b/src/views/settings/Other.vue @@ -10,8 +10,8 @@