Browse Source

[Feature][Workflow relationship] Increase the multilingual judgment of the state. (#6954)

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

8
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') },
@ -71,8 +75,8 @@ export default function (locations, links, sourceWorkFlowCode, isShowLabel) {
${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',

Loading…
Cancel
Save