Commit e30e59d9a2e574efdcf35ef4cc29a7f47a838d3d
1 parent
0b005d31
fix: device detail add device select gateway device use tbDeviceId field
Showing
1 changed file
with
1 additions
and
5 deletions
| ... | ... | @@ -146,17 +146,13 @@ export const step1Schemas: FormSchema[] = [ |
| 146 | 146 | componentProps: ({ formModel }) => { |
| 147 | 147 | const { organizationId, transportType } = formModel; |
| 148 | 148 | return { |
| 149 | - // api: async (params: Record<'transportType' | 'organizationId', string>) => { | |
| 150 | - // const options = await getGatewayDevice(params); | |
| 151 | - // return options.filter((item) => item.deviceType === DeviceTypeEnum.GATEWAY); | |
| 152 | - // }, | |
| 153 | 149 | api: getGatewayDevice, |
| 154 | 150 | showSearch: true, |
| 155 | 151 | params: { |
| 156 | 152 | organizationId, |
| 157 | 153 | transportType, |
| 158 | 154 | }, |
| 159 | - valueField: 'id', | |
| 155 | + valueField: 'tbDeviceId', | |
| 160 | 156 | labelField: 'name', |
| 161 | 157 | }; |
| 162 | 158 | }, | ... | ... |