未验证 提交 5f3d88e4 编写于 作者: Z zhukai 提交者: GitHub

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.
上级 3d6eee5d
......@@ -486,6 +486,7 @@
}
this.taskId = id
type = type || self.dagBarId
eventModel = this.$drawer({
closable: false,
......@@ -522,7 +523,7 @@
},
props: {
id: id,
taskType: type || self.dagBarId,
taskType: type,
self: self
}
})
......
......@@ -135,15 +135,6 @@ JSP.prototype.draggable = function () {
helper: 'clone',
containment: $('.dag-model'),
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 () {
$('body').find('.tooltip.fade.top.in').remove()
......@@ -178,6 +169,16 @@ JSP.prototype.draggable = function () {
self.initNode(thisDom[thisDom.length - 1])
})
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
})
}
}
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册