Browse Source

[Fix][UI] Fix the problem that the failure strategy field in the time management form is multilingual. (#10169)

songjianet 2 years ago
parent
commit
dc61370f30

+ 7 - 0
dolphinscheduler-ui/src/views/projects/workflow/definition/timing/use-table.ts

@@ -106,6 +106,13 @@ export function useTable() {
       {
         title: t('project.workflow.failure_strategy'),
         key: 'failureStrategy',
+        render: (row: any) => {
+          if (row.failureStrategy === 'CONTINUE') {
+            return t('project.workflow.continue')
+          } else if (row.failureStrategy === 'END') {
+            return t('project.workflow.end')
+          }
+        },
         width: 140
       },
       {