From b7bd813e35db2a1d37ca04df6f3fa5f600d1bbbd Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Wed, 1 Dec 2021 17:20:43 +0800 Subject: [PATCH] [2.0.1-cherrypick][Feature][Workflow relationship] The page displays null as -. (#7105) * [Feature][Workflow relationship] The page displays `null` as `-`. * [Feature][Workflow relationship] The page displays `null` as `-`. --- .../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 073d73357e..d674b1d13a 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}` })