fix(接口自动化): 修复循环控制器下结果展示不全问题
This commit is contained in:
parent
5d3e84edfb
commit
c1de9186c1
|
@ -160,14 +160,15 @@ export default {
|
||||||
for (let i = 0; i < arrValue.length; i++) {
|
for (let i = 0; i < arrValue.length; i++) {
|
||||||
let obj = {resId: item.resId, index: i, label: item.resId, value: arrValue[i], children: []};
|
let obj = {resId: item.resId, index: i, label: item.resId, value: arrValue[i], children: []};
|
||||||
let isAdd = true;
|
let isAdd = true;
|
||||||
arr.forEach(obj => {
|
for (let h = 0; h < arr.length; h++) {
|
||||||
if (obj.value.name === arrValue[i].name) {
|
let node = arr [h];
|
||||||
|
if (node.value.name === arrValue[i].name) {
|
||||||
isAdd = false;
|
isAdd = false;
|
||||||
}
|
}
|
||||||
if (obj.value.name.indexOf("循环-") === -1) {
|
if (node.resId === arrValue[i].resourceId && node.value.unexecute) {
|
||||||
arr.splice(0, 1);
|
arr.splice(h, 1);
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
if (isAdd) {
|
if (isAdd) {
|
||||||
arr.push(obj);
|
arr.push(obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue