From 1f821ab1a63a2ca851d5a3800c52da8db2c2316e Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Fri, 3 Dec 2021 18:17:03 +0800 Subject: [PATCH] [Feature][Workflow relationship] Format time. (#7142) --- .../pages/projects/pages/kinship/_source/graphGridOption.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGridOption.js b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGridOption.js index 8846477bd9..b8a5184e8c 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGridOption.js +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGridOption.js @@ -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}
- ${i18n.$t('scheduleStartTime')}:${scheduleStartTime}
- ${i18n.$t('scheduleEndTime')}:${scheduleEndTime}
+ ${i18n.$t('scheduleStartTime')}:${dayjs(scheduleStartTime).format('YYYY-MM-DD HH:mm:ss')}
+ ${i18n.$t('scheduleEndTime')}:${dayjs(scheduleEndTime).format('YYYY-MM-DD HH:mm:ss')}
${i18n.$t('crontabExpression')}:${crontab}
${i18n.$t('workflowPublishStatus')}:${publishStatusFormat(workFlowPublishStatus)}
${i18n.$t('schedulePublishStatus')}:${publishStatusFormat(schedulePublishStatus)}