From 06ea15c45b328fdb86ecbfba3750575dce8cfe3a Mon Sep 17 00:00:00 2001 From: wuchunfu <319355703@qq.com> Date: Sun, 29 Oct 2023 13:07:14 +0800 Subject: [PATCH] [Improve][UI] Translate Route Names --- seatunnel-ui/src/router/sync-task.ts | 8 ++++---- seatunnel-ui/src/router/virtual-tables.ts | 4 ++-- seatunnel-ui/src/service/sync-task-definition/index.ts | 3 +-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/seatunnel-ui/src/router/sync-task.ts b/seatunnel-ui/src/router/sync-task.ts index 910e18773..4cb00f269 100644 --- a/seatunnel-ui/src/router/sync-task.ts +++ b/seatunnel-ui/src/router/sync-task.ts @@ -35,7 +35,7 @@ export default { name: 'synchronization-definition', component: components['projects-task-synchronization-definition'], meta: { - title: '同步任务定义', + title: 'synchronization-definition', activeMenu: 'projects', showSide: true // auth: 'project:seatunnel-task:view' @@ -46,7 +46,7 @@ export default { name: 'synchronization-definition-dag', component: components['projects-task-synchronization-definition-dag'], meta: { - title: '同步任务定义画布', + title: 'synchronization-definition-dag', activeMenu: 'projects', activeSide: '/task/synchronization-definition', showSide: true, @@ -58,7 +58,7 @@ export default { name: 'synchronization-instance', component: components['projects-task-synchronization-instance'], meta: { - title: '同步任务实例', + title: 'synchronization-instance', activeMenu: 'projects', showSide: true // auth: 'project:seatunnel-task-instance:view' @@ -69,7 +69,7 @@ export default { name: 'synchronization-instance-detail', component: components['projects-task-synchronization-instance-detail'], meta: { - title: '同步任务实例详情', + title: 'synchronization-instance-detail', activeMenu: 'projects', activeSide: '/task/synchronization-instance', showSide: true, diff --git a/seatunnel-ui/src/router/virtual-tables.ts b/seatunnel-ui/src/router/virtual-tables.ts index a097f2c0b..82378424c 100644 --- a/seatunnel-ui/src/router/virtual-tables.ts +++ b/seatunnel-ui/src/router/virtual-tables.ts @@ -44,7 +44,7 @@ export default { name: 'virtual-tables-create', component: components['virtual-tables-detail'], meta: { - title: '虚拟表创建', + title: 'virtual-tables-create', activeMenu: 'virtual-tables', } }, @@ -53,7 +53,7 @@ export default { name: 'virtual-tables-editor', component: components['virtual-tables-detail'], meta: { - title: '虚拟表编辑', + title: 'virtual-tables-editor', activeMenu: 'virtual-tables', } } diff --git a/seatunnel-ui/src/service/sync-task-definition/index.ts b/seatunnel-ui/src/service/sync-task-definition/index.ts index ca970265f..3abcc37aa 100644 --- a/seatunnel-ui/src/service/sync-task-definition/index.ts +++ b/seatunnel-ui/src/service/sync-task-definition/index.ts @@ -145,7 +145,6 @@ export function queryTaskDetail(jobCode: string, taskCode: string): any { }) } -// source类型,获取源名称 export function listSourceName( jobId: string, sceneMode: string, @@ -161,7 +160,7 @@ export function listSourceName( } }) } -// sink类型,获取源名称 + export function findSink( jobId: string, status: 'DOWNLOADED' | 'NOT_DOWNLOAD' | 'ALL' = 'DOWNLOADED'