|
|
@ -19,7 +19,6 @@ import { defineComponent, PropType, ref } from 'vue' |
|
|
|
import initChart from '@/components/chart' |
|
|
|
import initChart from '@/components/chart' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import { format } from 'date-fns' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const props = { |
|
|
|
const props = { |
|
|
|
height: { |
|
|
|
height: { |
|
|
@ -140,23 +139,15 @@ const GraphChart = defineComponent({ |
|
|
|
Number(item.schedulePublishStatus), |
|
|
|
Number(item.schedulePublishStatus), |
|
|
|
Number(item.workFlowPublishStatus) |
|
|
|
Number(item.workFlowPublishStatus) |
|
|
|
), |
|
|
|
), |
|
|
|
workFlowPublishStatus: format( |
|
|
|
workFlowPublishStatus: Number(item.workFlowPublishStatus) === 0 |
|
|
|
new Date(item.workFlowPublishStatus), |
|
|
|
? t('project.workflow.offline') |
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
: t('project.workflow.online'), |
|
|
|
), |
|
|
|
schedulePublishStatus: Number(item.schedulePublishStatus) === 0 |
|
|
|
schedulePublishStatus: format( |
|
|
|
? t('project.workflow.offline') |
|
|
|
new Date(item.schedulePublishStatus), |
|
|
|
: t('project.workflow.online'), |
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
crontab: item.crontab, |
|
|
|
crontab: item.crontab, |
|
|
|
scheduleStartTime: |
|
|
|
scheduleStartTime: item.scheduleStartTime ? item.scheduleStartTime : '-', |
|
|
|
Number(item.scheduleStartTime) === 0 |
|
|
|
scheduleEndTime: item.scheduleEndTime ? item.scheduleEndTime : '-' |
|
|
|
? t('project.workflow.offline') |
|
|
|
|
|
|
|
: t('project.workflow.online'), |
|
|
|
|
|
|
|
scheduleEndTime: |
|
|
|
|
|
|
|
Number(item.scheduleEndTime) === 0 |
|
|
|
|
|
|
|
? t('project.workflow.offline') |
|
|
|
|
|
|
|
: t('project.workflow.online') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}), |
|
|
|
}), |
|
|
|
categories: legendData |
|
|
|
categories: legendData |
|
|
|