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,17 +146,13 @@ export const step1Schemas: FormSchema[] = [ | ||
| 146 | componentProps: ({ formModel }) => { | 146 | componentProps: ({ formModel }) => { |
| 147 | const { organizationId, transportType } = formModel; | 147 | const { organizationId, transportType } = formModel; |
| 148 | return { | 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 | api: getGatewayDevice, | 149 | api: getGatewayDevice, |
| 154 | showSearch: true, | 150 | showSearch: true, |
| 155 | params: { | 151 | params: { |
| 156 | organizationId, | 152 | organizationId, |
| 157 | transportType, | 153 | transportType, |
| 158 | }, | 154 | }, |
| 159 | - valueField: 'id', | 155 | + valueField: 'tbDeviceId', |
| 160 | labelField: 'name', | 156 | labelField: 'name', |
| 161 | }; | 157 | }; |
| 162 | }, | 158 | }, |