소스 검색

Merge branch 'master' of http://git.ycjcjy.com/nanyang/machinery-admin

Yansen 2 년 전
부모
커밋
866a7fa367
1개의 변경된 파일2개의 추가작업 그리고 27개의 파일을 삭제
  1. 2
    27
      src/pages/SystemManagement/Classification/index.jsx

+ 2
- 27
src/pages/SystemManagement/Classification/index.jsx 파일 보기

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