You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/03/22 10:49:20 UTC
[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix the problem that the fields in the workflow relationship are disordered and the time is empty. (#9091)
This is an automated email from the ASF dual-hosted git repository.
zhongjiajie 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 d641c8d [Fix][UI Next][V1.0.0-Alpha] Fix the problem that the fields in the workflow relationship are disordered and the time is empty. (#9091)
d641c8d is described below
commit d641c8d4eaf509dbfcf066554f247ce7efdafba3
Author: songjianet <17...@qq.com>
AuthorDate: Tue Mar 22 18:49:15 2022 +0800
[Fix][UI Next][V1.0.0-Alpha] Fix the problem that the fields in the workflow relationship are disordered and the time is empty. (#9091)
---
.../workflow/relation/components/Graph.tsx | 25 +++++++---------------
1 file changed, 8 insertions(+), 17 deletions(-)
diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/relation/components/Graph.tsx b/dolphinscheduler-ui-next/src/views/projects/workflow/relation/components/Graph.tsx
index 772f980..e6b8497 100644
--- a/dolphinscheduler-ui-next/src/views/projects/workflow/relation/components/Graph.tsx
+++ b/dolphinscheduler-ui-next/src/views/projects/workflow/relation/components/Graph.tsx
@@ -19,7 +19,6 @@ import { defineComponent, PropType, ref } from 'vue'
import initChart from '@/components/chart'
import { useI18n } from 'vue-i18n'
import type { Ref } from 'vue'
-import { format } from 'date-fns'
const props = {
height: {
@@ -140,23 +139,15 @@ const GraphChart = defineComponent({
Number(item.schedulePublishStatus),
Number(item.workFlowPublishStatus)
),
- workFlowPublishStatus: format(
- new Date(item.workFlowPublishStatus),
- 'yyyy-MM-dd HH:mm:ss'
- ),
- schedulePublishStatus: format(
- new Date(item.schedulePublishStatus),
- 'yyyy-MM-dd HH:mm:ss'
- ),
+ workFlowPublishStatus: Number(item.workFlowPublishStatus) === 0
+ ? t('project.workflow.offline')
+ : t('project.workflow.online'),
+ schedulePublishStatus: Number(item.schedulePublishStatus) === 0
+ ? t('project.workflow.offline')
+ : t('project.workflow.online'),
crontab: item.crontab,
- scheduleStartTime:
- Number(item.scheduleStartTime) === 0
- ? t('project.workflow.offline')
- : t('project.workflow.online'),
- scheduleEndTime:
- Number(item.scheduleEndTime) === 0
- ? t('project.workflow.offline')
- : t('project.workflow.online')
+ scheduleStartTime: item.scheduleStartTime ? item.scheduleStartTime : '-',
+ scheduleEndTime: item.scheduleEndTime ? item.scheduleEndTime : '-'
}
}),
categories: legendData