方明岳 2 years ago
parent
commit
5e4cab48c4
3 changed files with 3890 additions and 441 deletions
  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
View File


+ 48
- 0
src/regulation/index.jsx View File

@@ -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;

+ 2
- 1
src/routes/routes.jsx View File

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