|
@@ -48,7 +48,7 @@ const Organization = props => {
|
|
|
}
|
|
}
|
|
|
return (
|
|
return (
|
|
|
<div
|
|
<div
|
|
|
- className="w-12rem rounded-4px"
|
|
|
|
|
|
|
+ className="w-12rem rounded-4px flex flex-col h-full"
|
|
|
style={{
|
|
style={{
|
|
|
height: `calc(100vh - 96px)`,
|
|
height: `calc(100vh - 96px)`,
|
|
|
overflowY: 'auto'
|
|
overflowY: 'auto'
|
|
@@ -56,7 +56,7 @@ const Organization = props => {
|
|
|
<div className="p-4 border-b-1 border-solid border-black border-opacity-10 bg-[#f7f9fa]">
|
|
<div className="p-4 border-b-1 border-solid border-black border-opacity-10 bg-[#f7f9fa]">
|
|
|
<span className="text-[0.9375rem]">组织架构</span>
|
|
<span className="text-[0.9375rem]">组织架构</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div className="py-4 pt-4 bg-white" style={{ height: 'calc(100% - 1rem*2 - 21px)' }}>
|
|
|
|
|
|
|
+ <div className="py-4 bg-white flex-1">
|
|
|
{departments.length ? (
|
|
{departments.length ? (
|
|
|
<DirectoryTree
|
|
<DirectoryTree
|
|
|
multiple
|
|
multiple
|