From 6564e96315b1a9011ea9c97145450df5c59f318f Mon Sep 17 00:00:00 2001 From: dashi Date: Fri, 25 Sep 2020 17:51:28 +0800 Subject: [PATCH] [Fix][ui] Fix the problem that all pre-tasks are lost after dag reformatting #3823 --- dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js index d7f2f78a0c..74671cca57 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js +++ b/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(() => {