From 6bcf006709120b22a8263b1eddcf49012e018d6d Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Tue, 28 Oct 2025 14:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=BE=E5=A4=87=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/iotdbdatamanagement/deviceData/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,