diff --git a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue index 7c56c946e3..a641bdb39f 100644 --- a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue +++ b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue @@ -62,7 +62,7 @@ import { isModuleNodeData, listenBeforeExecCommand, listenDblclick, - listenNodeSelected, + listenNodeSelected, loadNode, loadSelectNodes, priorityDisableCheck, tagEditCheck, @@ -276,6 +276,11 @@ export default { // 设置完标签后,优先级显示有问题,重新设置下 setTimeout(() => setPriorityView(true, 'P'), 100); } + + if ('movetoparent' === even.commandName) { + // 拖入的节点尚未加载时,加载节点 + loadNode(even.commandArgs[1], this.getParam(), getTestCasesForMinder, null, getMinderExtraNode); + } }); addIssueHotBox(this); diff --git a/test-track/frontend/src/business/common/minder/minderUtils.js b/test-track/frontend/src/business/common/minder/minderUtils.js index dde8bc2014..cdde8e8c13 100644 --- a/test-track/frontend/src/business/common/minder/minderUtils.js +++ b/test-track/frontend/src/business/common/minder/minderUtils.js @@ -411,7 +411,7 @@ function _appendExtraNodes(parent, data) { } /** - * 去掉已有节点 + * 清理子节点中的tmp节点 * @param parent */ function clearChildren(node) { @@ -419,7 +419,7 @@ function clearChildren(node) { if (children) { for (let i = 0; i < children.length; i++) { let item = children[i]; - if (item.data.type !== 'node') { + if (item.data.type === 'tmp') { window.minder.removeNode(item); i--; }