You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by li...@apache.org on 2022/03/19 02:50:13 UTC
[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix the workflow status field of the task definition page does not support chinese. (#9007)
This is an automated email from the ASF dual-hosted git repository.
lidongdai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 7ca2047 [Fix][UI Next][V1.0.0-Alpha] Fix the workflow status field of the task definition page does not support chinese. (#9007)
7ca2047 is described below
commit 7ca204772b40e0c16e11c7ae9352893a3ee228fb
Author: songjianet <17...@qq.com>
AuthorDate: Sat Mar 19 10:50:05 2022 +0800
[Fix][UI Next][V1.0.0-Alpha] Fix the workflow status field of the task definition page does not support chinese. (#9007)
---
dolphinscheduler-ui-next/src/locales/modules/en_US.ts | 2 ++
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts | 2 ++
.../src/views/projects/task/definition/use-table.ts | 17 ++++++++++++++++-
3 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/dolphinscheduler-ui-next/src/locales/modules/en_US.ts b/dolphinscheduler-ui-next/src/locales/modules/en_US.ts
index 655fb2e..782339d 100644
--- a/dolphinscheduler-ui-next/src/locales/modules/en_US.ts
+++ b/dolphinscheduler-ui-next/src/locales/modules/en_US.ts
@@ -517,6 +517,8 @@ const project = {
project_tips: 'Please select project name'
},
task: {
+ online: 'Online',
+ offline: 'Offline',
task_name: 'Task Name',
task_type: 'Task Type',
create_task: 'Create Task',
diff --git a/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts b/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
index d768287..a0cc6d1 100644
--- a/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
+++ b/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
@@ -514,6 +514,8 @@ const project = {
project_tips: '请选择项目'
},
task: {
+ online: '已上线',
+ offline: '已下线',
task_name: '任务名称',
task_type: '任务类型',
create_task: '创建任务',
diff --git a/dolphinscheduler-ui-next/src/views/projects/task/definition/use-table.ts b/dolphinscheduler-ui-next/src/views/projects/task/definition/use-table.ts
index b013c5e..c6cbae9 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/definition/use-table.ts
+++ b/dolphinscheduler-ui-next/src/views/projects/task/definition/use-table.ts
@@ -67,7 +67,22 @@ export function useTable(onEdit: Function) {
},
{
title: t('project.task.workflow_state'),
- key: 'processReleaseState'
+ key: 'processReleaseState',
+ render: (row: any) => {
+ if (row.processReleaseState === 'OFFLINE') {
+ return h(
+ NTag,
+ { type: 'error', size: 'small' },
+ t('project.task.offline')
+ )
+ } else if (row.processReleaseState === 'ONLINE') {
+ return h(
+ NTag,
+ { type: 'info', size: 'small' },
+ t('project.task.online')
+ )
+ }
+ }
},
{
title: t('project.task.task_type'),