Browse Source

[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 `-`.
3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
d2666d6739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/kinship/_source/graphGrid.vue

15
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}` })

Loading…
Cancel
Save