From a866465d010256d03228e4b00b74f4fc28d09b8c Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Sat, 2 Apr 2022 18:12:31 +0800 Subject: [PATCH] [Fix][UI Next][V1.0.0-Alpha] Fix the time columns cannot be broken in the cron manage table. (#9334) --- dolphinscheduler-ui-next/src/utils/column-width-config.ts | 3 +++ .../views/projects/workflow/definition/timing/use-table.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-ui-next/src/utils/column-width-config.ts b/dolphinscheduler-ui-next/src/utils/column-width-config.ts index 30798e932f..41358552d0 100644 --- a/dolphinscheduler-ui-next/src/utils/column-width-config.ts +++ b/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) diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/timing/use-table.ts b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/timing/use-table.ts index 97d7932ca4..a77906e86e 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/timing/use-table.ts +++ b/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) }, {