lanjianrong 3 年之前
父節點
當前提交
57ed25731b
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/pages/Institutions/Staff/components/StaffDetail.tsx
  2. 2 0
      src/pages/Institutions/Staff/index.tsx

+ 2 - 0
src/pages/Institutions/Staff/components/StaffDetail.tsx

@@ -138,6 +138,8 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
           account.institutionID = data.institution.name
           account.organizationalStructureID = data.organizationalStructure?.name
         }
+        console.log('11s')
+
         form.setValues({
           ...account
         })

+ 2 - 0
src/pages/Institutions/Staff/index.tsx

@@ -207,6 +207,8 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
                   currentModalType: ModalType.ADD,
                   defaultFormData: {
                     ...state.defaultFormData,
+                    dataID: null,
+                    institutionID: null,
                     institutionDisable: false,
                     hiddenOrganization: true
                   }