|
|
@ -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), |
|
|
|
|
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
schedulePublishStatus: format( |
|
|
|
|
|
|
|
new Date(item.schedulePublishStatus), |
|
|
|
|
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
crontab: item.crontab, |
|
|
|
|
|
|
|
scheduleStartTime: |
|
|
|
|
|
|
|
Number(item.scheduleStartTime) === 0 |
|
|
|
|
|
|
|
? t('project.workflow.offline') |
|
|
|
? t('project.workflow.offline') |
|
|
|
: t('project.workflow.online'), |
|
|
|
: t('project.workflow.online'), |
|
|
|
scheduleEndTime: |
|
|
|
schedulePublishStatus: Number(item.schedulePublishStatus) === 0 |
|
|
|
Number(item.scheduleEndTime) === 0 |
|
|
|
|
|
|
|
? t('project.workflow.offline') |
|
|
|
? t('project.workflow.offline') |
|
|
|
: t('project.workflow.online') |
|
|
|
: t('project.workflow.online'), |
|
|
|
|
|
|
|
crontab: item.crontab, |
|
|
|
|
|
|
|
scheduleStartTime: item.scheduleStartTime ? item.scheduleStartTime : '-', |
|
|
|
|
|
|
|
scheduleEndTime: item.scheduleEndTime ? item.scheduleEndTime : '-' |
|
|
|
} |
|
|
|
} |
|
|
|
}), |
|
|
|
}), |
|
|
|
categories: legendData |
|
|
|
categories: legendData |
|
|
|