Browse Source

[Feature][Workflow relationship] Format time. (#7123)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
3304edee47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGridOption.js

5
dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGridOption.js

@ -16,6 +16,7 @@
*/ */
import _ from 'lodash' import _ from 'lodash'
import i18n from '@/module/i18n/index.js' import i18n from '@/module/i18n/index.js'
import dayjs from 'dayjs'
const getCategory = (categoryDic, { workFlowPublishStatus, schedulePublishStatus, code }, sourceWorkFlowCode) => { const getCategory = (categoryDic, { workFlowPublishStatus, schedulePublishStatus, code }, sourceWorkFlowCode) => {
if (code === sourceWorkFlowCode) return categoryDic.active if (code === sourceWorkFlowCode) return categoryDic.active
@ -72,8 +73,8 @@ export default function (locations, links, sourceWorkFlowCode, isShowLabel) {
const { name, scheduleStartTime, scheduleEndTime, crontab, workFlowPublishStatus, schedulePublishStatus } = params.data const { name, scheduleStartTime, scheduleEndTime, crontab, workFlowPublishStatus, schedulePublishStatus } = params.data
return ` return `
${i18n.$t('workflowName')}${name}<br/> ${i18n.$t('workflowName')}${name}<br/>
${i18n.$t('scheduleStartTime')}${scheduleStartTime}<br/> ${i18n.$t('scheduleStartTime')}${dayjs(scheduleStartTime).format('YYYY-MM-DD HH:mm:ss')}<br/>
${i18n.$t('scheduleEndTime')}${scheduleEndTime}<br/> ${i18n.$t('scheduleEndTime')}${dayjs(scheduleEndTime).format('YYYY-MM-DD HH:mm:ss')}<br/>
${i18n.$t('crontabExpression')}${crontab}<br/> ${i18n.$t('crontabExpression')}${crontab}<br/>
${i18n.$t('workflowPublishStatus')}${publishStatusFormat(workFlowPublishStatus)}<br/> ${i18n.$t('workflowPublishStatus')}${publishStatusFormat(workFlowPublishStatus)}<br/>
${i18n.$t('schedulePublishStatus')}${publishStatusFormat(schedulePublishStatus)}<br/> ${i18n.$t('schedulePublishStatus')}${publishStatusFormat(schedulePublishStatus)}<br/>

Loading…
Cancel
Save