checkForm(data) {
let name = {};
let isCheck = false;
function irCheckForm(data, j = 0) {
if (data && data.length) {
let len = data.length;
name[j] = "";
for (let i = 0; i < len; i++) {
let item = data[i];
if (!name[j]) {
name[j] = [];
}
if (name[j].includes(data[i].fieldName)) {
isCheck = true;
} else {
name[j].push(data[i].fieldName);
}
if (item.childList && item.childList.length) {
irCheckForm(item.childList, j + "" + i);
}
}
}
}
irCheckForm(data);
if (isCheck == true) {
this.indisplay = true;
} else {
this.indisplay = false;
}
},```
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31