瀏覽代碼

feat: 1111

lanjianrong 3 年之前
父節點
當前提交
afaedf01ec

+ 3 - 3
src/pages/Institutions/Staff/components/DebounceSelect.tsx

@@ -60,9 +60,9 @@ function DebounceSelect<
     if (v) {
       onChange(v)
     }
-    setTimeout(() => {
-      console.log(state.options)
-    }, 500)
+    // setTimeout(() => {
+    //   console.log(state.options)
+    // }, 500)
   }
   // console.log(state.options)
 

+ 1 - 1
src/pages/Institutions/Staff/components/StaffDrawer.tsx

@@ -148,7 +148,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
         // enum: accountTypeList.map(item => item.value),
         // enumNames: accountTypeList.map(item => item.label)
       })
-      form.setSchemaByPath('institutionID', {
+      form.setSchemaByPath('institution', {
         type: 'string',
         widget: 'site'
       })

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

@@ -120,8 +120,9 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
                 visible: true,
                 currentModalType: ModalType.UPDATE,
                 defaultFormData: {
-                  ...record,
+                  // ...record,
                   institution: null,
+
                   institutionID: record.institution.ID,
                   accountType: record.accountType
                 }