fix (接口自动化): 修复引用场景被修复后执行不成功问题
--bug=1006431 --user=赵勇 【github#5963】引用的... https://www.tapd.cn/55049933/s/1045957
This commit is contained in:
parent
58009a10c0
commit
a6abadd490
|
@ -1177,15 +1177,18 @@ export default {
|
|||
this.getEnvironments();
|
||||
},
|
||||
allowDrop(draggingNode, dropNode, dropType) {
|
||||
if(dropNode.data.disabled){
|
||||
return false;
|
||||
}
|
||||
if (dropType != "inner" && !draggingNode.data.disabled) {
|
||||
if (draggingNode.data.referenced) {
|
||||
if (draggingNode.data.referenced !== 'REF' && draggingNode.data.referenced !== 'Deleted' && !draggingNode.data.disabled) {
|
||||
if (draggingNode.data.referenced !== 'REF' && draggingNode.data.referenced !== 'Deleted') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} else if (dropType === "inner" && ELEMENTS.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1 && !dropNode.data.disabled) {
|
||||
} else if (dropType === "inner" && ELEMENTS.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1) {
|
||||
if (dropNode.data.referenced) {
|
||||
if (dropNode.data.referenced !== 'REF' && dropNode.data.referenced !== 'Deleted') {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue