李志伟 2 年之前
父節點
當前提交
c4175fc165
共有 2 個文件被更改,包括 2 次插入23 次删除
  1. 1
    5
      src/pages/Machinery/GIS/components/WorkListModel.jsx
  2. 1
    18
      src/pages/Machinery/GIS/detail.jsx

+ 1
- 5
src/pages/Machinery/GIS/components/WorkListModel.jsx 查看文件

@@ -1,13 +1,9 @@
1 1
 import {
2 2
   Button,
3 3
   Modal,
4
-  Form,
5
-  Input,
6 4
   DatePicker,
7
-  Radio,
8
-  Select,
9 5
 } from 'antd';
10
-import { useEffect, useState, useRef } from 'react';
6
+import { useState, useRef } from 'react';
11 7
 import PageTable from '@/components/PageTable';
12 8
 import moment from 'moment';
13 9
 import { history } from 'umi';

+ 1
- 18
src/pages/Machinery/GIS/detail.jsx 查看文件

@@ -1,13 +1,10 @@
1 1
 import { PageHeaderWrapper } from '@ant-design/pro-layout';
2
-import { Card, Form, Button, Descriptions } from 'antd';
2
+import { Card, Button, Descriptions } from 'antd';
3 3
 import { useEffect, useState } from 'react';
4 4
 import { getJobDetail } from '@/services/job'
5 5
 import moment from 'moment';
6 6
 import { history } from 'umi';
7 7
 
8
-
9
-
10
-const FormItem = Form.Item;
11 8
 const goBack = () => {
12 9
   history.goBack();
13 10
 };
@@ -39,20 +36,6 @@ export default (props) => {
39 36
           <Descriptions.Item label="作业面积">{workInfo?.area}</Descriptions.Item>
40 37
           <Descriptions.Item label="作业时间">{formatterTime(workInfo?.startDate)}~{formatterTime(workInfo?.endDate)}</Descriptions.Item>
41 38
         </Descriptions>
42
-        {/* <Form >
43
-          <FormItem label="订单号">{workInfo?.orderNo}</FormItem>
44
-          <FormItem label="合作社">{workInfo?.orgName}</FormItem>
45
-          <FormItem label="农机">{workInfo?.machineryName}</FormItem>
46
-          <FormItem label="农机手">{workInfo?.workerName}</FormItem>
47
-          <FormItem label="作业面积">{workInfo?.area}亩</FormItem>
48
-          <FormItem label="作业时间">{formatterTime(workInfo?.startDate)}~{formatterTime(workInfo?.endDate)}</FormItem>
49
-          <FormItem label=" " colon={false}>
50
-            <Button type="default" onClick={() => goBack()}>
51
-              返回
52
-            </Button>
53
-          </FormItem>
54
-        </Form> */}
55
-
56 39
       </Card>
57 40
     </PageHeaderWrapper>
58 41
   );