mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 21:28:00 +08:00
[Fix][ui] Fix the problem that all pre-tasks are lost after dag reformatting #3823
This commit is contained in:
parent
3b581455fc
commit
6564e96315
@ -135,10 +135,12 @@ Dag.prototype.backfill = function (arg) {
|
||||
const dataObject = {}
|
||||
g.nodes().forEach(function (v) {
|
||||
const node = g.node(v)
|
||||
const location = store.state.dag.locations[node.label]
|
||||
const obj = {}
|
||||
obj.name = node.label
|
||||
obj.name = location.name
|
||||
obj.x = node.x + marginX
|
||||
obj.y = node.y
|
||||
obj.targetarr = location.targetarr
|
||||
dataObject[node.label] = obj
|
||||
})
|
||||
jsPlumb.ready(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user