|
|
@ -4,7 +4,7 @@ import React, { useState, useRef } from 'react'; |
|
|
import { useIntl, FormattedMessage } from 'umi'; |
|
|
import { useIntl, FormattedMessage } from 'umi'; |
|
|
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout'; |
|
|
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout'; |
|
|
import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table'; |
|
|
import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table'; |
|
|
import ProDescriptions from '@ant-design/pro-descriptions'; |
|
|
import ProDescriptions, { ProDescriptionsItemProps } from '@ant-design/pro-descriptions'; |
|
|
import CreateForm from './components/CreateForm'; |
|
|
import CreateForm from './components/CreateForm'; |
|
|
import UpdateForm, { FormValueType } from './components/UpdateForm'; |
|
|
import UpdateForm, { FormValueType } from './components/UpdateForm'; |
|
|
import { TableListItem } from './data.d'; |
|
|
import { TableListItem } from './data.d'; |
|
|
@ -214,7 +214,7 @@ const TableList: React.FC<{}> = () => { |
|
|
labelWidth: 120, |
|
|
labelWidth: 120, |
|
|
}} |
|
|
}} |
|
|
toolBarRender={() => [ |
|
|
toolBarRender={() => [ |
|
|
<Button type="primary" onClick={() => handleModalVisible(true)}> |
|
|
<Button type="primary" key="primary" onClick={() => handleModalVisible(true)}> |
|
|
<PlusOutlined /> <FormattedMessage id="pages.searchTable.new" defaultMessage="新建" /> |
|
|
<PlusOutlined /> <FormattedMessage id="pages.searchTable.new" defaultMessage="新建" /> |
|
|
</Button>, |
|
|
</Button>, |
|
|
]} |
|
|
]} |
|
|
@ -312,7 +312,7 @@ const TableList: React.FC<{}> = () => { |
|
|
params={{ |
|
|
params={{ |
|
|
id: row?.name, |
|
|
id: row?.name, |
|
|
}} |
|
|
}} |
|
|
columns={columns} |
|
|
columns={columns as ProDescriptionsItemProps<TableListItem>[]} |
|
|
/> |
|
|
/> |
|
|
)} |
|
|
)} |
|
|
</Drawer> |
|
|
</Drawer> |
|
|
|