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

This commit is contained in:
songjianet 2021-12-03 18:17:03 +08:00 committed by GitHub
parent 548f43dc26
commit 1f821ab1a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

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