diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js index 0037af68b6a1a9f50e932ee65135f646b08e5f66..e3e6a1feeb17aa88251473b9eccb673c08c43f81 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js @@ -627,6 +627,7 @@ JSP.prototype.saveStore = function () { tasks.push(tasksParam) } }) + console.log(store.state.dag.connects.length, this.JspInstance.getConnections().length) if (store.state.dag.connects.length === this.JspInstance.getConnections().length) { _.map(store.state.dag.connects, u => { connects.push({ @@ -658,6 +659,14 @@ JSP.prototype.saveStore = function () { label: v._jsPlumb.overlays.label.canvas.innerText }) }) + } else if (store.state.dag.connects.length > this.JspInstance.getConnections().length) { + _.map(this.JspInstance.getConnections(), v => { + connects.push({ + endPointSourceId: v.sourceId, + endPointTargetId: v.targetId, + label: v._jsPlumb.overlays.label.canvas.innerText + }) + }) } _.map(tasksAll(), v => {