Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the time columns cannot be broken in the cron manage table. (#9334)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
a866465d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui-next/src/utils/column-width-config.ts
  2. 4
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/timing/use-table.ts

3
dolphinscheduler-ui-next/src/utils/column-width-config.ts

@ -46,6 +46,9 @@ export const COLUMN_WIDTH_CONFIG = {
time: {
width: 180
},
timeZone: {
width: 220
},
operation: (number: number): CommonColumnInfo => ({
fixed: 'right',
width: Math.max(30 * number + 12 * (number - 1) + 24, 100)

4
dolphinscheduler-ui-next/src/views/projects/workflow/definition/timing/use-table.ts

@ -89,13 +89,13 @@ export function useTable() {
{
title: t('project.workflow.start_time'),
key: 'startTime',
...COLUMN_WIDTH_CONFIG['time'],
...COLUMN_WIDTH_CONFIG['timeZone'],
render: (row: any) => renderTime(row.startTime, row.timezoneId)
},
{
title: t('project.workflow.end_time'),
key: 'endTime',
...COLUMN_WIDTH_CONFIG['time'],
...COLUMN_WIDTH_CONFIG['timeZone'],
render: (row: any) => renderTime(row.endTime, row.timezoneId)
},
{

Loading…
Cancel
Save