fangmingyue 2 anni fa
parent
commit
8d2912c866
1 ha cambiato i file con 2 aggiunte e 27 eliminazioni
  1. 2
    27
      src/pages/SystemManagement/Classification/index.jsx

+ 2
- 27
src/pages/SystemManagement/Classification/index.jsx Vedi File

@@ -1,47 +1,23 @@
1 1
 import React, { useState, useEffect, useRef } from 'react';
2
-import { Button, Popconfirm, Modal, Form, Input, message } from 'antd';
3 2
 import { PageHeaderWrapper } from '@ant-design/pro-layout';
4 3
 import PageTable from '@/components/PageTable';
5 4
 
6 5
 export default (props) => {
7
-  const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 } };
8
-  const [form] = Form.useForm();
9
-  const [editModal, setEditModal] = useState(false);
10
-  const [loading, setLoading] = useState(false);
11
-  const [regionId, setRegionId] = useState();
12 6
   const actionRef = useRef();
13 7
 
14 8
   const dataSource = [
15 9
     {
16 10
       key: '1',
17
-      name: '监控记录仪',
18
-      createDate: '2022-06-05',
19
-      status: '',
20
-    },
21
-    {
22
-      key: '2',
23 11
       name: '深松传感器',
24 12
       createDate: '2022-03-27',
25 13
       status: '',
26 14
     },
27 15
     {
28
-      key: '3',
16
+      key: '2',
29 17
       name: '无人机设备',
30 18
       createDate: '2022-03-13',
31 19
       status: '',
32 20
     },
33
-    {
34
-      key: '4',
35
-      name: '',
36
-      createDate: '2022-03-13',
37
-      status: '',
38
-    },
39
-    {
40
-      key: '5',
41
-      name: '',
42
-      createDate: '2022-03-13',
43
-      status: '',
44
-    },
45 21
   ];
46 22
 
47 23
   const columns = [
@@ -54,20 +30,19 @@ export default (props) => {
54 30
       title: '创建时间',
55 31
       dataIndex: 'createDate',
56 32
       key: 'createDate',
57
-      search: false,
58 33
       width: 340,
59 34
     },
60 35
     {
61 36
       title: '状态',
62 37
       dataIndex: 'status',
63 38
       key: 'status',
64
-      search: false,
65 39
     },
66 40
   ];
67 41
 
68 42
   return (
69 43
     <PageHeaderWrapper>
70 44
       <PageTable
45
+        search={false}
71 46
         columns={columns}
72 47
         dataSource={dataSource}
73 48
         actionRef={actionRef}