|
@@ -331,16 +331,20 @@
|
|
|
{
|
|
|
label: '查询设备',
|
|
|
field: 'gdeviceid',
|
|
|
- component: 'Input',
|
|
|
- // defaultValue: deviceOptions.value[0] ? deviceOptions.value[0]['value'] : '',
|
|
|
+ component: 'Select',
|
|
|
+ defaultValue: deviceOptions.value[0] ? deviceOptions.value[0]['value'] : '',
|
|
|
required: true,
|
|
|
componentProps: {
|
|
|
- // options: deviceOptions,
|
|
|
+ showSearch: true,
|
|
|
+ filterOption: (input: string, option: any) => {
|
|
|
+ return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
|
+ },
|
|
|
+ options: deviceOptions,
|
|
|
onChange: (e, option) => {
|
|
|
- // if (option && (option['strinstallpos'] || option['strtype'] || option['devicekind']))
|
|
|
- // historyType.value = option['strtype'] || option['devicekind'];
|
|
|
- // if (option['strtype']) deviceTypeStr.value = option['strtype'];
|
|
|
- // stationType.value = option['stationtype'];
|
|
|
+ if (option && (option['strinstallpos'] || option['strtype'] || option['devicekind']))
|
|
|
+ historyType.value = option['strtype'] || option['devicekind'];
|
|
|
+ if (option['strtype']) deviceTypeStr.value = option['strtype'];
|
|
|
+ stationType.value = option['stationtype'];
|
|
|
nextTick(async () => {
|
|
|
await getDataSource();
|
|
|
});
|