瀏覽代碼

fix: 详情和按钮的调整

outaozhen 3 年之前
父節點
當前提交
880ff5e40c
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 4 0
      src/pages/Institutions/Staff/index.tsx
  2. 3 1
      src/pages/Schema/Base/index.tsx

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

@@ -87,6 +87,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
                 account: record.account,
                 name: record.name,
                 gender: record.gender,
+                phone: record.phone,
                 institutionID: record.institution.ID,
                 accountType: record.accountType
               }
@@ -168,7 +169,10 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
                   // ...record,
                   institution: null,
                   ID: record.ID,
+                  account: record.account,
                   name: record.name,
+                  gender: record.gender,
+                  phone: record.phone,
                   institutionID: record.institution.ID,
                   accountType: record.accountType
                 }

+ 3 - 1
src/pages/Schema/Base/index.tsx

@@ -59,7 +59,9 @@ const Index: React.FC<BaseProps> = ({ base, dispatch }) => {
         />
         <div className="w-max-3/4 ml-8 bg-white p-4 shadow-card relative ">
           <div className="text-right mb-4">
-            <Button onClick={() => gotoDetail(state.activeKey, currentSchema?.ID)}>编辑</Button>
+            <Button type="primary" onClick={() => gotoDetail(state.activeKey, currentSchema?.ID)}>
+              编辑
+            </Button>
           </div>
           <div>{currentSchema && <FormRender form={form} schema={currentSchema?.schema} />}</div>
         </div>