未验证 提交 d641c8d4 编写于 作者: S songjianet 提交者: GitHub

[Fix][UI Next][V1.0.0-Alpha] Fix the problem that the fields in the workflow...

[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)
上级 23b24508
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册