Browse Source

Merge pull request #3824 from elonlo/bugfix-dag-reformat-miss-pretask

[Fix][ui] Fix the problem that all pre-tasks are lost after dag refor…
pull/3/MERGE
xingchun-chen 4 years ago committed by GitHub
parent
commit
60bf3f8511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 = {} const dataObject = {}
g.nodes().forEach(function (v) { g.nodes().forEach(function (v) {
const node = g.node(v) const node = g.node(v)
const location = store.state.dag.locations[node.label]
const obj = {} const obj = {}
obj.name = node.label obj.name = location.name
obj.x = node.x + marginX obj.x = node.x + marginX
obj.y = node.y obj.y = node.y
obj.targetarr = location.targetarr
dataObject[node.label] = obj dataObject[node.label] = obj
}) })
jsPlumb.ready(() => { jsPlumb.ready(() => {

Loading…
Cancel
Save