mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 12:17:43 +08:00
[Fix][UI Next][V1.0.0-Alpha] Fix the workflow status field of the task definition page does not support chinese. (#9007)
This commit is contained in:
parent
2e9740c39e
commit
7ca204772b
@ -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',
|
||||
|
@ -514,6 +514,8 @@ const project = {
|
||||
project_tips: '请选择项目'
|
||||
},
|
||||
task: {
|
||||
online: '已上线',
|
||||
offline: '已下线',
|
||||
task_name: '任务名称',
|
||||
task_type: '任务类型',
|
||||
create_task: '创建任务',
|
||||
|
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user