方明岳 2 vuotta sitten
vanhempi
commit
5e4cab48c4
3 muutettua tiedostoa jossa 3890 lisäystä ja 441 poistoa
  1. 3840
    440
      package-lock.json
  2. 48
    0
      src/regulation/index.jsx
  3. 2
    1
      src/routes/routes.jsx

+ 3840
- 440
package-lock.json
File diff suppressed because it is too large
Näytä tiedosto


+ 48
- 0
src/regulation/index.jsx Näytä tiedosto

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;

+ 2
- 1
src/routes/routes.jsx Näytä tiedosto

31
 import RotationChartEdit from '@/pages/rotationChart/edit';
31
 import RotationChartEdit from '@/pages/rotationChart/edit';
32
 import RotationChartIntroduction from '@/pages/rotationChart/introduction';
32
 import RotationChartIntroduction from '@/pages/rotationChart/introduction';
33
 import Roles from '@/pages/roles/index';
33
 import Roles from '@/pages/roles/index';
34
+import RegulationList from '@/regulation';
34
 
35
 
35
 /**
36
 /**
36
  * meta 用来扩展自定义数据数据
37
  * meta 用来扩展自定义数据数据
202
           },
203
           },
203
           {
204
           {
204
             path: 'regulation',
205
             path: 'regulation',
205
-            element: null,
206
+            element: <RegulationList />,
206
             meta: {
207
             meta: {
207
               title: '规章制度',
208
               title: '规章制度',
208
             },
209
             },