1
0

index.tsx 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import React from 'react';
  2. import { PageContainer } from '@ant-design/pro-components';
  3. import { Card, Form, Input } from 'antd';
  4. // import type {ColumnsType} from "antd/es/table";
  5. // interface DataType {
  6. // record_id: string;
  7. // name: string;
  8. // }
  9. const LogManagement: React.FC = () => {
  10. const [form] = Form.useForm();
  11. // const [pagination, setPagination] = useState({ total: 0, current: 1, pageSize: 10 });
  12. // const [loading, setLoading] = useState(false);
  13. // const [dataList , setDataList ] = useState([]);
  14. const onFinish = () => {};
  15. // const tableChange = () =>{
  16. //
  17. // }
  18. //
  19. // const columns: ColumnsType<DataType> = [
  20. // {
  21. // title: '序号',
  22. // align: 'center',
  23. // key: 'index',
  24. // render: (_: any, row: any, index: number) => index + 1,
  25. // },
  26. // {
  27. // title: '名称',
  28. // dataIndex: 'name',
  29. // key: 'name',
  30. // },
  31. // {
  32. // title: '运行时间',
  33. // dataIndex: 'start_time',
  34. // key: 'start_time',
  35. // },
  36. // {
  37. // title: '结束时间',
  38. // dataIndex: 'end_time',
  39. // key: 'end_time',
  40. // },
  41. // ]
  42. // const paginationProps = {
  43. // showSizeChanger: true,
  44. // showQuickJumper: true,
  45. // showTotal: (total: number) => {
  46. // return <span> 共 {total}条 </span>;
  47. // },
  48. // ...pagination,
  49. // };
  50. return (
  51. <PageContainer>
  52. <div>
  53. <Card>
  54. <Form form={form} layout="inline" onFinish={onFinish}>
  55. <Form.Item name="like_name" label="名称">
  56. <Input placeholder="请输入名称" />
  57. </Form.Item>
  58. </Form>
  59. {/*<Table*/}
  60. {/* columns={columns}*/}
  61. {/* dataSource={dataList}*/}
  62. {/* rowKey={(record) => record.record_id}*/}
  63. {/* pagination={paginationProps}*/}
  64. {/* loading={loading}*/}
  65. {/* onChange={tableChange}*/}
  66. {/* style={{ margin:'20px 0'}}*/}
  67. {/*/>*/}
  68. </Card>
  69. </div>
  70. </PageContainer>
  71. );
  72. };
  73. export default LogManagement;