Ver código fonte

fix: 临时处理人资组织架构与表格宽度在侧边栏折叠收起的冲突

lanjianrong 4 anos atrás
pai
commit
82bbff2981

+ 2 - 2
src/pages/Hr/Employee/components/RoleMenu/index.jsx

@@ -51,7 +51,7 @@ const RoleMenu = props => {
   const hasPerm = useAccess()?.validatePermByType('employee_add_department')
 
   return (
-    <div className="h-full w-max-234px rounded-4px">
+    <div className="h-full w-12rem rounded-4px">
       <div className="p-4 pb-3 border-b-1 border-solid border-black border-opacity-10 bg-[#f7f9fa] flex justify-around items-center">
         <span className="text-[0.9375rem]">组织架构</span>
         {hasPerm && (
@@ -90,7 +90,7 @@ const RoleMenu = props => {
           </ModalDragForm>
         )}
       </div>
-      <div className="p-4 bg-white" style={{ height: 'calc(100% - 1rem*2 - 20px)' }}>
+      <div className="py-4 pt-4 bg-white" style={{ height: 'calc(100% - 1rem*2 - 20px)' }}>
         {departments.length ? (
           <DirectoryTree
             multiple

+ 1 - 1
src/pages/Hr/Employee/index.jsx

@@ -114,7 +114,7 @@ const Employee = props => {
   return (
     <div className="h-full w-full flex flex-row">
       <RoleMenu onSelect={onSelect} />
-      <div className="w-full">
+      <div style={{ width: 'calc(100% - 12rem)' }}>
         <div className="ml-8 shadow-hex-3e2c5a">
           {/* <div className="absolute right-33 top-3 z-100">
             {hasPerm && state.params.id && (