Browse Source

[Fix][ui] Fix the problem that all pre-tasks are lost after dag reformatting #3823

pull/3/MERGE
dashi 4 years ago
parent
commit
6564e96315
  1. 4
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js

4
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js

@ -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…
Cancel
Save