diff --git a/dolphinscheduler-ui/src/locales/en_US/datasource.ts b/dolphinscheduler-ui/src/locales/en_US/datasource.ts index 9d31bae284..6d205d7434 100644 --- a/dolphinscheduler-ui/src/locales/en_US/datasource.ts +++ b/dolphinscheduler-ui/src/locales/en_US/datasource.ts @@ -19,6 +19,7 @@ export default { datasource: 'DataSource', create_datasource: 'Create DataSource', choose_datasource_type: 'Choose DataSource Type', + select: 'Select', search_input_tips: 'Please input the keywords', datasource_name: 'Datasource Name', datasource_name_tips: 'Please enter datasource name', diff --git a/dolphinscheduler-ui/src/locales/zh_CN/datasource.ts b/dolphinscheduler-ui/src/locales/zh_CN/datasource.ts index f9baea3a8c..8ddff9d8ff 100644 --- a/dolphinscheduler-ui/src/locales/zh_CN/datasource.ts +++ b/dolphinscheduler-ui/src/locales/zh_CN/datasource.ts @@ -19,6 +19,7 @@ export default { datasource: '数据源', create_datasource: '创建源', choose_datasource_type: '选择源类型', + select: '更改', search_input_tips: '请输入关键字', datasource_name: '源名称', datasource_name_tips: '请输入数据源名称', diff --git a/dolphinscheduler-ui/src/views/datasource/list/detail.tsx b/dolphinscheduler-ui/src/views/datasource/list/detail.tsx index 4fb36a8cc6..a67d2a457a 100644 --- a/dolphinscheduler-ui/src/views/datasource/list/detail.tsx +++ b/dolphinscheduler-ui/src/views/datasource/list/detail.tsx @@ -199,7 +199,7 @@ const DetailModal = defineComponent({ >
{detailForm.label}
-
更换
+
{t('datasource.select')}
{ + const { getColumns } = useColumns((id: number, type: 'edit' | 'delete', row?: any) => { if (type === 'edit') { showDetailModal.value = true selectId.value = id + selectType.value = row.type } else { deleteRecord(id) } diff --git a/dolphinscheduler-ui/src/views/datasource/list/use-columns.ts b/dolphinscheduler-ui/src/views/datasource/list/use-columns.ts index b9bde3821d..e0a016014e 100644 --- a/dolphinscheduler-ui/src/views/datasource/list/use-columns.ts +++ b/dolphinscheduler-ui/src/views/datasource/list/use-columns.ts @@ -118,7 +118,7 @@ export function useColumns(onCallback: Function) { circle: true, type: 'info', size: 'small', - onClick: () => void onCallback(rowData.id, 'edit') + onClick: () => void onCallback(rowData.id, 'edit', rowData) }, { default: () =>