From 91f1d45948d5d53b790aefbf589d4a91fba7f817 Mon Sep 17 00:00:00 2001 From: Devosend Date: Wed, 18 May 2022 12:00:51 +0800 Subject: [PATCH] [Feat][UI] Add resource username for function and resource manage (#10086) --- dolphinscheduler-ui/src/locales/modules/en_US.ts | 2 ++ dolphinscheduler-ui/src/locales/modules/zh_CN.ts | 2 ++ .../src/views/resource/udf/function/use-table.ts | 5 +++++ .../src/views/resource/udf/resource/use-table.ts | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/dolphinscheduler-ui/src/locales/modules/en_US.ts b/dolphinscheduler-ui/src/locales/modules/en_US.ts index daf142b35a..3395adaa85 100644 --- a/dolphinscheduler-ui/src/locales/modules/en_US.ts +++ b/dolphinscheduler-ui/src/locales/modules/en_US.ts @@ -239,6 +239,7 @@ const resource = { create_folder: 'Create Folder', upload_udf_resources: 'Upload UDF Resources', udf_source_name: 'UDF Resource Name', + user_name: 'Resource userName', whether_directory: 'Whether directory', file_name: 'File Name', file_size: 'File Size', @@ -266,6 +267,7 @@ const resource = { create_udf_function: 'Create UDF Function', edit_udf_function: 'Create UDF Function', udf_function_name: 'UDF Function Name', + user_name: 'Resource userName', class_name: 'Class Name', type: 'Type', description: 'Description', diff --git a/dolphinscheduler-ui/src/locales/modules/zh_CN.ts b/dolphinscheduler-ui/src/locales/modules/zh_CN.ts index e9c4133907..f8ee207fcd 100644 --- a/dolphinscheduler-ui/src/locales/modules/zh_CN.ts +++ b/dolphinscheduler-ui/src/locales/modules/zh_CN.ts @@ -238,6 +238,7 @@ const resource = { create_folder: '创建文件夹', upload_udf_resources: '上传UDF资源', udf_source_name: 'UDF资源名称', + user_name: '所属用户', whether_directory: '是否文件夹', file_name: '文件名称', file_size: '文件大小', @@ -265,6 +266,7 @@ const resource = { create_udf_function: '创建UDF函数', edit_udf_function: '编辑UDF函数', udf_function_name: 'UDF函数名称', + user_name: '所属用户', class_name: '类名', type: '类型', description: '描述', diff --git a/dolphinscheduler-ui/src/views/resource/udf/function/use-table.ts b/dolphinscheduler-ui/src/views/resource/udf/function/use-table.ts index cf4a0407bb..a7d737c6db 100644 --- a/dolphinscheduler-ui/src/views/resource/udf/function/use-table.ts +++ b/dolphinscheduler-ui/src/views/resource/udf/function/use-table.ts @@ -65,6 +65,11 @@ export function useTable() { key: 'funcName', ...COLUMN_WIDTH_CONFIG['name'] }, + { + title: t('resource.function.user_name'), + ...COLUMN_WIDTH_CONFIG['userName'], + key: 'userName' + }, { title: t('resource.function.class_name'), key: 'className', diff --git a/dolphinscheduler-ui/src/views/resource/udf/resource/use-table.ts b/dolphinscheduler-ui/src/views/resource/udf/resource/use-table.ts index a02f9fa6b6..4001a1f303 100644 --- a/dolphinscheduler-ui/src/views/resource/udf/resource/use-table.ts +++ b/dolphinscheduler-ui/src/views/resource/udf/resource/use-table.ts @@ -102,6 +102,11 @@ export function useTable() { ) } }, + { + title: t('resource.udf.user_name'), + ...COLUMN_WIDTH_CONFIG['userName'], + key: 'userName' + }, { title: t('resource.udf.whether_directory'), key: 'whether_directory',