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 => { ...@@ -475,9 +475,11 @@ const AddModal = props => {
} else { } else {
setCurrentSelectOrg(e.ID); 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'); setShow('none');
} else { } else {
console.log(222);
setShow('block'); setShow('block');
} }
if (isType != '') { if (isType != '') {
......
...@@ -274,6 +274,7 @@ const AddModal = props => { ...@@ -274,6 +274,7 @@ const AddModal = props => {
aa.push({ name: item, key: index, ID: index, children: arr[item] }); aa.push({ name: item, key: index, ID: index, children: arr[item] });
bb.push(item); bb.push(item);
}); });
console.log(bb);
setKeepTreeFirst(bb); setKeepTreeFirst(bb);
setTreeData(aa); setTreeData(aa);
setTableData(newArr); 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