refactor(sj_1.1.0-beta1): 页面路径修改 notify/scene => notify/config

This commit is contained in:
dhb52 2024-06-22 20:04:24 +08:00
parent 121ac94cff
commit 79b5c588cd
8 changed files with 16 additions and 16 deletions

View File

@ -303,7 +303,7 @@ const local: App.I18n.Schema = {
namespace: 'Namespace',
notify: 'Notify',
notify_recipient: 'Notify Recipient',
notify_scene: 'Notify Scene',
notify_config: 'Notify Config',
retry: 'Retry Task',
retry_task: 'Retry Task',
retry_scene: 'Retry Scene',

View File

@ -304,7 +304,7 @@ const local: App.I18n.Schema = {
group: '组管理',
notify: '告警通知',
notify_recipient: '通知人',
notify_scene: '通知场景',
notify_config: '通知配置',
retry: '重试任务',
retry_task: '任务管理',
'retry_dead-letter': '死信任务',

View File

@ -26,8 +26,8 @@ export const views: Record<LastLevelRouteKey, RouteComponent | (() => Promise<Ro
job_batch: () => import("@/views/job/batch/index.vue"),
job_task: () => import("@/views/job/task/index.vue"),
namespace: () => import("@/views/namespace/index.vue"),
notify_config: () => import("@/views/notify/config/index.vue"),
notify_recipient: () => import("@/views/notify/recipient/index.vue"),
notify_scene: () => import("@/views/notify/scene/index.vue"),
pods: () => import("@/views/pods/index.vue"),
"retry_dead-letter": () => import("@/views/retry/dead-letter/index.vue"),
retry_log: () => import("@/views/retry/log/index.vue"),

View File

@ -155,6 +155,16 @@ export const generatedRoutes: GeneratedRoute[] = [
icon: 'material-symbols:notifications-active-outline-rounded'
},
children: [
{
name: 'notify_config',
path: '/notify/config',
component: 'view.notify_config',
meta: {
title: 'notify_config',
i18nKey: 'route.notify_config',
icon: 'cbi:scene-dynamic'
}
},
{
name: 'notify_recipient',
path: '/notify/recipient',
@ -164,16 +174,6 @@ export const generatedRoutes: GeneratedRoute[] = [
i18nKey: 'route.notify_recipient',
icon: 'fluent:people-call-20-filled'
}
},
{
name: 'notify_scene',
path: '/notify/scene',
component: 'view.notify_scene',
meta: {
title: 'notify_scene',
i18nKey: 'route.notify_scene',
icon: 'cbi:scene-dynamic'
}
}
]
},

View File

@ -6,9 +6,9 @@ import { fetchBatchDeleteNotify, fetchGetNotifyConfigList, fetchUpdateNotifyStat
import { $t } from '@/locales';
import { useAppStore } from '@/store/modules/app';
import { useTable, useTableOperate } from '@/hooks/common/table';
import NotifyConfigOperateDrawer from '@/views/notify/scene/modules/notify-config-operate-drawer.vue';
import NotifyConfigSearch from '@/views/notify/scene/modules/notify-config-search.vue';
import NotifyConfigDetailDrawer from '@/views/notify/scene/modules/notify-config-detail-drawer.vue';
import NotifyConfigOperateDrawer from '@/views/notify/config/modules/notify-config-operate-drawer.vue';
import NotifyConfigSearch from '@/views/notify/config/modules/notify-config-search.vue';
import NotifyConfigDetailDrawer from '@/views/notify/config/modules/notify-config-detail-drawer.vue';
import StatusSwitch from '@/components/common/status-switch.vue';
import { jobNotifyScene, retryNotifyScene, systemTaskType, workflowNotifyScene } from '@/constants/business';
import { tagColor } from '@/utils/common';