Browse Source

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

songjianet 3 years ago
parent
commit
a866465d01

+ 3 - 0
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)

+ 2 - 2
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)
       },
       {