Commit 0aba33fd authored by 皮倩雯's avatar 皮倩雯

fix: '修改表字段bug'

parent ee819e2f
Pipeline #46701 passed with stages
in 6 minutes 56 seconds
......@@ -475,9 +475,11 @@ const AddModal = props => {
} else {
setCurrentSelectOrg(e.ID);
}
if (e.node && keepTreeFirst.indexOf(e.node.org.name) != -1) {
if (e.node && keepTreeFirst.indexOf(e.node.org.name) != -1 && e.node.children.length > 0) {
console.log(111);
setShow('none');
} else {
console.log(222);
setShow('block');
}
if (isType != '') {
......
......@@ -274,6 +274,7 @@ const AddModal = props => {
aa.push({ name: item, key: index, ID: index, children: arr[item] });
bb.push(item);
});
console.log(bb);
setKeepTreeFirst(bb);
setTreeData(aa);
setTableData(newArr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment