index.jsx 910B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { PageContainer, ProTable } from '@ant-design/pro-components';
  2. import { useRef, useState } from 'react';
  3. import { useNavigate } from 'react-router-dom';
  4. import { queryTable } from '@/utils/request';
  5. const RegulationList = (props) => {
  6. const actionRef = useRef();
  7. const navigate = useNavigate();
  8. const columns = [
  9. {
  10. title: 'id',
  11. dataIndex: 'id',
  12. },
  13. {
  14. title: '标题',
  15. dataIndex: 'title',
  16. },
  17. {
  18. title: '内容',
  19. dataIndex: 'content',
  20. },
  21. {
  22. title: '发布人',
  23. dataIndex: 'faburen',
  24. },
  25. {
  26. title: '发布时间',
  27. dataIndex: 'fabutime',
  28. },
  29. ];
  30. return (
  31. <PageContainer>
  32. <ProTable
  33. search={false}
  34. actionRef={actionRef}
  35. rowKey="id"
  36. // request={queryTable(getBannerList)}
  37. columns={columns}
  38. />
  39. </PageContainer>
  40. );
  41. }
  42. export default RegulationList;