diff --git a/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue b/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue index 3df9407..305dde8 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue +++ b/apps/web-antd/src/views/iotdbdatamanagement/deviceData/index.vue @@ -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 = { currentFormValues.IoTDataType = IoTDataType as string; } - // 处理IoTDataType,保持字符串类型 + // 处理筛选字段 const ioTDataTypeValue = currentFormValues.IoTDataType; + const deviceTypeValue = currentFormValues.DeviceType; // 调试:打印表单值和路由参数 console.log('表单值:', currentFormValues); @@ -332,6 +334,7 @@ const gridOptions: VxeGridProps = { pageSize: page.pageSize, DeviceAddress: deviceAddress, IoTDataType: ioTDataTypeValue, + DeviceType: deviceTypeValue, StartCreationTime: startCreationTime, EndCreationTime: endCreationTime, }); @@ -344,6 +347,7 @@ const gridOptions: VxeGridProps = { // 使用设备地址作为DeviceAddress DeviceAddress: deviceAddress, IoTDataType: ioTDataTypeValue || undefined, + DeviceType: deviceTypeValue || undefined, // 添加日期范围参数 StartCreationTime: startCreationTime || undefined, EndCreationTime: endCreationTime || undefined,