Browse Source

Fix bug #1986. (#1987)

When in the projects define page, click the toolbar's button(task type) will cause the task details window switch to new one.

For now, the task details window will not switch.
pull/2/head
zhukai 5 years ago committed by GitHub
parent
commit
5f3d88e4c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
  2. 19
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js

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

@ -486,6 +486,7 @@
} }
this.taskId = id this.taskId = id
type = type || self.dagBarId
eventModel = this.$drawer({ eventModel = this.$drawer({
closable: false, closable: false,
@ -522,7 +523,7 @@
}, },
props: { props: {
id: id, id: id,
taskType: type || self.dagBarId, taskType: type,
self: self self: self
} }
}) })

19
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js

@ -135,15 +135,6 @@ JSP.prototype.draggable = function () {
helper: 'clone', helper: 'clone',
containment: $('.dag-model'), containment: $('.dag-model'),
stop: function (e, ui) { stop: function (e, ui) {
self.tasksEvent(selfId)
// Dom structure is not generated without pop-up form form
if ($(`#${selfId}`).html()) {
// dag event
findComponentDownward(self.dag.$root, 'dag-chart')._createNodes({
id: selfId
})
}
}, },
drag: function () { drag: function () {
$('body').find('.tooltip.fade.top.in').remove() $('body').find('.tooltip.fade.top.in').remove()
@ -178,6 +169,16 @@ JSP.prototype.draggable = function () {
self.initNode(thisDom[thisDom.length - 1]) self.initNode(thisDom[thisDom.length - 1])
}) })
selfId = id selfId = id
self.tasksEvent(selfId)
// Dom structure is not generated without pop-up form form
if ($(`#${selfId}`).html()) {
// dag event
findComponentDownward(self.dag.$root, 'dag-chart')._createNodes({
id: selfId
})
}
} }
}) })
} }

Loading…
Cancel
Save