|
@@ -0,0 +1,48 @@
|
|
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
|
+
|
|
6
|
+const RegulationList = (props) => {
|
|
7
|
+const actionRef = useRef();
|
|
8
|
+const navigate = useNavigate();
|
|
9
|
+
|
|
10
|
+const columns = [
|
|
11
|
+ {
|
|
12
|
+ title: 'id',
|
|
13
|
+ dataIndex: 'id',
|
|
14
|
+ },
|
|
15
|
+ {
|
|
16
|
+ title: '标题',
|
|
17
|
+ dataIndex: 'title',
|
|
18
|
+ },
|
|
19
|
+
|
|
20
|
+ {
|
|
21
|
+ title: '内容',
|
|
22
|
+ dataIndex: 'content',
|
|
23
|
+ },
|
|
24
|
+
|
|
25
|
+ {
|
|
26
|
+ title: '发布人',
|
|
27
|
+ dataIndex: 'faburen',
|
|
28
|
+ },
|
|
29
|
+ {
|
|
30
|
+ title: '发布时间',
|
|
31
|
+ dataIndex: 'fabutime',
|
|
32
|
+ },
|
|
33
|
+ ];
|
|
34
|
+
|
|
35
|
+ return (
|
|
36
|
+ <PageContainer>
|
|
37
|
+ <ProTable
|
|
38
|
+ search={false}
|
|
39
|
+ actionRef={actionRef}
|
|
40
|
+ rowKey="id"
|
|
41
|
+ // request={queryTable(getBannerList)}
|
|
42
|
+ columns={columns}
|
|
43
|
+ />
|
|
44
|
+ </PageContainer>
|
|
45
|
+ );
|
|
46
|
+}
|
|
47
|
+
|
|
48
|
+export default RegulationList;
|