Browse Source

[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.
3.0.0/version-upgrade
Amy0104 2 years ago committed by GitHub
parent
commit
84484b6a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui-next/src/views/datasource/list/index.tsx
  2. 3
      dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts

2
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}

3
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'),

Loading…
Cancel
Save