完善设备数据查询

This commit is contained in:
ChenYi 2025-10-28 14:55:12 +08:00
parent cd6d45bed1
commit 6bcf006709

View File

@ -182,6 +182,7 @@ const formOptions: VbenFormProps = {
'EndCreationTime',
'IoTDataType',
'StartCreationTime',
'DeviceType',
]);
const hasRelevantChange = changedFields.some((field) =>
relevantFields.has(field),
@ -292,8 +293,9 @@ const gridOptions: VxeGridProps<any> = {
currentFormValues.IoTDataType = IoTDataType as string;
}
// IoTDataType
//
const ioTDataTypeValue = currentFormValues.IoTDataType;
const deviceTypeValue = currentFormValues.DeviceType;
//
console.log('表单值:', currentFormValues);
@ -332,6 +334,7 @@ const gridOptions: VxeGridProps<any> = {
pageSize: page.pageSize,
DeviceAddress: deviceAddress,
IoTDataType: ioTDataTypeValue,
DeviceType: deviceTypeValue,
StartCreationTime: startCreationTime,
EndCreationTime: endCreationTime,
});
@ -344,6 +347,7 @@ const gridOptions: VxeGridProps<any> = {
// 使DeviceAddress
DeviceAddress: deviceAddress,
IoTDataType: ioTDataTypeValue || undefined,
DeviceType: deviceTypeValue || undefined,
//
StartCreationTime: startCreationTime || undefined,
EndCreationTime: endCreationTime || undefined,