fix (接口定义): 批量步骤拖拽恢复
This commit is contained in:
parent
d8c7a3c1d8
commit
a61aaf52b6
|
@ -338,7 +338,6 @@ import "@/common/css/material-icons.css"
|
||||||
import OutsideClick from "@/common/js/outside-click";
|
import OutsideClick from "@/common/js/outside-click";
|
||||||
import {saveScenario} from "@/business/components/api/automation/api-automation";
|
import {saveScenario} from "@/business/components/api/automation/api-automation";
|
||||||
import MsComponentConfig from "./component/ComponentConfig";
|
import MsComponentConfig from "./component/ComponentConfig";
|
||||||
import {ELEMENTS} from "@/business/components/api/automation/scenario/Setting";
|
|
||||||
|
|
||||||
let jsonPath = require('jsonpath');
|
let jsonPath = require('jsonpath');
|
||||||
export default {
|
export default {
|
||||||
|
@ -1177,26 +1176,13 @@ export default {
|
||||||
this.getEnvironments();
|
this.getEnvironments();
|
||||||
},
|
},
|
||||||
allowDrop(draggingNode, dropNode, dropType) {
|
allowDrop(draggingNode, dropNode, dropType) {
|
||||||
if(dropNode.data.disabled){
|
// 增加插件权限控制
|
||||||
return false;
|
if (dropType != "inner") {
|
||||||
}
|
|
||||||
if (dropType != "inner" && !draggingNode.data.disabled) {
|
|
||||||
if (draggingNode.data.referenced) {
|
|
||||||
if (draggingNode.data.referenced !== 'REF' && draggingNode.data.referenced !== 'Deleted') {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (dropType === "inner" && dropNode.data.referenced !== 'REF' && dropNode.data.referenced !== 'Deleted'
|
||||||
return false;
|
&& (this.stepFilter.get(dropNode.data.type) && this.stepFilter.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1)
|
||||||
}
|
&& !draggingNode.data.disabled) {
|
||||||
return true;
|
return true;
|
||||||
} 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;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue