[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 `-`.2.0.1-release
parent
c158e5790b
commit
b7bd813e35
|
|
@ -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…
Reference in New Issue