Pārlūkot izejas kodu

Merge branch 'dev' of http://git.ycjcjy.com/jgz/admin into dev

lisenzhou 2 gadus atpakaļ
vecāks
revīzija
d7a7c3b8b7
3 mainītis faili ar 49 papildinājumiem un 6488 dzēšanām
  1. 0
    6488
      package-lock.json
  2. 48
    0
      src/regulation/index.jsx
  3. 1
    0
      src/routes/routes.jsx

+ 0
- 6488
package-lock.json
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 48
- 0
src/regulation/index.jsx Parādīt failu

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

+ 1
- 0
src/routes/routes.jsx Parādīt failu

@@ -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
 import UserList from '@/pages/user';
35 36
 import UserEdit from '@/pages/user/Edit';
36 37
 import PurchasePlanList from "@/pages/purchase/plan/list";