|
|
@@ -1,5 +1,5 @@ |
|
|
|
import React, { useState, useEffect } from 'react'; |
|
|
|
import { Modal, Form, Input, Button, Select, TreeSelect } from 'antd'; |
|
|
|
import { Modal, Form, Input, Button, Select, TreeSelect,InputNumber } from 'antd'; |
|
|
|
|
|
|
|
const CreateForm = (props) => { |
|
|
|
const { Option, OptGroup } = Select; |
|
|
@@ -82,6 +82,9 @@ const CreateForm = (props) => { |
|
|
|
) : null |
|
|
|
} |
|
|
|
</Form.Item> |
|
|
|
<Form.Item label={'设备坐标'} name="deviceLoc"> |
|
|
|
<Input placeholder="104.070734,30.575041" /> |
|
|
|
</Form.Item> |
|
|
|
<Form.Item label={'状态'} name="status" rules={[{ required: true }]}> |
|
|
|
<Select placeholder="请选择状态"> |
|
|
|
<OptGroup> |
|
|
@@ -90,8 +93,8 @@ const CreateForm = (props) => { |
|
|
|
</OptGroup> |
|
|
|
</Select> |
|
|
|
</Form.Item> |
|
|
|
<Form.Item label={'设备坐标'} name="deviceLoc"> |
|
|
|
<Input placeholder="104.070734,30.575041" /> |
|
|
|
<Form.Item label={'设备物料数量'} name="materialQuantity"> |
|
|
|
<InputNumber /> |
|
|
|
</Form.Item> |
|
|
|
<Form.Item label={'设备详细地址'} name="deviceAddr"> |
|
|
|
<Input placeholder="成都市武侯区桂溪街道环球中心N5-9111C" /> |
|
|
|