Showing
1 changed file
with
3 additions
and
3 deletions
| ... | ... | @@ -16,6 +16,7 @@ import { DeviceProfileDetail } from '/@/api/device/model/deviceConfigModel'; |
| 16 | 16 | import { getDeviceProfileOtaPackages, getOtaPackageInfo } from '/@/api/ota'; |
| 17 | 17 | import { QueryDeviceProfileOtaPackagesType } from '/@/api/ota/model'; |
| 18 | 18 | import { OTAPackageType } from '/@/enums/otaEnum'; |
| 19 | +import { createPickerSearch } from '/@/utils/pickerSearch'; | |
| 19 | 20 | |
| 20 | 21 | useComponentRegister('JSONEditor', JSONEditor); |
| 21 | 22 | useComponentRegister('LockControlGroup', LockControlGroup); |
| ... | ... | @@ -176,10 +177,8 @@ export const step1Schemas: FormSchema[] = [ |
| 176 | 177 | }); |
| 177 | 178 | } |
| 178 | 179 | }, |
| 179 | - showSearch: true, | |
| 180 | 180 | placeholder: '请选择产品', |
| 181 | - filterOption: (inputValue: string, option: Record<'label' | 'value', string>) => | |
| 182 | - option.label.includes(inputValue), | |
| 181 | + ...createPickerSearch(), | |
| 183 | 182 | }, |
| 184 | 183 | }; |
| 185 | 184 | }, |
| ... | ... | @@ -364,6 +363,7 @@ export const step1Schemas: FormSchema[] = [ |
| 364 | 363 | result && setFieldsValue({ sensorOrganizationId: result?.organizationId }); |
| 365 | 364 | } |
| 366 | 365 | }, |
| 366 | + ...createPickerSearch(), | |
| 367 | 367 | }; |
| 368 | 368 | }, |
| 369 | 369 | }, | ... | ... |