From 84484b6a6b951952a381483fb1799756fdf8794b Mon Sep 17 00:00:00 2001 From: Amy0104 <97265214+Amy0104@users.noreply.github.com> Date: Thu, 5 May 2022 11:45:38 +0800 Subject: [PATCH] [Fix][UI Next][V1.0.0-Beta] Fix some errors on the datasource page. (#9877) * Set the description default value to "-" * Pager is missing page selector. --- dolphinscheduler-ui-next/src/views/datasource/list/index.tsx | 2 ++ .../src/views/datasource/list/use-columns.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui-next/src/views/datasource/list/index.tsx b/dolphinscheduler-ui-next/src/views/datasource/list/index.tsx index 6f71369c80..4ab30cf871 100644 --- a/dolphinscheduler-ui-next/src/views/datasource/list/index.tsx +++ b/dolphinscheduler-ui-next/src/views/datasource/list/index.tsx @@ -147,6 +147,8 @@ const list = defineComponent({ page-size={pageSize} item-count={itemCount} show-quick-jumper + show-size-picker + page-sizes={[10, 30, 50]} class={styles['pagination']} on-update:page={changePage} on-update:page-size={changePageSize} diff --git a/dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts b/dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts index 396ced08eb..604e2fd720 100644 --- a/dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts +++ b/dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts @@ -82,7 +82,8 @@ export function useColumns(onCallback: Function) { { title: t('datasource.description'), key: 'note', - ...COLUMN_WIDTH_CONFIG['note'] + ...COLUMN_WIDTH_CONFIG['note'], + render: (rowData) => rowData.description || '-' }, { title: t('datasource.create_time'),