You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/12/01 09:38:53 UTC
[dolphinscheduler] branch 2.0.1-prepare updated: [Feature][Workflow relationship] Increase the multilingual judgment of the state. (#7106)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch 2.0.1-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/2.0.1-prepare by this push:
new a20462a [Feature][Workflow relationship] Increase the multilingual judgment of the state. (#7106)
a20462a is described below
commit a20462a81c89288a6b6732348da36aa543c634c1
Author: songjianet <17...@qq.com>
AuthorDate: Wed Dec 1 17:38:45 2021 +0800
[Feature][Workflow relationship] Increase the multilingual judgment of the state. (#7106)
---
.../home/pages/projects/pages/kinship/_source/graphGridOption.js | 9 +++++++--
1 file changed, 7 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 4bbcc3b..516abaf 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
@@ -30,6 +30,10 @@ const getCategory = (categoryDic, { workFlowPublishStatus, schedulePublishStatus
}
}
+const publishStatusFormat = (status) => {
+ return status === 0 || status === '0' ? i18n.$t('offline') : status === 1 || status === '1' ? i18n.$t('online') : '-'
+}
+
export default function (locations, links, sourceWorkFlowCode, isShowLabel) {
const categoryDic = {
active: { color: '#2D8DF0', category: i18n.$t('KinshipStateActive') },
@@ -66,13 +70,14 @@ export default function (locations, links, sourceWorkFlowCode, isShowLabel) {
formatter: (params) => {
if (!params.data.name) return ''
const { name, scheduleStartTime, scheduleEndTime, crontab, workFlowPublishStatus, schedulePublishStatus } = params.data
+
return `
${i18n.$t('workflowName')}:${name}<br/>
${i18n.$t('scheduleStartTime')}:${scheduleStartTime}<br/>
${i18n.$t('scheduleEndTime')}:${scheduleEndTime}<br/>
${i18n.$t('crontabExpression')}:${crontab}<br/>
- ${i18n.$t('workflowPublishStatus')}:${workFlowPublishStatus}<br/>
- ${i18n.$t('schedulePublishStatus')}:${schedulePublishStatus}<br/>
+ ${i18n.$t('workflowPublishStatus')}:${publishStatusFormat(workFlowPublishStatus)}<br/>
+ ${i18n.$t('schedulePublishStatus')}:${publishStatusFormat(schedulePublishStatus)}<br/>
`
},
color: '#2D303A',