fix:搜索

This commit is contained in:
zsqtony 2025-07-01 09:35:27 +08:00
parent 3e0e4ed472
commit 0c0e06bfe8
2 changed files with 5 additions and 15 deletions

View File

@ -17,7 +17,6 @@ export default function Index({ title = '机构管理' }) {
<MyPageContainer title={title}> <MyPageContainer title={title}>
<ProTable <ProTable
{...MyProTableProps.props} {...MyProTableProps.props}
search={false}
request={async (params, sort) => request={async (params, sort) =>
MyProTableProps.request(params, sort, Apis.Company.Companies.List) MyProTableProps.request(params, sort, Apis.Company.Companies.List)
} }
@ -32,30 +31,20 @@ export default function Index({ title = '机构管理' }) {
valueEnum: CompaniesMerchantTypeEnum, valueEnum: CompaniesMerchantTypeEnum,
}), }),
{ {
title: '组织名称', title: '机构名称',
dataIndex: 'name', dataIndex: 'name',
}, },
{ {
title: '组织简称', title: '组织简称',
dataIndex: 'short_name', dataIndex: 'short_name',
search: false,
}, },
{ {
title: '营业执照号', title: '营业执照号',
dataIndex: 'business_license_number', dataIndex: 'business_license_number',
search: false,
}, },
// {
// title: '联系人',
// dataIndex: 'contact_name',
// },
// {
// title: '手机号',
// dataIndex: 'contact_phone',
// },
// {
// title: '联系人邮箱',
// dataIndex: 'contact_email',
// },
MyColumns.UpdatedAt(), MyColumns.UpdatedAt(),
// MyColumns.CreatedAt(), // MyColumns.CreatedAt(),
MyColumns.Option({ MyColumns.Option({

View File

@ -15,7 +15,6 @@ export default function Index({ title = '管理员' }) {
<MyPageContainer title={title}> <MyPageContainer title={title}>
<ProTable <ProTable
{...MyProTableProps.props} {...MyProTableProps.props}
search={false}
request={async (params, sort) => request={async (params, sort) =>
MyProTableProps.request( MyProTableProps.request(
params, params,
@ -39,10 +38,12 @@ export default function Index({ title = '管理员' }) {
{ {
title: '机构', title: '机构',
dataIndex: ['company', 'name'], dataIndex: ['company', 'name'],
search: false,
}, },
{ {
title: '组织', title: '组织',
dataIndex: ['organization', 'name'], dataIndex: ['organization', 'name'],
search: false,
}, },
MyColumns.UpdatedAt(), MyColumns.UpdatedAt(),
MyColumns.CreatedAt(), MyColumns.CreatedAt(),