...
|
...
|
@@ -6,6 +6,7 @@ import { useComponentRegister } from '/@/components/Form'; |
6
|
6
|
import { OrgTreeSelect } from '../../common/OrgTreeSelect';
|
7
|
7
|
import { getDeviceProfile } from '/@/api/alarm/position';
|
8
|
8
|
import { buildUUID } from '/@/utils/uuid';
|
|
9
|
+import { createPickerSearch } from '/@/utils/pickerSearch';
|
9
|
10
|
|
10
|
11
|
useComponentRegister('OrgTreeSelect', OrgTreeSelect);
|
11
|
12
|
export enum Platform {
|
...
|
...
|
@@ -219,14 +220,7 @@ export const formSchema: FormSchema[] = [ |
219
|
220
|
labelField: 'name',
|
220
|
221
|
valueField: 'id',
|
221
|
222
|
placeholder: '请选择产品',
|
222
|
|
- getPopupContainer: (triggerNode) => triggerNode.parentNode,
|
223
|
|
- filterOption: (inputValue: string, option: Record<'label' | 'value', string>) => {
|
224
|
|
- let { label, value } = option;
|
225
|
|
- label = label.toLowerCase();
|
226
|
|
- value = value.toLowerCase();
|
227
|
|
- inputValue = inputValue.toLowerCase();
|
228
|
|
- return label.includes(inputValue) || value.includes(inputValue);
|
229
|
|
- },
|
|
223
|
+ ...createPickerSearch(),
|
230
|
224
|
},
|
231
|
225
|
ifShow: ({ values }) => values['enableTemplate'] === 0,
|
232
|
226
|
},
|
...
|
...
|
|