Browse Source

🐞 fix: 添加设备id

添加设备id

添加设备id
tags/小炒逻辑变更前
txb 2 years ago
parent
commit
16240ccf7c
2 changed files with 25 additions and 20 deletions
  1. +2
    -2
      src/pages/device/deviceInfo/components/CreateForm.jsx
  2. +23
    -18
      src/pages/device/deviceInfo/index.jsx

+ 2
- 2
src/pages/device/deviceInfo/components/CreateForm.jsx View File

@@ -71,10 +71,10 @@ const CreateForm = (props) => {
</OptGroup>
</Select>
</Form.Item>
<Form.Item label={'坐标'} name="deviceLoc" rules={[{ required: true }]}>
<Form.Item label={'设备坐标'} name="deviceLoc">
<Input />
</Form.Item>
<Form.Item label={'设备地址'} name="deviceAddr" rules={[{ required: true }]}>
<Form.Item label={'设备详细地址'} name="deviceAddr">
<Input />
</Form.Item>
<Form.Item>


+ 23
- 18
src/pages/device/deviceInfo/index.jsx View File

@@ -168,43 +168,48 @@ const GoodsTypeManage = () => {
dataIndex: 'deviceTypeKey',
valueEnum: dicDataAny,
},
{
title: '设备唯一id',
dataIndex: 'autoKey',
search: false,
},
{
title: '归属门店',
dataIndex: 'orgId',
search: false,
valueEnum: OrgListArray,
},
{
title: '设备地址',
dataIndex: 'deviceAddr',
search: false,
valueType: 'textarea',
},
{
title: '设备分类',
dataIndex: 'deviceTypeId',
valueEnum: storeType,
},

{
title: '状态',
dataIndex: 'status',
valueEnum: {
0: { text: '正常', status: 'Processing' },
1: { text: '停用', status: 'Success' },
},
},

{
title: '设备地址',
dataIndex: 'deviceAddr',
search: false,
valueType: 'textarea',
},
{
title: '坐标',
dataIndex: 'deviceLoc',
valueType: 'textarea',
search: false,
},

{
title: '设备唯一key',
dataIndex: 'autoKey',
search: false,
},
{
title: '状态',
dataIndex: 'status',
valueEnum: {
0: { text: '正常', status: 'Processing' },
1: { text: '停用', status: 'Success' },
},
title: '归属门店唯一key',
dataIndex: 'orgKey',
search: false,
},
{
title: '操作',


Loading…
Cancel
Save