fix(接口测试): 场景步骤移动问题修复

--bug=1008168 --user=赵勇 【接口自动化】-自定义请求不能添加条件控制器,但是场景外的条件控制器可以拖动到该请求中 https://www.tapd.cn/55049933/s/1093509
This commit is contained in:
fit2-zhao 2022-01-18 17:33:53 +08:00 committed by fit2-zhao
parent d152eda6cc
commit 7a754d9a71
1 changed files with 4 additions and 1 deletions

View File

@ -1299,7 +1299,10 @@ export default {
if (draggingNode.data.disabled && draggingNode.parent && draggingNode.parent.data && draggingNode.parent.data.disabled) { if (draggingNode.data.disabled && draggingNode.parent && draggingNode.parent.data && draggingNode.parent.data.disabled) {
return false; return false;
} }
if (draggingNode && dropNode && draggingNode.level >= dropNode.level) {
return true; return true;
}
return false;
} else if (dropType === "inner" && dropNode.data.referenced !== 'REF' && dropNode.data.referenced !== 'Deleted' } else if (dropType === "inner" && dropNode.data.referenced !== 'REF' && dropNode.data.referenced !== 'Deleted'
&& (this.stepFilter.get(dropNode.data.type) && this.stepFilter.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1)) { && (this.stepFilter.get(dropNode.data.type) && this.stepFilter.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1)) {
return true; return true;