李志伟 před 2 roky
rodič
revize
44ba9f46b0

+ 0
- 18
config/routes.js Zobrazit soubor

@@ -125,18 +125,6 @@ export default [
125 125
         hideInMenu: true,
126 126
       },
127 127
       // {
128
-      //   path: '/Machinery/GPS',
129
-      //   name: '设备管理',
130
-      //   access: 'device',
131
-      //   component: './Machinery/GPS',
132
-      // },
133
-      // {
134
-      //   path: '/Machinery/GPS/edit.jsx',
135
-      //   name: '设备编辑',
136
-      //   component: './Machinery/GPS/edit.jsx',
137
-      //   hideInMenu: true,
138
-      // },
139
-      // {
140 128
       //   path: '/Machinery/GIS',
141 129
       //   name: '农机GIS',
142 130
       //   access: 'gis',
@@ -204,12 +192,6 @@ export default [
204 192
         access: 'st-work',
205 193
         component: './JobStatistics/Job',
206 194
       },
207
-      // {
208
-      //   path: '/JobStatistics/RevenueExpenditure',
209
-      //   name: '收支统计',
210
-      //   access: 'st-finance',
211
-      //   component: './JobStatistics/RevenueExpenditure',
212
-      // },
213 195
     ],
214 196
   },
215 197
   {

+ 0
- 3
src/pages/JobStatistics/RevenueExpenditure/index.jsx Zobrazit soubor

@@ -1,3 +0,0 @@
1
-export default (props) => {
2
-  return <div>收支统计</div>;
3
-};

+ 0
- 59
src/pages/Machinery/GPS/edit.jsx Zobrazit soubor

@@ -1,59 +0,0 @@
1
-import { Input, Card, Select, Button, message } from 'antd';
2
-import { useEffect, useState } from 'react';
3
-import { Form } from 'antd';
4
-import { history } from 'umi';
5
-import ProCard from '@ant-design/pro-card';
6
-
7
-const { Option } = Select;
8
-const goBack = () => {
9
-  history.goBack();
10
-};
11
-const FormItem = Form.Item;
12
-export default (props) => {
13
-  const [form] = Form.useForm();
14
-  const [loading, setLoading] = useState(false);
15
-
16
-  const formItemLayout = {
17
-    //布局
18
-    labelCol: { span: 6 },
19
-    wrapperCol: { span: 14 },
20
-  };
21
-
22
-  const Submit = (values) => {
23
-    setLoading(false);
24
-  };
25
-
26
-  return (
27
-    <Card>
28
-      <ProCard tabs={{ type: 'card' }} style={{ marginTop: '16px' }}>
29
-        <ProCard.TabPane key={1} tab="设备管理">
30
-          <Form {...formItemLayout} onFinish={Submit} form={form}>
31
-            <FormItem
32
-              label="设备ID"
33
-              name="shopName"
34
-              rules={[{ required: true, message: '请输入' }]}
35
-            >
36
-              <Input placeholder="请输入" style={{ width: '350px' }} />
37
-            </FormItem>
38
-            <FormItem label="设备号" name="title" rules={[{ required: true, message: '请输入' }]}>
39
-              <Input placeholder="请输入" style={{ width: '350px' }} />
40
-            </FormItem>
41
-            <FormItem label=" " colon={false}>
42
-              <Button type="default" onClick={() => goBack()}>
43
-                返回
44
-              </Button>
45
-              <Button
46
-                type="primary"
47
-                loading={loading}
48
-                htmlType="Submit"
49
-                style={{ marginLeft: '4em' }}
50
-              >
51
-                保存
52
-              </Button>
53
-            </FormItem>
54
-          </Form>
55
-        </ProCard.TabPane>
56
-      </ProCard>
57
-    </Card>
58
-  );
59
-};

+ 0
- 99
src/pages/Machinery/GPS/index.jsx Zobrazit soubor

@@ -1,99 +0,0 @@
1
-import { history, Link } from 'umi';
2
-import { useRef } from 'react';
3
-import { Button, message, Popconfirm } from 'antd';
4
-import { PlusOutlined } from '@ant-design/icons';
5
-import { PageHeaderWrapper } from '@ant-design/pro-layout';
6
-import ProTable, { TableDropdown } from '@ant-design/pro-table';
7
-
8
-export default (props) => {
9
-  const dataSource = [
10
-    {
11
-      id: 9,
12
-      key: '1',
13
-      name: '胡彦斌',
14
-      age: 32,
15
-      status: 1,
16
-      zz: '西湖区湖底公园1号',
17
-    },
18
-  ];
19
-
20
-  // 测试内容👆-------------------------
21
-
22
-  const actionRef = useRef();
23
-  const gotoDetail = (id) => {
24
-    history.push(`./GPS/edit.jsx`);
25
-  };
26
-
27
-  const handleDelete = (e) => {
28
-    deleteNote(e.noteId).then((res) => {
29
-      message.success('删除成功');
30
-      actionRef.current.reload();
31
-    }).catch((err) => {
32
-      console.log(err.message)
33
-    });
34
-  };
35
-
36
-  const actions = () => [
37
-    <Button key="add" type="primary" icon={<PlusOutlined />} onClick={() => gotoDetail()}>
38
-      新增
39
-    </Button>,
40
-  ];
41
-  const columns = [
42
-    {
43
-      title: 'ID',
44
-      key: 'zz',
45
-      dataIndex: 'zz',
46
-    },
47
-    {
48
-      title: '设备号',
49
-      dataIndex: 'name',
50
-      key: 'name',
51
-    },
52
-    {
53
-      title: '状态',
54
-      dataIndex: 'status',
55
-      // initialValue: 'all',
56
-      key: 'status',
57
-      valueEnum: {
58
-        0: { text: '已启用', status: 'Success' },
59
-        1: { text: '已禁用', status: 'Error' },
60
-      },
61
-    },
62
-
63
-    {
64
-      title: '操作',
65
-      valueType: 'option',
66
-      key: 'option',
67
-      ellipsis: true,
68
-      width: 200,
69
-      render: (_, record) => [
70
-        <Link key={2} to={`./GPS/edit.jsx`}>
71
-          编辑
72
-        </Link>,
73
-        <Popconfirm
74
-          key={3}
75
-          title="您是否确认删除 ?"
76
-          onConfirm={() => handleDelete(record)}
77
-          okText="确定"
78
-          cancelText="取消"
79
-        >
80
-          <a href="#">删除</a>
81
-        </Popconfirm>,
82
-      ],
83
-    },
84
-  ];
85
-
86
-  return (
87
-    <PageHeaderWrapper>
88
-      {/* <ProTable
89
-        dataSource={dataSource}
90
-        columns={columns}
91
-        // request={getNoteList} 请求
92
-        // rowKey="noteId"
93
-        options={false}
94
-        toolBarRender={actions}
95
-        actionRef={actionRef}
96
-      /> */}
97
-    </PageHeaderWrapper>
98
-  );
99
-};

+ 0
- 11
src/pages/Machinery/Org/index.jsx Zobrazit soubor

@@ -225,20 +225,9 @@ export default (props) => {
225 225
                   ))}
226 226
                 </Select>
227 227
               </FormItem>
228
-              {/* <FormItem
229
-                label="身份"
230
-                name="role"
231
-                rules={[{ required: true, message: '请选择身份' }]}
232
-              >
233
-                <Select placeholder="请选择身份" style={{ width: '350px' }}>
234
-                  <Option value="合作社" key="合作社" />
235
-                  <Option value="个体户" key="个体户" />
236
-                </Select>
237
-              </FormItem> */}
238 228
               <FormItem label="员工数">{listForm?.workerNum || 0}</FormItem>
239 229
               <FormItem label="农机数">{listForm?.machineryNum || 0}</FormItem>
240 230
               <FormItem label="订单完成数">{listForm?.orderNum || 0}</FormItem>
241
-              <FormItem label="评分">{listForm?.score || 0}</FormItem>
242 231
               <FormItem label=" " colon={false}>
243 232
                 <Button type="primary" loading={loading} htmlType="submit">
244 233
                   保存