Commit e6206ea2 authored by 皮倩雯's avatar 皮倩雯

fix: '字段形态配置修改'

parent 614f64fe
Pipeline #53205 waiting for manual action with stages
...@@ -63,9 +63,12 @@ const AddModal = props => { ...@@ -63,9 +63,12 @@ const AddModal = props => {
const [selectGroup, setSelectGroup] = useState([]); const [selectGroup, setSelectGroup] = useState([]);
const editor = record => { const editor = record => {
setIsType('edit'); console.log(record);
setIsVisible(true); if (!record.children) {
setItemData(record); setIsType('edit');
setIsVisible(true);
setItemData(record);
}
}; };
const Submit = prop => { const Submit = prop => {
setIsVisible(false); setIsVisible(false);
...@@ -571,6 +574,7 @@ const AddModal = props => { ...@@ -571,6 +574,7 @@ const AddModal = props => {
} }
}; };
const mapTree = org => { const mapTree = org => {
console.log(org);
const haveChildren = Array.isArray(org.children) && org.children.length > 0; const haveChildren = Array.isArray(org.children) && org.children.length > 0;
return haveChildren ? ( return haveChildren ? (
<TreeNode value={org.name} title={org.name} disabled> <TreeNode value={org.name} title={org.name} disabled>
......
...@@ -244,6 +244,7 @@ const TableManager = props => { ...@@ -244,6 +244,7 @@ const TableManager = props => {
} }
} }
setKeepTreeFirst(bb); setKeepTreeFirst(bb);
console.log(aa);
setKeepTreeSelect(aa); setKeepTreeSelect(aa);
initNum.current += 1; initNum.current += 1;
} }
......
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