This is an automated email from the ASF dual-hosted git repository.
leonbao pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new d2666d6 [Feature][Workflow relationship] The page displays `null` as
`-`. (#6934)
d2666d6 is described below
commit d2666d67391d541468bbfa4fe49dcbd8c4fe2300
Author: songjianet <[email protected]>
AuthorDate: Sat Nov 20 22:59:18 2021 +0800
[Feature][Workflow relationship] The page displays `null` as `-`. (#6934)
* [Feature][Workflow relationship] The page displays `null` as `-`.
* [Feature][Workflow relationship] The page displays `null` as `-`.
---
.../pages/projects/pages/kinship/_source/graphGrid.vue | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git
a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGrid.vue
b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGrid.vue
index 073d733..d674b1d 100644
---
a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGrid.vue
+++
b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGrid.vue
@@ -38,7 +38,20 @@
},
mounted () {
const graphGrid = echarts.init(this.$refs['graph-grid'])
- graphGrid.setOption(graphGridOption(this.locations, this.connects,
this.sourceWorkFlowCode, this.isShowLabel), true)
+ graphGrid.setOption(
+ graphGridOption(
+ this.locations.map(item => {
+ item.crontab = item.crontab !== null ? item.crontab : '-'
+ item.scheduleEndTime = item.scheduleEndTime !== null ?
item.scheduleEndTime : '-'
+ item.scheduleStartTime = item.scheduleStartTime !== null ?
item.scheduleStartTime : '-'
+ return item
+ }),
+ this.connects,
+ this.sourceWorkFlowCode,
+ this.isShowLabel
+ ),
+ true
+ )
graphGrid.on('click', (params) => {
// Jump to the definition page
this.$router.push({ path:
`/projects/${this.projectCode}/definition/list/${params.data.code}` })