Browse Source

feat: 111

lanjianrong 3 years atrás
parent
commit
41bd0b84d9
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/pages/Institutions/Staff/components/StaffDetail.tsx

+ 4 - 5
src/pages/Institutions/Staff/components/StaffDetail.tsx

@@ -253,11 +253,12 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
           watch={watch}
         />
       )}
-      <div className="ml-137px">
+      <div className="ml-120px">
         {type === ModalType.UPDATE ? (
           <ModalForm
             formRef={formRef}
             title="修改密码"
+            modalProps={{ width: '30vw' }}
             isKeyPressSubmit
             trigger={<Button>重置密码</Button>}
             onFinish={async values => {
@@ -268,8 +269,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
               } catch (error) {
                 return false
               }
-            }}
-          >
+            }}>
             <ProFormText.Password
               label="新密码"
               name="newPassword"
@@ -311,8 +311,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
             className="ml-2"
             onClick={() => {
               form.submit()
-            }}
-          >
+            }}>
             提交
           </Button>
         )}