Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,12 @@
}
return
}
if (!states[id]) return
if (!states[id]) {
if (children) {
this.nodeAddStatus(children, this.getAllChildrenStatus(this.nodeDisplayStatus.children))
}
return
}
const nodeState = states[id].skip ? 'SKIP' : states[id].state
this.$set(node, 'state', nodeState)
if (this.subNodesExpanded.includes(node.id)) {
Expand Down Expand Up @@ -1554,6 +1559,28 @@
const resizeProxy = this.$refs.resizeProxy
resizeProxy.style.visibility = 'visible'
},
getAllChildrenStatus (statusData) {
const allChildrenStatus = {}
const collectChildren = (children) => {
if (!children || typeof children !== 'object') {
return
}
Object.keys(children).forEach(nodeId => {
const nodeStatus = children[nodeId]
if (nodeStatus && nodeStatus.id) {
allChildrenStatus[nodeId] = nodeStatus
if (nodeStatus.children
&& typeof nodeStatus.children === 'object'
&& Object.keys(nodeStatus.children).length > 0) {
collectChildren(nodeStatus.children)
}
}
})
}
collectChildren(statusData)

return allChildrenStatus
},
handleMouseUp () {
const resizeMask = this.$refs.resizeMask
const resizeProxy = this.$refs.resizeProxy
Expand Down
Loading