From 3304edee47947e0b5a2a9445fe602133efc3d5d7 Mon Sep 17 00:00:00 2001
From: songjianet <1778651752@qq.com>
Date: Fri, 3 Dec 2021 10:02:33 +0800
Subject: [PATCH] [Feature][Workflow relationship] Format time. (#7123)
---
.../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 a63ddfbdc0..907a54e6b6 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
@@ -72,8 +73,8 @@ export default function (locations, links, sourceWorkFlowCode, isShowLabel) {
const { name, scheduleStartTime, scheduleEndTime, crontab, workFlowPublishStatus, schedulePublishStatus } = params.data
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)}